[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] alsa ucm: do not assign JackHWMute when JackControl is missing for the UCM device
Arun Raghavan
gitlab at gitlab.freedesktop.org
Mon Mar 2 08:50:26 UTC 2020
Arun Raghavan pushed to branch master at PulseAudio / pulseaudio
Commits:
4da4670f by Jaroslav Kysela at 2020-03-01T15:55:37+01:00
alsa ucm: do not assign JackHWMute when JackControl is missing for the UCM device
Fixes: https://github.com/alsa-project/alsa-ucm-conf/issues/14
Signed-off-by: Jaroslav Kysela <perex at perex.cz>
- - - - -
1 changed file:
- src/modules/alsa/alsa-ucm.c
Changes:
=====================================
src/modules/alsa/alsa-ucm.c
=====================================
@@ -1730,6 +1730,10 @@ static int ucm_create_profile(
/* JackHWMute contains a list of device names. Each listed device must
* be associated with the jack object that we just created. */
jack_hw_mute = pa_proplist_gets(dev->proplist, PA_ALSA_PROP_UCM_JACK_HW_MUTE);
+ if (jack_hw_mute && !jack) {
+ pa_log("[%s] JackHWMute set, but JackControl is missing", name);
+ jack_hw_mute = NULL;
+ }
if (jack_hw_mute) {
char *hw_mute_device_name;
const char *state = NULL;
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/4da4670fdb9a09199fb5d3bfaee252b2f4f13128
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/4da4670fdb9a09199fb5d3bfaee252b2f4f13128
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20200302/b7cd9dda/attachment.htm>
More information about the pulseaudio-commits
mailing list