]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: fix chtrt5650 configuration (ucm-validator)
authorJaroslav Kysela <perex@perex.cz>
Sat, 23 May 2020 20:28:05 +0000 (22:28 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 23 May 2020 20:28:05 +0000 (22:28 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/chtrt5650/HiFi.conf

index e9011d4b1bd5d08feee62cecc0280edc64c78932..b365bc619e7cad7c381cd9cba9fd40b95673843a 100644 (file)
@@ -3,10 +3,6 @@ SectionVerb {
        # ALSA PCM
        Value {
                TQ "HiFi"
-
-               # ALSA PCM device for HiFi
-               PlaybackPCM "hw:${CardId}"
-               CapturePCM "hw:${CardId}"
        }
 
        EnableSequence [
@@ -29,7 +25,8 @@ SectionDevice."Speaker" {
        Comment "Speaker"
 
        Value {
-               PlaybackChannels "2"
+               PlaybackPCM "hw:${CardId}"
+               PlaybackPriority 100
        }
 
        ConflictingDevice [
@@ -50,7 +47,8 @@ SectionDevice."Headphones" {
        Comment "Headphones"
 
        Value {
-               PlaybackChannels "2"
+               PlaybackPCM "hw:${CardId}"
+               PlaybackPriority 200
                JackControl "Headphone Jack"
                JackHWMute "Speaker"
        }
@@ -69,12 +67,12 @@ SectionDevice."Headphones" {
        ]
 }
 
-SectionDevice."Mic" {
+SectionDevice."Mic1" {
        Comment "Internal Microphone"
 
        Value {
-               CaptureChannels "2"
-               CapturePriority "150"
+               CapturePCM "hw:${CardId}"
+               CapturePriority 100
        }
 
        EnableSequence [
@@ -90,13 +88,14 @@ SectionDevice."Mic" {
        ]
 }
 
-SectionDevice."HSMic" {
+SectionDevice."Mic2" {
        Comment "Headset Microphone"
 
        Value {
-               CaptureChannels "2"
+               CapturePCM "hw:${CardId}"
+               CapturePriority 200
                JackControl "Headset Mic Jack"
-               JackHWMute "Mic"
+               JackHWMute "Mic1"
        }
 
        EnableSequence [