From eb0e456c46efc60013224329ed12d3c24479503f Mon Sep 17 00:00:00 2001 From: WeirdTreeThing Date: Wed, 8 Nov 2023 13:56:04 -0500 Subject: [PATCH] codecs: add rt1015 --- codecs/rt1015/init.conf | 8 ++++++++ codecs/rt1015/speaker.conf | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 codecs/rt1015/init.conf create mode 100644 codecs/rt1015/speaker.conf diff --git a/codecs/rt1015/init.conf b/codecs/rt1015/init.conf new file mode 100644 index 0000000..828c6f5 --- /dev/null +++ b/codecs/rt1015/init.conf @@ -0,0 +1,8 @@ +# RT1015 specific volume control settings + +BootSequence [ + cset "name='Left Bypass Boost' 1" + cset "name='Right Bypass Boost' 1" + cset "name='Left Mono LR Select' Left" + cset "name='Right Mono LR Select' Right" +] diff --git a/codecs/rt1015/speaker.conf b/codecs/rt1015/speaker.conf new file mode 100644 index 0000000..cb526d7 --- /dev/null +++ b/codecs/rt1015/speaker.conf @@ -0,0 +1,16 @@ +SectionDevice."Speaker" { + Comment "Speaker" + + Value { + PlaybackPriority 100 + PlaybackPCM "hw:${CardId},0" + } + EnableSequence [ + cset "name='Left Spk Switch' on" + cset "name='Right Spk Switch' on" + ] + DisableSequence [ + cset "name='Left Spk Switch' off" + cset "name='Right Spk Switch' off" + ] +}