]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
VEYRON-I2S: adapt to ucm2
authorJaroslav Kysela <perex@perex.cz>
Mon, 11 Nov 2019 11:55:53 +0000 (12:55 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 11 Nov 2019 11:55:53 +0000 (12:55 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/VEYRON-I2S/HiFi.conf [moved from ucm/VEYRON-I2S/HiFi.conf with 87% similarity]
ucm2/VEYRON-I2S/VEYRON-I2S.conf [moved from ucm/VEYRON-I2S/VEYRON-I2S.conf with 90% similarity]

similarity index 87%
rename from ucm/VEYRON-I2S/HiFi.conf
rename to ucm2/VEYRON-I2S/HiFi.conf
index 6dddf9af0aad56d7016b7f98f1e78668a5d56fa2..be2137b8550ec45c07a937ee0fdc54c487f5da82 100644 (file)
@@ -5,8 +5,6 @@ SectionVerb {
        }
 
        EnableSequence [
-               cdev "hw:VEYRONI2S"
-
                cset "name='Left Speaker Mixer Left DAC Switch' on"
                cset "name='Right Speaker Mixer Right DAC Switch' on"
                cset "name='Headphone Left Switch' off"
@@ -42,63 +40,51 @@ SectionVerb {
                cset "name='Speaker Right Switch' on"
                cset "name='Speaker Switch' on"
        ]
-
-       DisableSequence [
-       ]
 }
 
 SectionDevice."Speaker".0 {
        Comment "Speaker"
+
        Value {
-               PlaybackPCM "hw:VEYRONI2S,0"
+               PlaybackPCM "hw:${CardId},0"
        }
        EnableSequence [
-               cdev "hw:VEYRONI2S"
-
                cset "name='Speaker Switch' on"
        ]
        DisableSequence [
-               cdev "hw:VEYRONI2S"
-
                cset "name='Speaker Switch' off"
        ]
 }
 
 SectionDevice."Internal Mic".0 {
        Comment "Int Mic"
+
        Value {
-               CapturePCM "hw:VEYRONI2S,0"
+               CapturePCM "hw:${CardId},0"
        }
        EnableSequence [
-               cdev "hw:VEYRONI2S"
-
                cset "name='Int Mic Switch' on"
        ]
        DisableSequence [
-               cdev "hw:VEYRONI2S"
-
                cset "name='Int Mic Switch' off"
        ]
 }
 
 SectionDevice."Headphone".0 {
        Comment "Headphone"
+
        Value {
                JackName "VEYRON-I2S Headset Jack"
-               PlaybackPCM "hw:VEYRONI2S,0"
+               PlaybackPCM "hw:${CardId},0"
                OutputDspName ""
        }
 
        EnableSequence [
-               cdev "hw:VEYRONI2S"
-
                cset "name='Speaker Switch' off"
                cset "name='Headphone Left Switch' on"
                cset "name='Headphone Right Switch' on"
        ]
        DisableSequence [
-               cdev "hw:VEYRONI2S"
-
                cset "name='Headphone Left Switch' off"
                cset "name='Headphone Right Switch' off"
                cset "name='Speaker Switch' on"
@@ -107,14 +93,13 @@ SectionDevice."Headphone".0 {
 
 SectionDevice."Mic".0 {
        Comment "Headset Mic"
+
        Value {
                JackName "VEYRON-I2S Headset Jack"
-               CapturePCM "hw:VEYRONI2S,0"
+               CapturePCM "hw:${CardId},0"
        }
 
        EnableSequence [
-               cdev "hw:VEYRONI2S"
-
                cset "name='Int Mic Switch' off"
                cset "name='DMIC Mux' ADC"
                cset "name='Headset Mic Switch' on"
@@ -122,8 +107,6 @@ SectionDevice."Mic".0 {
        ]
 
        DisableSequence [
-               cdev "hw:VEYRONI2S"
-
                cset "name='Headset Mic Switch' off"
                cset "name='DMIC Mux' DMIC"
                cset "name='Int Mic Switch' on"
similarity index 90%
rename from ucm/VEYRON-I2S/VEYRON-I2S.conf
rename to ucm2/VEYRON-I2S/VEYRON-I2S.conf
index 2a92b6f56702728bc512511a6d8e2957a67f2281..670f15b821e0a79c73a0f0f4bc5fdc724fd7c023 100644 (file)
@@ -1,3 +1,5 @@
+Syntax 2
+
 Comment "Rockchip Veyron card"
 
 SectionUseCase."HiFi" {