pipewire/spa/plugins
Wim Taymans c7ca024607 alsa: ucm: Fix spurious mixer path removal on initial profile set
The code that removes the mixer path if probing fails can be called in
the path that sets a non-off device profile on hotplug *before*
card->active_profile is updated, which results in spuriously removing
the mixer path. By this point, context->ucm->active_verb would be set
to the same as the profile name, so we can use that instead to avoid
the issue.

On Apple Silicon machines with the UCM profiles in the Asahi Linux repo,
this manifests as the headphones jack having hardware volume controls
*only* if PA is started with headphones connected and until they are
disconnected. Hotplugs end up triggering the bad codepath, and it falls
back to software volume (which is particularly a problem when the
hardware volume happens to be very low or 0 at that point).

Fixes: a9cc1373e2a7 ("alsa: ucm - update the mixer path also after volume probe")
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-03-20 18:35:15 +01:00
..
aec treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
alsa alsa: ucm: Fix spurious mixer path removal on initial profile set 2023-03-20 18:35:15 +01:00
audioconvert audioconvert: check return value of pod parse 2023-03-16 12:33:08 +01:00
audiomixer treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
audiotestsrc treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
avb treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
bluez5 bluez5: backend-native: fix getsockopt/fcntl error code handling 2023-03-19 21:33:28 +02:00
control treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
ffmpeg treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
jack treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
libcamera treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
support Fix node-driver.c build on FreeBSD. 2023-03-15 16:53:41 +00:00
test treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
v4l2 treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
videoconvert treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
videotestsrc treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
volume treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
vulkan treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
meson.build Disable alsa plugin on !Linux platforms. 2023-03-15 16:53:41 +00:00