pipewire/spa/plugins/alsa/acp
Arnaud Ferraris a39bfa4995 acp: make sure each port's priority is updated when switching profiles
UCM profiles can use the same ports, but with different priorities. One 
good example is a phone, having an earpiece and a speaker:
- the default profile will put a higher priority on the speaker
- the "voice call" profile will put a higher priority on the earpiece

When switching to the "voice call" profile, we want pipewire to take 
into account the priority change, so that the earpiece gets the highest 
priority and is selected by default.

As the ports have the same name in both profiles, we have a single 
instance of each port in memory, and therefore need to trigger a port 
update when the profile is changed, so that the priority set by the new 
profile is used.

Moreover, the UCM code updates only the priority inside the 
`pa_device_port` structure, so this commit also makes sure we reflect 
this value into the `acp_port` structure when enabling a device.
2021-01-05 14:34:43 +00:00
..
acp.c acp: make sure each port's priority is updated when switching profiles 2021-01-05 14:34:43 +00:00
acp.h acp: add channel to string function 2020-12-28 13:27:34 +01:00
alsa-mixer.c acp: update to latest 2021-01-05 10:08:31 +01:00
alsa-mixer.h acp: update to latest 2021-01-05 10:08:31 +01:00
alsa-ucm.c acp: update to latest 2021-01-05 10:08:31 +01:00
alsa-ucm.h alsa: sync with latest pulseaudio 2020-08-18 12:41:34 +02:00
alsa-util.c acp: update to latest 2021-01-05 10:08:31 +01:00
alsa-util.h acp: update to latest 2021-01-05 10:08:31 +01:00
array.h alsa-acp: Add libacp based card device 2020-07-06 12:20:09 +02:00
card.h acp: add option to disable hardware mixer 2020-12-01 10:43:39 +01:00
channelmap.h acp: sync versions 2020-11-26 10:42:26 +01:00
compat.c acp: clean up card object 2020-11-09 15:01:07 +01:00
compat.h acp: sync 2020-12-17 11:03:31 +01:00
conf-parser.c alsa-acp: Add libacp based card device 2020-07-06 12:20:09 +02:00
conf-parser.h alsa-acp: Add libacp based card device 2020-07-06 12:20:09 +02:00
device-port.h acp: clean up card object 2020-11-09 15:01:07 +01:00
dynarray.h alsa-acp: Add libacp based card device 2020-07-06 12:20:09 +02:00
hashmap.h acp: clean up card object 2020-11-09 15:01:07 +01:00
idxset.h alsa-acp: Add libacp based card device 2020-07-06 12:20:09 +02:00
llist.h alsa-acp: Add libacp based card device 2020-07-06 12:20:09 +02:00
meson.build Define SPA_FALLTHROUGH to make fall-through annotations work for all compilers 2020-10-22 13:31:19 +02:00
proplist.h acp: don't ignore return value 2020-07-21 15:42:04 +02:00
volume.h acp: add support for soft volume 2020-07-06 17:22:42 +02:00