]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
DB410c: cleanups and corrections
authorJaroslav Kysela <perex@perex.cz>
Fri, 24 Jan 2020 09:07:14 +0000 (10:07 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 5 Feb 2020 02:16:05 +0000 (03:16 +0100)
ucm2/DB410c/HDMI.conf
ucm2/DB410c/HiFi.conf

index d08a50b9aa42c857189bb4b83f54a4a44cb9803d..fa44132227ffeb8f6d8bdd37072de8cd0829a271 100644 (file)
@@ -4,12 +4,15 @@
 SectionVerb {
        Value {
                TQ "HiFi"
-               PlaybackPCM "plughw:${CardId},0"
-               PlaybackChannels "2"
+               PlaybackChannels 2
        }
 }
 
-SectionDevice."HDMI-stereo" {
+SectionDevice."HDMI" {
        # Name "HDMI-stereo"
        Comment "HDMI Digital Stereo Output"
+       Value {
+               PlaybackPriority 200
+               PlaybackPCM "plughw:${CardId}"
+       }
 }
index 848d02fd78f174058165fb3cc1390621b6b0db83..1b2716ab8bf170207dca23b81e839612a4165722 100644 (file)
@@ -2,14 +2,9 @@
 # Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
 
 SectionVerb {
-
-       # ALSA PCM
        Value {
-               # ALSA PCM device for HiFi
-               PlaybackPCM "plughw:${CardId},1"
-               CapturePCM "plughw:${CardId},2"
-               PlaybackChannels "2"
-               CaptureChannels "2"
+               PlaybackChannels 2
+               CaptureChannels 2
        }
 }
 
@@ -33,6 +28,11 @@ SectionDevice."Speaker" {
                cset "name='SPK DAC Switch' 0"
                cset "name='RX3 MIX1 INP1' ZERO"
        ]
+
+       Value {
+               PlaybackPriority 200
+               PlaybackPCM "plughw:${CardId},1"
+       }
 }
 
 
@@ -64,6 +64,11 @@ SectionDevice."Headphones" {
                cset "name='RX1 MIX1 INP1' ZERO"
                cset "name='RX2 MIX1 INP1' ZERO"
        ]
+
+       Value {
+               PlaybackPriority 300
+               PlaybackPCM "plughw:${CardId},1"
+       }
 }
 
 SectionDevice."Earpiece" {
@@ -73,6 +78,11 @@ SectionDevice."Earpiece" {
                "Speaker"
                "Headphones"
        ]
+
+       Value {
+               PlaybackPriority 100
+               PlaybackPCM "plughw:${CardId},1"
+       }
 }
 
 SectionDevice."Handset" {
@@ -90,9 +100,14 @@ SectionDevice."Handset" {
                cset "name='ADC2 Volume' 0"
                cset "name='DEC1 MUX' ZERO"
        ]
+
+       Value {
+               CapturePriority 400
+               CapturePCM "plughw:${CardId},2"
+       }
 }
 
-SectionDevice."PrimaryMic" {
+SectionDevice."Mic1" {
        Comment "Primary Microphone"
 
        EnableSequence [
@@ -105,9 +120,14 @@ SectionDevice."PrimaryMic" {
                cset "name='DEC1 MUX' ZERO"
                cset "name='ADC1 Volume' 0"
        ]
+
+       Value {
+               CapturePriority 300
+               CapturePCM "plughw:${CardId},2"
+       }
 }
 
-SectionDevice."SecondaryMic" {
+SectionDevice."Mic2" {
        Comment "Secondary Microphone"
 
        EnableSequence [
@@ -122,9 +142,14 @@ SectionDevice."SecondaryMic" {
                cset "name='ADC2 Volume' 0"
                cset "name='ADC2 MUX' ZERO"
        ]
+
+       Value {
+               CapturePriority 200
+               CapturePCM "plughw:${CardId},2"
+       }
 }
 
-SectionDevice."DigitalMic" {
+SectionDevice."Mic3" {
        Comment "Digital Microphone"
 
        EnableSequence [
@@ -135,4 +160,9 @@ SectionDevice."DigitalMic" {
        DisableSequence [
                cset "name='DEC1 MUX' ZERO"
        ]
+
+       Value {
+               CapturePriority 100
+               CapturePCM "plughw:${CardId},2"
+       }
 }