Hardware volume control in cs42l43 can go up to +31.5dB which can
cause audio degradation. For best results, limit hardware volume to 0dB.
The application may request >0dB mixer volume controls using
'@OutMix>0dB' variable passed to snd_use_case_mgr_open().
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/540
Link: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4622
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
"name='cs42l43 Headset Microphone Capture Volume'" {
"name='cs42l43 Decimator 1 Volume'".vindex.0 0
}
+ "name='cs42l43 Speaker Playback Switch'" {
+ "name='cs42l43 Speaker Digital Switch'".vindex.0 0
+ "name='cs42l43 Speaker Digital Switch'".vindex.1 1
+ }
+ }
+}
+
+If.0 {
+ Condition {
+ Type String
+ Empty "${var:-@OutMix>0dB}"
}
+ True.BootSequence [
+ cset "name='cs42l43 Speaker Digital Volume' 128"
+ ]
}
cset "name='cs42l43 Speaker R Input 1' 'None'"
]
+
+ If.0 {
+ Condition {
+ Type String
+ Empty "${var:-@OutMix>0dB}"
+ }
+ True.Value {
+ PlaybackMixer "default:${CardId}"
+ PlaybackMixerElem "cs42l43 Speaker"
+ }
+ False.Value {
+ PlaybackMixerElem "cs42l43 Speaker Digital"
+ }
+ }
+
Value {
PlaybackPriority 100
PlaybackPCM "hw:${CardId},2"
- PlaybackMixerElem "cs42l43 Speaker Digital"
}
}