]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
PandaBoard: adapt to ucm2
authorJaroslav Kysela <perex@perex.cz>
Mon, 11 Nov 2019 07:53:41 +0000 (08:53 +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/PandaBoard/PandaBoard.conf [deleted file]
ucm2/PandaBoard/FMAnalog.conf [moved from ucm/PandaBoard/FMAnalog.conf with 82% similarity]
ucm2/PandaBoard/HiFi.conf [moved from ucm/PandaBoard/HiFi.conf with 66% similarity]
ucm2/PandaBoard/HiFiLP.conf [moved from ucm/PandaBoard/HiFiLP.conf with 84% similarity]
ucm2/PandaBoard/PandaBoard.conf [new file with mode: 0644]
ucm2/PandaBoard/Record.conf [moved from ucm/PandaBoard/Record.conf with 85% similarity]
ucm2/PandaBoard/Voice.conf [moved from ucm/PandaBoard/Voice.conf with 83% similarity]
ucm2/PandaBoard/VoiceCall.conf [moved from ucm/PandaBoard/VoiceCall.conf with 89% similarity]

diff --git a/ucm/PandaBoard/PandaBoard.conf b/ucm/PandaBoard/PandaBoard.conf
deleted file mode 100644 (file)
index 52fd551..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-# UCM configuration for PandaBoard
-SectionUseCase."Record" {
-               File "Record.conf"
-               Comment "Record"
-}
-
-SectionUseCase."HiFi" {
-               File "HiFi.conf"
-               Comment "Play HiFi quality Music"
-}
-
-SectionUseCase."HiFi_Low_Power" {
-               File "HiFiLP.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:PandaBoard"
-               exec "echo Im setting defaults"
-]
similarity index 82%
rename from ucm/PandaBoard/FMAnalog.conf
rename to ucm2/PandaBoard/FMAnalog.conf
index f1b447750e7beafb578d45f735b11f403047c0bc..11a2288be4b9937d30bd786e74c29440204b4877 100644 (file)
@@ -3,7 +3,6 @@
 
 SectionVerb {
        EnableSequence [
-                cdev "hw:PandaBoard"
                 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:PandaBoard"
                 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 "PandaBoard 3.5mm Headset"
        
        EnableSequence [
-                cdev "hw:PandaBoard"
                 cset "name='Analog Left Capture Route' 2"
                 cset "name='Analog Right Capture Route' 2"
                 cset "name='Capture Preamplifier Volume' 2"
        ]
 
        DisableSequence [
-                cdev "hw:PandaBoard"
                 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/PandaBoard/HiFi.conf
rename to ucm2/PandaBoard/HiFi.conf
index db405a4b6556f8514a160ae3b0ee8a5060fc2a15..1b161250b3d38fd561d17b0a7c6ea4a64af6b9e2 100644 (file)
@@ -3,7 +3,6 @@
 
 SectionVerb {
        EnableSequence [
-                cdev "hw:PandaBoard"
                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:PandaBoard"
                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 "PandaBoard 3.5mm Headset"
        
        EnableSequence [
-                cdev "hw:PandaBoard"
                 cset "name='Headset Left Playback' 1"
                 cset "name='Headset Right Playback' 1"
                 cset "name='Headset Playback Volume' 13"
        ]
 
        DisableSequence [
-                cdev "hw:PandaBoard"
                cset "name='Headset Right Playback' 0"
                cset "name='Headset 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 84%
rename from ucm/PandaBoard/HiFiLP.conf
rename to ucm2/PandaBoard/HiFiLP.conf
index 7bbbd5df2b3c40df8f45a3801875d2a1b95e9ba4..92de382dab7802cd58e71b07f37795ef0dab102f 100644 (file)
@@ -3,7 +3,6 @@
 
 SectionVerb {
        EnableSequence [
-                cdev "hw:PandaBoard"
                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:PandaBoard"
                cset "name='DL1 Mixer Multimedia' 0"
                cset "name='Sidetone Mixer Playback' 0"
                 cset "name='DL1 PDM Switch' 0"
@@ -23,22 +21,20 @@ SectionVerb {
        # Optional TQ and ALSA PCMs
        Value {
                TQ "Music"
-               PlaybackPCM "hw:0,6"
+               PlaybackPCM "hw:${CardId},6"
        }
 }
 
-SectionDevice."Headset".0 {
+SectionDevice."Headset" {
        Comment "PandaBoard 3.5mm Headset"
        
        EnableSequence [
-                cdev "hw:PandaBoard"
                 cset "name='Headset Left Playback' 1"
                 cset "name='Headset Right Playback' 1"
                 cset "name='Headset Playback Volume' 13"
        ]
 
        DisableSequence [
-                cdev "hw:PandaBoard"
                cset "name='Headset Right Playback' 0"
                cset "name='Headset Left Playback' 0"
                 cset "name='Headset Playback Volume' 0"
diff --git a/ucm2/PandaBoard/PandaBoard.conf b/ucm2/PandaBoard/PandaBoard.conf
new file mode 100644 (file)
index 0000000..b7fbba1
--- /dev/null
@@ -0,0 +1,43 @@
+# UCM configuration for PandaBoard
+
+Syntax 2
+
+SectionUseCase."Record" {
+       File "Record.conf"
+       Comment "Record"
+}
+
+SectionUseCase."HiFi" {
+       File "HiFi.conf"
+       Comment "Play HiFi quality Music"
+}
+
+SectionUseCase."HiFi_Low_Power" {
+       File "HiFiLP.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 85%
rename from ucm/PandaBoard/Record.conf
rename to ucm2/PandaBoard/Record.conf
index 0eaf1176798df146473d911fdd6e6c1b6cd23b0d..1fbe74c99df7557a619023e344aacd7a6ccf55e5 100644 (file)
@@ -3,7 +3,6 @@
 
 SectionVerb {
        EnableSequence [
-                cdev "hw:PandaBoard"
                 # No more AMIC PDM Switch in current kernels
                 #cset "name='AMIC_UL PDM Switch' 1"
                 cset "name='MUX_UL00' 9"
@@ -12,7 +11,6 @@ SectionVerb {
        ]
 
        DisableSequence [
-                cdev "hw:PandaBoard"
                 # No more AMIC PDM Switch in current kernels
                 #cset "name='AMIC_UL PDM Switch' 0"
                 cset "name='MUX_UL00' 0"
@@ -23,23 +21,21 @@ SectionVerb {
        # Optional TQ and ALSA PCMs
        Value {
                TQ "Music"
-               CapturePCM "hw:0,0"
+               CapturePCM "hw:${CardId},0"
        }
 
 }
 
-SectionDevice."Headset".0 {
+SectionDevice."Headset" {
        Comment "PandaBoard 3.5mm Headset"
        
        EnableSequence [
-                cdev "hw:PandaBoard"
                 cset "name='Analog Left Capture Route' 0"
                 cset "name='Analog Right Capture Route' 0"
                 cset "name='Capture Preamplifier Volume' 2"
        ]
 
        DisableSequence [
-                cdev "hw:PandaBoard"
                 cset "name='Analog Left Capture Route' 3"
                 cset "name='Analog Right Capture Route' 3"
                 cset "name='Capture Preamplifier Volume' 0"
similarity index 83%
rename from ucm/PandaBoard/Voice.conf
rename to ucm2/PandaBoard/Voice.conf
index 4861071582a26b8c15d7b37933d49c5c6d6c27cd..42af48a4b517489eea8f8eb9aee12dc31c9335ca 100644 (file)
@@ -3,7 +3,6 @@
 
 SectionVerb {
        EnableSequence [
-                cdev "hw:PandaBoard"
                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:PandaBoard"
                cset "name='DL1 Mixer Voice' 0"
                cset "name='Sidetone Mixer Playback' 0"
                 cset "name='DL1 PDM Switch' 0"
@@ -23,22 +21,20 @@ SectionVerb {
        # Optional TQ and ALSA PCMs
        Value {
                TQ "Voice"
-               PlaybackPCM "hw:0,2"
+               PlaybackPCM "hw:${CardId},2"
        }
 }
 
-SectionDevice."Headset".0 {
+SectionDevice."Headset" {
        Comment "PandaBoard 3.5mm Headset"
        
        EnableSequence [
-                cdev "hw:PandaBoard"
                 cset "name='Headset Left Playback' 1"
                 cset "name='Headset Right Playback' 1"
                 cset "name='Headset Playback Volume' 13"
        ]
 
        DisableSequence [
-                cdev "hw:PandaBoard"
                cset "name='Headset Right Playback' 0"
                cset "name='Headset Left Playback' 0"
                 cset "name='Headset Playback Volume' 0"
similarity index 89%
rename from ucm/PandaBoard/VoiceCall.conf
rename to ucm2/PandaBoard/VoiceCall.conf
index d3c9501f9b7db6de763208fe3951e19e4d780397..c20bf5cbb2b6c7279128c7e0d10f3412086691a6 100644 (file)
@@ -3,7 +3,6 @@
 
 SectionVerb {
        EnableSequence [
-                cdev "hw:PandaBoard"
                 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:PandaBoard"
                 cset "name='AMIC_UL PDM Switch' 0"
                 cset "name='Sidetone Mixer Capture' 0"
                 cset "name='MUX_VX0' 0"
@@ -36,16 +34,15 @@ 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"
        }
 }
 
-SectionDevice."Headset".0 {
+SectionDevice."Headset" {
        Comment "PandaBoard 3.5mm Headset"
        
        EnableSequence [
-                cdev "hw:PandaBoard"
                 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:PandaBoard"
                 cset "name='Analog Left Capture Route' 3"
                 cset "name='Analog Right Capture Route' 3"
                 cset "name='Capture Preamplifier Volume' 0"