mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
alsa-mixer: Don't remove paths if jacks state.(un)plugged differ
If the jack state differs, they are not the same path, so don't remove them. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
bbc600aae9
commit
fa80315b2c
1 changed files with 3 additions and 1 deletions
|
|
@ -3183,7 +3183,9 @@ static void path_set_condense(pa_alsa_path_set *ps, snd_mixer_t *m) {
|
|||
continue;
|
||||
|
||||
PA_LLIST_FOREACH(jb, p2->jacks) {
|
||||
if (jb->has_control && !strcmp(jb->alsa_name, ja->alsa_name)) {
|
||||
if (jb->has_control && !strcmp(jb->alsa_name, ja->alsa_name) &&
|
||||
(ja->state_plugged == jb->state_plugged) &&
|
||||
(ja->state_unplugged == jb->state_unplugged)) {
|
||||
exists = TRUE;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue