HDA-analog: Fix the phantom jack detection if block

The hpvol assignment should depend on speaker/line out detection.

Link: https://github.com/alsa-project/alsa-ucm-conf/issues/685
Fixes: 4ead6a9 ("HDA-analog: Use phantom jacks to determine the device for single output")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2026-01-12 16:26:08 +01:00
commit 3599fc0cad

View file

@ -108,12 +108,18 @@ If.outnone {
}
True.Define.lovol "Master"
}
If.last {
If.none {
Condition {
Type ControlExists
Control "name='Master Playback Switch'"
Type String
Empty "${var:spkvol}${var:lovol}"
}
True.If.default {
Condition {
Type ControlExists
Control "name='Master Playback Switch'"
}
True.Define.hpvol "Master"
}
True.Define.hpvol "Master"
}
}
}