It appears that there are devices with just switches (no
volume controls). Test presence of 'Headphone Playback Switch'
control.
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=2428561
Fixes: c8b5541 ("ucm2: HDA: Headphone output may be optional")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
If.hpvol {
Condition {
Type ControlExists
- Control "name='Headphone Playback Volume'"
+ Control "name='Headphone Playback Switch'"
}
False.Define.hpvol ""
}