alsa-ucm-conf/ucm2/sof-soundwire/cs42l43.conf
Maciej Strozek 67c5adadda ucm2: sof-soundwire: Add support for CS42L43B variant
From UCM point of view CS42L43B codec adds 2 new decimators and removes
a control to change Decimator 1 mode from base CS42L43. Thus reuse
CS42L43 files, and guard the CS42L43B additions behind a condition
that the new Decimator controls exist.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/665
Link: https://lore.kernel.org/all/20260306152829.3130530-1-mstrozek@opensource.cirrus.com/
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2026-03-27 17:44:45 +01:00

57 lines
1.2 KiB
Text

# Use case Configuration for sof-soundwire card
SectionDevice."Headphones" {
Comment "Headphones"
EnableSequence [
cset "name='cs42l43 Headphone L Input 1' 'DP5RX1'"
cset "name='cs42l43 Headphone R Input 1' 'DP5RX2'"
]
DisableSequence [
cset "name='cs42l43 Headphone L Input 1' 'None'"
cset "name='cs42l43 Headphone R Input 1' 'None'"
]
Value {
PlaybackPriority 200
PlaybackPCM "hw:${CardId},0"
PlaybackVolume "cs42l43 Headphone Digital Volume"
JackControl "Headphone Jack"
}
}
SectionDevice."Headset" {
Comment "Headset Microphone"
EnableSequence [
cset "name='cs42l43 ADC1 Input' 'IN1'"
cset "name='cs42l43 DP2TX1 Input' 'Decimator 1'"
cset "name='cs42l43 DP2TX2 Input' 'Decimator 1'"
]
If.CS42L43B {
Condition {
Type ControlExists
Control "name='cs42l43 Decimator 5 Switch'"
}
False {
EnableSequence [
cset "name='cs42l43 Decimator 1 Mode' 'ADC'"
]
}
}
DisableSequence [
cset "name='cs42l43 DP2TX1 Input' 'None'"
cset "name='cs42l43 DP2TX2 Input' 'None'"
]
Value {
CapturePriority 200
CapturePCM "hw:${CardId},1"
CaptureMixer "default:${CardId}"
CaptureMixerElem "cs42l43 Headset Microphone"
JackControl "Headset Mic Jack"
}
}