When no analog wires are connected, the S/PDIF output cannot be
selected in pipewire. Handle this for motherboards without Speaker
UCM device.
Fixes: https://github.com/alsa-project/alsa-ucm-conf/issues/239
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
}
True.Value.PlaybackMixerElem "Front"
}
- If.1 {
+ # make S/PDIF output working when no analog jacks are connected
+ If.speaker {
Condition {
Type ControlExists
- Control "iface=CARD,name='Line Out Front Jack'"
+ Control "name='Speaker Playback Switch'"
+ }
+ True.If.1 {
+ Condition {
+ Type ControlExists
+ Control "iface=CARD,name='Line Out Front Jack'"
+ }
+ True.Value.JackControl "Line Out Front Jack"
+ False.Value.JackControl "Line Out Jack"
}
- True.Value.JackControl "Line Out Front Jack"
- False.Value.JackControl "Line Out Jack"
}
}