]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
SDP4430: adapt to ucm2
authorJaroslav Kysela <perex@perex.cz>
Mon, 11 Nov 2019 11:40:48 +0000 (12:40 +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>
ucm/SDP4430/SDP4430.conf [deleted file]
ucm2/SDP4430/FMAnalog.conf [moved from ucm/SDP4430/FMAnalog.conf with 79% similarity]
ucm2/SDP4430/HiFi.conf [moved from ucm/SDP4430/HiFi.conf with 66% similarity]
ucm2/SDP4430/HiFiLP.conf [moved from ucm/SDP4430/HiFiLP.conf with 86% similarity]
ucm2/SDP4430/Record.conf [moved from ucm/SDP4430/Record.conf with 86% similarity]
ucm2/SDP4430/SDP4430.conf [new file with mode: 0644]
ucm2/SDP4430/Voice.conf [moved from ucm/SDP4430/Voice.conf with 86% similarity]
ucm2/SDP4430/VoiceAll.conf [moved from ucm/SDP4430/VoiceAll.conf with 90% similarity]

diff --git a/ucm/SDP4430/SDP4430.conf b/ucm/SDP4430/SDP4430.conf
deleted file mode 100644 (file)
index 29aa721..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-# UCM configuration for SDP4430
-SectionUseCase."Record" {
-               File "Record.conf"
-               Comment "Record"
-}
-
-SectionUseCase."HiFi" {
-               File "HiFi.conf"
-               Comment "Play HiFi quality Music"
-}
-
-SectionUseCase."HiFi_Low_Power" {
-               File "HiHiLP.conf"
-               Comment "Play HiFi quality Music in Low Power Mode"
-}
-
-SectionUseCase."Voice" {
-               File "Voice.conf"
-               Comment "Playback Voice quality"
-}
-
-SectionUseCase."Voice_Low_Power" {
-               File "Voice.conf"
-               Comment "Playback Voice quality in Low Power Mode."
-}
-
-SectionUseCase."Voice_Call" {
-               File "VoiceCall.conf"
-               Comment "Capture and Playback in Voice quality"
-}
-
-SectionUseCase."Voice_Call_IP" {
-               File "VoiceCall.conf"
-               Comment "Capture and Playback in Voice quality"
-}
-
-SectionUseCase."FM_Analog_Radio" {
-               File "FMAnalog.conf"
-               Comment "Capture FM Analog Radio"
-}
-
-SectionDefaults [
-                cdev "hw:SDP4430"
-               exec "echo Im setting defaults"
-]
similarity index 79%
rename from ucm/SDP4430/FMAnalog.conf
rename to ucm2/SDP4430/FMAnalog.conf
index 876527a1da1f56355edbb457e8c38b0a2c727a0b..96814652a275d4acf1b67d17e0cd8b9d9e85c9ec 100644 (file)
@@ -1,9 +1,8 @@
-# Use case Configurationfor TI SDP4430 HiFi Music
+# Use case Configuratio
 # By Liam Girdwood <lrg@slimlogic.co.uk>
 
 SectionVerb {
        EnableSequence [
-                cdev "hw:SDP4430"
                 cset "name='AMIC_UL PDM Switch' 1"
                 cset "name='MUX_UL00' 9"
                 cset "name='MUX_UL01' 10"
@@ -12,7 +11,6 @@ SectionVerb {
 
 
        DisableSequence [
-                cdev "hw:SDP4430"
                 cset "name='AMIC_UL PDM Switch' 0"
                 cset "name='MUX_UL00' 0"
                 cset "name='MUX_UL01' 0"
@@ -22,22 +20,20 @@ SectionVerb {
        # Optional TQ and ALSA PCMs
        Value {
                TQ "Music"
-                CapturePCM "hw:0,0"
+                CapturePCM "hw:${CardId},0"
        }
 }
 
-SectionDevice."Headset".0 {
+SectionDevice."Headset" {
        Comment "SDP4430 3.5mm Headset"
        
        EnableSequence [
-                cdev "hw:SDP4430"
                 cset "name='Analog Left Capture Route' 2"
                 cset "name='Analog Right Capture Route' 2"
                 cset "name='Capture Preamplifier Volume' 2"
        ]
 
        DisableSequence [
-                cdev "hw:SDP4430"
                 cset "name='Analog Left Capture Route' 3"
                 cset "name='Analog Right Capture Route' 3"
                 cset "name='Capture Preamplifier Volume' 0"
similarity index 66%
rename from ucm/SDP4430/HiFi.conf
rename to ucm2/SDP4430/HiFi.conf
index a3293c557357fd994950b0e25fd6b364004b058b..af5b8fb9428b03cefc7aa61ad0b4fa90bacb8c28 100644 (file)
@@ -3,7 +3,6 @@
 
 SectionVerb {
        EnableSequence [
-                cdev "hw:SDP4430"
                cset "name='DL1 Mixer Multimedia' 1"
                cset "name='Sidetone Mixer Playback' 1"
                 cset "name='DL1 PDM Switch' 1"
@@ -16,7 +15,6 @@ SectionVerb {
        ]
 
        DisableSequence [
-                cdev "hw:SDP4430"
                cset "name='DL1 Mixer Multimedia' 0"
                cset "name='Sidetone Mixer Playback' 0"
                 cset "name='DL1 PDM Switch' 0"
@@ -31,53 +29,24 @@ SectionVerb {
        # Optional TQ and ALSA PCMs
 #      Value {
 #              TQ "Music"
-#              PlaybackPCM "hw:0,0"
+#              PlaybackPCM "hw:${CardId},0"
 #                PlaybackVolume "name='DL1 Media Playback Volume' 90,90"
 #                PlaybackSwitch "name='DL1 PDM Switch' 1"
 #      }
 }
 
-SectionDevice."Headset".0 {
+SectionDevice."Headset" {
        Comment "SDP4430 3.5mm Headset"
        
        EnableSequence [
-                cdev "hw:SDP4430"
                 cset "name='HS Left Playback' 1"
                 cset "name='HS Right Playback' 1"
                 cset "name='Headset Playback Volume' 13"
        ]
 
        DisableSequence [
-                cdev "hw:SDP4430"
                cset "name='HS Right Playback' 0"
                cset "name='HS Left Playback' 0"
                 cset "name='Headset Playback Volume' 0"
        ]
 }
-
-#SectionModifier."RecordMedia".0 {
-#      SupportedDevice [
-#              "Headset"
-#      ]
- #       EnableSequence [
- #         ....
- #       ]
- #
- #       DisableSequence [
- #         ...
- #       ]
- #
- #       TransitionSequence."ToModifierName" [
- #         ...
- #       ]
- #
- #       # Optional TQ and ALSA PCMs
- #       Value {
- #               TQ Voice
- #               CapturePCM "hw:1"
- #               PlaybackVolume "name='Master Playback Volume',index=2"
- #               PlaybackSwitch "name='Master Playback Switch',index=2"
- #       }
-#
-#}
-
similarity index 86%
rename from ucm/SDP4430/HiFiLP.conf
rename to ucm2/SDP4430/HiFiLP.conf
index ccf3d871a57942226653f795f9c546776e0cc19c..82d583b81fc487c62d788807bddb92e4643ccdba 100644 (file)
@@ -3,7 +3,6 @@
 
 SectionVerb {
        EnableSequence [
-                cdev "hw:SDP4430"
                cset "name='DL1 Mixer Multimedia' 1"
                cset "name='Sidetone Mixer Playback' 1"
                 cset "name='DL1 PDM Switch' 1"
@@ -12,7 +11,6 @@ SectionVerb {
        ]
 
        DisableSequence [
-                cdev "hw:SDP4430"
                cset "name='DL1 Mixer Multimedia' 0"
                cset "name='Sidetone Mixer Playback' 0"
                 cset "name='DL1 PDM Switch' 0"
@@ -23,7 +21,7 @@ SectionVerb {
        # Optional TQ and ALSA PCMs
        Value {
                TQ "Music"
-               PlaybackPCM "hw:0,6"
+               PlaybackPCM "hw:${CardID},6"
        }
 }
 
@@ -31,14 +29,12 @@ SectionDevice."Headset".0 {
        Comment "SDP4430 3.5mm Headset"
        
        EnableSequence [
-                cdev "hw:SDP4430"
                 cset "name='HS Left Playback' 1"
                 cset "name='HS Right Playback' 1"
                 cset "name='Headset Playback Volume' 13"
        ]
 
        DisableSequence [
-                cdev "hw:SDP4430"
                cset "name='HS Right Playback' 0"
                cset "name='HS Left Playback' 0"
                 cset "name='Headset Playback Volume' 0"
similarity index 86%
rename from ucm/SDP4430/Record.conf
rename to ucm2/SDP4430/Record.conf
index d680f252228b6e27eb920055ae3babbbfb6241ac..16a9f8bc65c951f2fe8be291caf57c9f686b5e37 100644 (file)
@@ -3,7 +3,6 @@
 
 SectionVerb {
        EnableSequence [
-                cdev "hw:SDP4430"
                 cset "name='AMIC_UL PDM Switch' 1"
                 cset "name='MUX_UL00' 9"
                 cset "name='MUX_UL01' 10"
@@ -11,7 +10,6 @@ SectionVerb {
        ]
 
        DisableSequence [
-                cdev "hw:SDP4430"
                 cset "name='AMIC_UL PDM Switch' 0"
                 cset "name='MUX_UL00' 0"
                 cset "name='MUX_UL01' 0"
@@ -21,7 +19,7 @@ SectionVerb {
        # Optional TQ and ALSA PCMs
        Value {
                TQ "Music"
-               CapturePCM "hw:0,0"
+               CapturePCM "hw:${CardId},0"
        }
 
 }
@@ -30,14 +28,12 @@ SectionDevice."Headset".0 {
        Comment "SDP4430 3.5mm Headset"
        
        EnableSequence [
-                cdev "hw:SDP4430"
                 cset "name='Analog Left Capture Route' 0"
                 cset "name='Analog Right Capture Route' 0"
                 cset "name='Capture Preamplifier Volume' 2"
        ]
 
        DisableSequence [
-                cdev "hw:SDP4430"
                 cset "name='Analog Left Capture Route' 3"
                 cset "name='Analog Right Capture Route' 3"
                 cset "name='Capture Preamplifier Volume' 0"
diff --git a/ucm2/SDP4430/SDP4430.conf b/ucm2/SDP4430/SDP4430.conf
new file mode 100644 (file)
index 0000000..df5b5b9
--- /dev/null
@@ -0,0 +1,43 @@
+# UCM configuration for SDP4430
+
+Syntax 2
+
+SectionUseCase."Record" {
+       File "Record.conf"
+       Comment "Record"
+}
+
+SectionUseCase."HiFi" {
+       File "HiFi.conf"
+       Comment "Play HiFi quality Music"
+}
+
+SectionUseCase."HiFi_Low_Power" {
+       File "HiHiLP.conf"
+       Comment "Play HiFi quality Music in Low Power Mode"
+}
+
+SectionUseCase."Voice" {
+       File "Voice.conf"
+       Comment "Playback Voice quality"
+}
+
+SectionUseCase."Voice_Low_Power" {
+       File "Voice.conf"
+       Comment "Playback Voice quality in Low Power Mode."
+}
+
+SectionUseCase."Voice_Call" {
+       File "VoiceCall.conf"
+       Comment "Capture and Playback in Voice quality"
+}
+
+SectionUseCase."Voice_Call_IP" {
+       File "VoiceCall.conf"
+       Comment "Capture and Playback in Voice quality"
+}
+
+SectionUseCase."FM_Analog_Radio" {
+       File "FMAnalog.conf"
+       Comment "Capture FM Analog Radio"
+}
similarity index 86%
rename from ucm/SDP4430/Voice.conf
rename to ucm2/SDP4430/Voice.conf
index 8bea89c7a558d39d8ebba0fc9c75f16e0976c16e..257faf8cfa69b578e0b33fa4ffe92040d1fe122f 100644 (file)
@@ -3,7 +3,6 @@
 
 SectionVerb {
        EnableSequence [
-                cdev "hw:SDP4430"
                cset "name='DL1 Mixer Voice' 1"
                cset "name='Sidetone Mixer Playback' 1"
                 cset "name='DL1 PDM Switch' 1"
@@ -12,7 +11,6 @@ SectionVerb {
        ]
 
        DisableSequence [
-                cdev "hw:SDP4430"
                cset "name='DL1 Mixer Voice' 0"
                cset "name='Sidetone Mixer Playback' 0"
                 cset "name='DL1 PDM Switch' 0"
@@ -23,7 +21,7 @@ SectionVerb {
        # Optional TQ and ALSA PCMs
        Value {
                TQ "Voice"
-               PlaybackPCM "hw:0,2"
+               PlaybackPCM "hw:${CardId},2"
        }
 }
 
@@ -31,14 +29,12 @@ SectionDevice."Headset".0 {
        Comment "SDP4430 3.5mm Headset"
        
        EnableSequence [
-                cdev "hw:SDP4430"
                 cset "name='HS Left Playback' 1"
                 cset "name='HS Right Playback' 1"
                 cset "name='Headset Playback Volume' 13"
        ]
 
        DisableSequence [
-                cdev "hw:SDP4430"
                cset "name='HS Right Playback' 0"
                cset "name='HS Left Playback' 0"
                 cset "name='Headset Playback Volume' 0"
similarity index 90%
rename from ucm/SDP4430/VoiceAll.conf
rename to ucm2/SDP4430/VoiceAll.conf
index 4c06106cab9dc584c2189fd1df2b9d3220890f5f..03e6211fec746813ce6dba6e1df1ffccfc4847fd 100644 (file)
@@ -3,7 +3,6 @@
 
 SectionVerb {
        EnableSequence [
-                cdev "hw:SDP4430"
                 cset "name='AMIC_UL PDM Switch' 1"
                 cset "name='Sidetone Mixer Capture' 1"
                 cset "name='MUX_VX0' 9"
@@ -19,7 +18,6 @@ SectionVerb {
 
 
        DisableSequence [
-                cdev "hw:SDP4430"
                 cset "name='AMIC_UL PDM Switch' 0"
                 cset "name='Sidetone Mixer Capture' 0"
                 cset "name='MUX_VX0' 0"
@@ -36,8 +34,8 @@ SectionVerb {
        # Optional TQ and ALSA PCMs
        Value {
                TQ "Voice"
-                CapturePCM "hw:0,2"
-               PlaybackPCM "hw:0,2"
+                CapturePCM "hw:${CardId},2"
+               PlaybackPCM "hw:${CardId},2"
        }
 }
 
@@ -45,7 +43,6 @@ SectionDevice."Headset".0 {
        Comment "SDP4430 3.5mm Headset"
        
        EnableSequence [
-                cdev "hw:SDP4430"
                 cset "name='Analog Left Capture Route' 0"
                 cset "name='Analog Right Capture Route' 0"
                 cset "name='Capture Preamplifier Volume' 2"
@@ -55,7 +52,6 @@ SectionDevice."Headset".0 {
        ]
 
        DisableSequence [
-                cdev "hw:SDP4430"
                 cset "name='Analog Left Capture Route' 3"
                 cset "name='Analog Right Capture Route' 3"
                 cset "name='Capture Preamplifier Volume' 0"