From: Jaroslav Kysela Date: Thu, 21 Nov 2019 13:05:23 +0000 (+0100) Subject: chtrt5650: adapt to ucm2 X-Git-Tag: v1.2.1.2~17 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=6c56567a7cb31b183ea6b3df5a4cbdc1faeb5aac;p=alsa-ucm-conf.git chtrt5650: adapt to ucm2 Signed-off-by: Jaroslav Kysela --- diff --git a/ucm/chtrt5650/HiFi.conf b/ucm2/chtrt5650/HiFi.conf similarity index 87% rename from ucm/chtrt5650/HiFi.conf rename to ucm2/chtrt5650/HiFi.conf index 71df1f8..f11d683 100644 --- a/ucm/chtrt5650/HiFi.conf +++ b/ucm2/chtrt5650/HiFi.conf @@ -5,13 +5,11 @@ SectionVerb { TQ "HiFi" # ALSA PCM device for HiFi - PlaybackPCM "hw:chtrt5650" - CapturePCM "hw:chtrt5650" + PlaybackPCM "hw:${CardId}" + CapturePCM "hw:${CardId}" } EnableSequence [ - cdev "hw:chtrt5650" - @@ -23,8 +21,6 @@ SectionVerb { ] DisableSequence [ - cdev "hw:chtrt5650" - ] } @@ -41,14 +37,10 @@ SectionDevice."Speaker" { ] EnableSequence [ - cdev "hw:chtrt5650" - ] DisableSequence [ - cdev "hw:chtrt5650" - cset "name='Ext Spk Switch' off" cset "name='Speaker Channel Switch' off" ] @@ -68,14 +60,10 @@ SectionDevice."Headphones" { ] EnableSequence [ - cdev "hw:chtrt5650" - ] DisableSequence [ - cdev "hw:chtrt5650" - cset "name='Headphone Switch' off" cset "name='Headphone Channel Switch' off" ] @@ -90,16 +78,12 @@ SectionDevice."Mic".0 { } EnableSequence [ - cdev "hw:chtrt5650" - cset "name='Int Mic Switch' on" cset "name='Sto1 ADC MIXL ADC2 Switch' on" cset "name='Sto1 ADC MIXR ADC2 Switch' on" ] DisableSequence [ - cdev "hw:chtrt5650" - cset "name='Sto1 ADC MIXL ADC2 Switch' off" cset "name='Sto1 ADC MIXR ADC2 Switch' off" cset "name='Int Mic Switch' off" @@ -116,16 +100,12 @@ SectionDevice."HSMic".0 { } EnableSequence [ - cdev "hw:chtrt5650" - cset "name='IN1 Boost' 1" ] DisableSequence [ - cdev "hw:chtrt5650" - cset "name='IN1 Boost' 0" diff --git a/ucm/chtrt5650/chtrt5650.conf b/ucm2/chtrt5650/chtrt5650.conf similarity index 100% rename from ucm/chtrt5650/chtrt5650.conf rename to ucm2/chtrt5650/chtrt5650.conf