Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/512
Signed-off-by: Derek Fang <derek.fang@realtek.com>
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
--- /dev/null
+# RT1318 specific switch control settings
+
+If.oneAmp {
+ Condition {
+ Type ControlExists
+ Control "name='rt1318-1 DAC Switch'"
+ }
+ True {
+ FixedBootSequence [
+ exec "-/sbin/modprobe snd_ctl_led"
+ sysw "-/class/sound/ctl-led/speaker/card${CardNumber}/attach:rt1318-1 DAC Switch"
+ ]
+ }
+}
+
+If.twoAmps {
+ Condition {
+ Type ControlExists
+ Control "name='rt1318-2 DAC Switch'"
+ }
+ True {
+ FixedBootSequence [
+ sysw "-/class/sound/ctl-led/speaker/card${CardNumber}/attach:rt1318-2 DAC Switch"
+ ]
+ }
+}
}
}
+If.spk_init_rt1318 {
+ Condition {
+ Type RegexMatch
+ Regex "(rt1318(-1)?)"
+ String "${var:SpeakerCodec1}"
+ }
+ True.Include.spk_init.File "/codecs/${var:SpeakerCodec1}/init.conf"
+}
If.hs_init {
Condition {