]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
DB820c: adapt to ucm2
authorJaroslav Kysela <perex@perex.cz>
Sun, 10 Nov 2019 20:07:36 +0000 (21:07 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 11 Nov 2019 11:51:01 +0000 (12:51 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/DB820c/DB820c.conf [moved from ucm/DB820c/DB820c.conf with 93% similarity]
ucm2/DB820c/HDMI.conf [moved from ucm/DB820c/HDMI.conf with 100% similarity]
ucm2/DB820c/HiFi.conf [moved from ucm/DB820c/HiFi.conf with 89% similarity]

similarity index 93%
rename from ucm/DB820c/DB820c.conf
rename to ucm2/DB820c/DB820c.conf
index 1be157dd0d351889ae14b1115fd80e8e5b6a65b4..7eab8aa9bb09f5bdbece0665c8d05a8a439e59c3 100644 (file)
@@ -1,3 +1,5 @@
+Syntax 2
+
 SectionUseCase."HiFi" {
        File "HiFi.conf"
        Comment "HiFi quality Music"
similarity index 100%
rename from ucm/DB820c/HDMI.conf
rename to ucm2/DB820c/HDMI.conf
similarity index 89%
rename from ucm/DB820c/HiFi.conf
rename to ucm2/DB820c/HiFi.conf
index 4457329fe07cc0c39a313679fad3209ba92df692..39911d9bd7e086bf76949aa2d6047f439b1c5465 100644 (file)
@@ -4,7 +4,6 @@
 SectionVerb {
 
        EnableSequence [
-               cdev "hw:0"
                cset "name='SLIM RX0 MUX' ZERO"
                cset "name='SLIM RX1 MUX' ZERO"
                cset "name='SLIM RX2 MUX' ZERO"
@@ -31,24 +30,15 @@ SectionVerb {
        ]
 
        DisableSequence [
-                cdev "hw:0"
                cset "name='SLIMBUS_6_RX Audio Mixer MultiMedia2' 0"
                cset "name='MultiMedia3 Mixer SLIMBUS_0_TX' 0"
        ]
-
-       # ALSA PCM
-       Value {
-               # ALSA PCM device for HiFi
-               PlaybackPCM "plughw:0,1"
-               CapturePCM "plughw:0,2"
-       }
 }
 
-SectionDevice."Headphones" {
-       Comment "Headphones playback"
+SectionDevice."Headphone" {
+       Comment "Headphone playback"
 
        EnableSequence [
-               cdev "hw:0"
                cset "name='SLIM RX0 MUX' ZERO"
                cset "name='SLIM RX1 MUX' ZERO"
                cset "name='SLIM RX2 MUX' ZERO"
@@ -69,7 +59,6 @@ SectionDevice."Headphones" {
        ]
 
        DisableSequence [
-               cdev "hw:0"
                cset "name='RX5 Digital Volume' 0"
                cset "name='RX6 Digital Volume' 0"
                cset "name='SLIM RX5 MUX' ZERO"
@@ -78,15 +67,15 @@ SectionDevice."Headphones" {
        ]
 
        Value {
+               PlaybackPCM "plughw:${CardId},1"
                PlaybackChannels "2"
        }
 }
 
-SectionDevice."Handset" {
+SectionDevice."HandsetMic" {
        Comment "Headset Microphone"
 
        EnableSequence [
-               cdev "hw:0"
                cset "name='MultiMedia3 Mixer SLIMBUS_0_TX' 1"
                cset "name='AIF1_CAP Mixer SLIM TX0' 1"
                cset "name='SLIM TX0 MUX' DEC0"
@@ -96,7 +85,6 @@ SectionDevice."Handset" {
        ]
 
        DisableSequence [
-               cdev "hw:0"
                cset "name='MultiMedia3 Mixer SLIMBUS_0_TX' 0"
                cset "name='AIF1_CAP Mixer SLIM TX0' 0"
                cset "name='AMIC MUX0' ZERO"
@@ -105,6 +93,7 @@ SectionDevice."Handset" {
        ]
 
        Value {
+               CapturePCM "plughw:${CardId},2"
                CaptureChannels "1"
        }
 }