pipewire/spa
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
..
examples examples: dlclose on some errors 2020-07-02 16:07:54 +02:00
include json: handle incomplete strings 2020-12-31 17:16:32 +01:00
plugins acp: make sure each port's priority is updated when switching profiles 2021-01-05 14:34:43 +00:00
tests result: don't use undefined shift 2020-12-21 21:08:56 +01:00
tools initialize variables better 2020-05-20 15:24:25 +02:00
meson.build a2dp: add aac encoder 2020-12-23 06:15:15 +00:00