From: Shuming Fan Date: Wed, 16 Nov 2022 09:36:51 +0000 (+0800) Subject: ucm2: sof-soundwire: add basic settings for RT1318 SDCA device X-Git-Tag: v1.2.9~55 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=c82c400fb653292bbf0570e278d60e1ba14cc341;p=alsa-ucm-conf.git ucm2: sof-soundwire: add basic settings for RT1318 SDCA device Add support for rt1318 amplifier Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/242 Signed-off-by: Shuming Fan Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/sof-soundwire/rt1318-1.conf b/ucm2/sof-soundwire/rt1318-1.conf new file mode 100644 index 0000000..13d77e1 --- /dev/null +++ b/ucm2/sof-soundwire/rt1318-1.conf @@ -0,0 +1,20 @@ +# Use case Configuration for sof-soundwire card + +SectionDevice."Speaker" { + Comment "Speaker" + + EnableSequence [ + cset "name='rt1318-1 DAC Switch' 1" + cset "name='Speaker Switch' on" + ] + + DisableSequence [ + cset "name='rt1318-1 DAC Switch' 0" + cset "name='Speaker Switch' off" + ] + + Value { + PlaybackPriority 100 + PlaybackPCM "hw:${CardId},2" + } +} diff --git a/ucm2/sof-soundwire/rt1318-2.conf b/ucm2/sof-soundwire/rt1318-2.conf new file mode 100644 index 0000000..5602470 --- /dev/null +++ b/ucm2/sof-soundwire/rt1318-2.conf @@ -0,0 +1,25 @@ +# Use case Configuration for sof-soundwire card + +SectionDevice."Speaker" { + Comment "Speaker" + + EnableSequence [ + cset "name='rt1318-1 RX Channel Select' L,L" + cset "name='rt1318-2 RX Channel Select' R,R" + + cset "name='rt1318-1 DAC Switch' 1" + cset "name='rt1318-2 DAC Switch' 1" + cset "name='Speaker Switch' on" + ] + + DisableSequence [ + cset "name='rt1318-1 DAC Switch' 0" + cset "name='rt1318-2 DAC Switch' 0" + cset "name='Speaker Switch' off" + ] + + Value { + PlaybackPriority 100 + PlaybackPCM "hw:${CardId},2" + } +}