]> git.alsa-project.org Git - alsa-lib.git/commitdiff
conf/ucm: bytcr-rt5640: Add default DisableSequence
authorHans de Goede <hdegoede@redhat.com>
Thu, 31 May 2018 15:10:24 +0000 (17:10 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 May 2018 15:55:44 +0000 (17:55 +0200)
Add a disable sequence powering off the SST mixer elements, loosely
based on the default DisableSequence from:
https://github.com/plbossart/UCM/blob/master/chtnau8824/HiFi.conf

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf/ucm/bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf
src/conf/ucm/bytcr-rt5640-mono-spk-in1-mic/HiFi.conf
src/conf/ucm/bytcr-rt5640-mono-spk-in3-mic/HiFi.conf
src/conf/ucm/bytcr-rt5640-stereo-spk-dmic1-mic/HiFi.conf
src/conf/ucm/bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf
src/conf/ucm/bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf
src/conf/ucm/bytcr-rt5640/HiFi.conf
src/conf/ucm/bytcr/Makefile.am
src/conf/ucm/bytcr/PlatformDisableSeq.conf [new file with mode: 0644]

index 47ca04f0c3a89a6f5ca069e8a2a59ddf95fb8339..938b359290d418222c965ad854cf64ea7d96f382 100644 (file)
@@ -11,6 +11,8 @@ SectionVerb {
        ]
 
        DisableSequence [
+               cdev "hw:bytcrrt5640"
+               <bytcr/PlatformDisableSeq.conf>
        ]
 
        Value {
index e280843d2522ede0528fd83e25f8f7888225f9d1..f36b245e5092941126ed17dc6502b50820bdd40b 100644 (file)
@@ -11,6 +11,8 @@ SectionVerb {
        ]
 
        DisableSequence [
+               cdev "hw:bytcrrt5640"
+               <bytcr/PlatformDisableSeq.conf>
        ]
 
        Value {
index 511b7c98563fe57ada8ed5d195cc7cdcba0f662c..1a08ededc40c7c5cefb2d1531fdd64a291418b08 100644 (file)
@@ -11,6 +11,8 @@ SectionVerb {
        ]
 
        DisableSequence [
+               cdev "hw:bytcrrt5640"
+               <bytcr/PlatformDisableSeq.conf>
        ]
 
        Value {
index 8cf5cb7ce93b502f638d7f85541079372abb981a..4587b2e1294ed34f6048a60081c8360395181a26 100644 (file)
@@ -11,6 +11,8 @@ SectionVerb {
        ]
 
        DisableSequence [
+               cdev "hw:bytcrrt5640"
+               <bytcr/PlatformDisableSeq.conf>
        ]
 
        Value {
index a617ba19330017a207a876e1006fb9ef8fc8b099..decd396047aa5a3096b335eac7742ce2ccdd6fb2 100644 (file)
@@ -11,6 +11,8 @@ SectionVerb {
        ]
 
        DisableSequence [
+               cdev "hw:bytcrrt5640"
+               <bytcr/PlatformDisableSeq.conf>
        ]
 
        Value {
index 83b31795308f2214c15703fda047b3f9d3b4f750..d243bf823511118a609a2043522d309dd2ff95a1 100644 (file)
@@ -11,6 +11,8 @@ SectionVerb {
        ]
 
        DisableSequence [
+               cdev "hw:bytcrrt5640"
+               <bytcr/PlatformDisableSeq.conf>
        ]
 
        Value {
index 130671cae6d38bfc995d374e30e7faf91fb9fe63..c833fe74845b63399c9eb00374c1059166b375c7 100644 (file)
@@ -11,6 +11,8 @@ SectionVerb {
        ]
 
        DisableSequence [
+               cdev "hw:bytcrrt5640"
+               <bytcr/PlatformDisableSeq.conf>
        ]
 
        Value {
index a0e5545edebcfa8a4bc289f8c942086d1acaa28a..f7a54cbdedcd7f90af4fb41499fc9e70865ac779 100644 (file)
@@ -1,4 +1,4 @@
 alsaconfigdir = @ALSA_CONFIG_DIR@
 ucmdir = $(alsaconfigdir)/ucm/bytcr
-ucm_DATA = PlatformEnableSeq.conf
+ucm_DATA = PlatformEnableSeq.conf PlatformDisableSeq.conf
 EXTRA_DIST = $(ucm_DATA)
diff --git a/src/conf/ucm/bytcr/PlatformDisableSeq.conf b/src/conf/ucm/bytcr/PlatformDisableSeq.conf
new file mode 100644 (file)
index 0000000..9bb018b
--- /dev/null
@@ -0,0 +1,20 @@
+# disable audio output path
+cset "name='codec_out0 mix 0 pcm0_in Switch' off"
+cset "name='modem_out mix 0 pcm0_in Switch' off"
+
+cset "name='media0_out mix 0 media0_in Switch' off"
+cset "name='media0_out mix 0 media1_in Switch' off"
+cset "name='media0_out mix 0 media3_in Switch' off"
+
+cset "name='media0_in Gain 0 Switch' off"
+cset "name='media1_in Gain 0 Switch' off"
+cset "name='media3_in Gain 0 Switch' off"
+
+cset "name='pcm0_in Gain 0 Switch' off"
+cset "name='codec_out0 Gain 0 Switch' off"
+cset "name='modem_out Gain 0 Switch' off"
+
+# disable audio input path
+cset "name='pcm1_out Gain 0 Switch' off"
+cset "name='codec_in0 Gain 0 Switch' off"
+cset "name='modem_in Gain 0 Switch' off"