OSDN Git Service

remap mixer controls for rt5645
authorJaroslav Kysela <perex@perex.cz>
Tue, 18 May 2021 11:28:58 +0000 (13:28 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 18 May 2021 14:29:19 +0000 (16:29 +0200)
Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/SOF/HiFi.conf
ucm2/chtrt5645/chtrt5645.conf
ucm2/codecs/rt5645/init.conf [new file with mode: 0644]

index 727c8e2..e4d2ba6 100644 (file)
@@ -61,7 +61,10 @@ If.bytcht_rt5645 {
                Haystack "${CardName}"
                Needle "bytcht rt5645"
        }
-       True.Include.main.File "/chtrt5645/HiFi.conf"
+       True {
+               Include.init.File "/codecs/rt5645/init.conf"
+               Include.main.File "/chtrt5645/HiFi.conf"
+       }
 }
 
 If.bytcht_rt5650 {
index 2904bb5..4852768 100644 (file)
@@ -1,7 +1,11 @@
-Syntax 3
+Syntax 4
 Comment "Intel SoC Audio Device"
 
 SectionUseCase."HiFi" {
        File "HiFi.conf"
        Comment "Default"
 }
+
+Include.card-init.File "/lib/card-init.conf"
+Include.ctl-remap.File "/lib/ctl-remap.conf"
+Include.codec-init.File "/codecs/rt5645/init.conf"
diff --git a/ucm2/codecs/rt5645/init.conf b/ucm2/codecs/rt5645/init.conf
new file mode 100644 (file)
index 0000000..09de16d
--- /dev/null
@@ -0,0 +1,10 @@
+LibraryConfig.remap.Config {
+
+       ctl.default.remap {
+               "name='IN1 Boost'" "name='IN1 Boost Capture Volume'"
+               "name='IN2 Boost'" "name='IN2 Boost Capture Volume'"
+               "name='Headphone Channel Switch'" "name='Headphone Playback Switch'"
+               "name='Speaker Channel Switch'" "name='Speaker Playback Switch'"
+       }
+
+}