]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
cht-bsw-rt5672: adapt to ucm2
authorJaroslav Kysela <perex@perex.cz>
Thu, 21 Nov 2019 12:56:40 +0000 (13:56 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 21 Nov 2019 13:57:59 +0000 (14:57 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/cht-bsw-rt5672/HiFi-stereo-dmic2.conf [moved from ucm/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE/HiFi.conf with 70% similarity]
ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE.conf [new symlink]
ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8.conf [new symlink]
ucm2/cht-bsw-rt5672/cht-bsw-rt5672-stereo-dmic2.conf [moved from ucm/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE.conf with 50% similarity]

similarity index 70%
rename from ucm/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE/HiFi.conf
rename to ucm2/cht-bsw-rt5672/HiFi-stereo-dmic2.conf
index 43c3c0dda505947587864f91663d1f8674b5cc83..2916490bbdb588c23907e4e88a85416e4c35c428 100644 (file)
@@ -1,18 +1,18 @@
+# Adapted from https://github.com/plbossart/UCM/tree/master/cht-bsw-rt5672
+
 SectionVerb {
        EnableSequence [
-               cdev "hw:chtbswrt5672"
                <platforms/bytcr/PlatformEnableSeq.conf>
                <codecs/rt5672/EnableSeq.conf>
        ]
 
        DisableSequence [
-               cdev "hw:chtbswrt5672"
                <platforms/bytcr/PlatformDisableSeq.conf>
        ]
 
        Value {
-               PlaybackPCM "hw:chtbswrt5672"
-               CapturePCM "hw:chtbswrt5672"
+               PlaybackPCM "hw:${CardId}"
+               CapturePCM "hw:${CardId}"
        }
 }
 
diff --git a/ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE.conf b/ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE.conf
new file mode 120000 (symlink)
index 0000000..461f0c4
--- /dev/null
@@ -0,0 +1 @@
+cht-bsw-rt5672-stereo-dmic2.conf
\ No newline at end of file
diff --git a/ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8.conf b/ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8.conf
new file mode 120000 (symlink)
index 0000000..461f0c4
--- /dev/null
@@ -0,0 +1 @@
+cht-bsw-rt5672-stereo-dmic2.conf
\ No newline at end of file
similarity index 50%
rename from ucm/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE.conf
rename to ucm2/cht-bsw-rt5672/cht-bsw-rt5672-stereo-dmic2.conf
index 1c3a766bcbe7f8d133fdc518e50bd4a5960e84d8..68837b2656e51c6f297a0d1b9bbdad9173fc55ac 100644 (file)
@@ -1,4 +1,6 @@
+Syntax 2
+
 SectionUseCase."HiFi" {
-       File "../LENOVO-20BN002QGE-ThinkPad8-20BN002QGE/HiFi.conf"
+       File "HiFi-stereo-dmic2.conf"
        Comment "Play HiFi quality Music"
 }