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:
parent
4ead6a971c
commit
3599fc0cad
1 changed files with 10 additions and 4 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue