sof-soundwire: Add missing conditional for cs42l43 bridge

When adding support for cs42l43 systems without headphones updating the
bridge configuration was missed. Add the missing conditional guard on
the ConflictingDevice which would fail in systems without headphones.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/778
Fixes: 7585f5e967 ("ucm2: sof-soundwire: cs42l43: support UAJ-less configuration")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Charles Keepax 2026-06-04 11:40:16 +01:00 committed by Jaroslav Kysela
commit 5d03f3c3e5

View file

@ -16,9 +16,16 @@ LibraryConfig.remap.Config {
SectionDevice."Speaker" {
Comment "Speaker"
ConflictingDevice [
"Headphones"
]
If.hs_present {
Condition {
Type String
Haystack "${var:HeadsetCodec1}"
Needle "cs42l43"
}
True.ConflictingDevice [
"Headphones"
]
}
EnableSequence [
cset "name='cs42l43 Speaker L Input 1' 'ASPRX1'"