]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
bytcht-cx2072x: cleanups and corrections
authorJaroslav Kysela <perex@perex.cz>
Thu, 23 Jan 2020 18:45:00 +0000 (19:45 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 5 Feb 2020 02:16:05 +0000 (03:16 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/bytcht-cx2072x/HiFi.conf
ucm2/codecs/cx2072x/HeadPhones.conf
ucm2/codecs/cx2072x/HeadsetMic.conf
ucm2/codecs/cx2072x/InternalMic.conf
ucm2/codecs/cx2072x/Speaker.conf

index 60e022974790677a7371d45ffe4d30cf456c8141..b329ea4ed399c13f4af5381435d86f2e1c38f135 100644 (file)
@@ -8,11 +8,6 @@ SectionVerb {
                <codecs/cx2072x/DisableSeq.conf>
                <platforms/bytcr/PlatformDisableSeq.conf>
        ]
-
-       Value {
-               PlaybackPCM "hw:${CardId}"
-               CapturePCM "hw:${CardId}"
-       }
 }
 
 <codecs/cx2072x/Speaker.conf>
index b5d3d3a15402b6fffa76dc81f6daffe1cac8fcf5..484d020be7e890c6ab556512896fba321f45cd4a 100644 (file)
@@ -16,7 +16,9 @@ SectionDevice."Headphones" {
        ]
 
        Value {
-               PlaybackChannels "2"
+               PlaybackPriority 200
+               PlaybackPCM "hw:${CardId}"
+               PlaybackChannels 2
                JackControl "Headphone Jack"
        }
 }
index 0a59750f8f4a437092e307c9dac056984ac887d4..b1a777114df4ff470a4bd9483d61580fc0879b67 100644 (file)
@@ -1,8 +1,8 @@
-SectionDevice."HeadsetMic" {
+SectionDevice."Headset" {
        Comment "Headset Microphone"
 
        ConflictingDevice [
-               "InternalMic"
+               "Mic"
        ]
 
        EnableSequence [
@@ -17,7 +17,9 @@ SectionDevice."HeadsetMic" {
        ]
 
        Value {
-               CaptureChannels "2"
+               CapturePriority 200
+               CapturePCM "hw:${CardId}"
+               CaptureChannels 2
                JackControl "Headset Mic Jack"
        }
 }
index e358c35c1847b8328092697222cd04a0b965ac79..831c3cc63f5cb65408aaaed4fdc6163da1c4a5d8 100644 (file)
@@ -1,8 +1,8 @@
-SectionDevice."InternalMic" {
+SectionDevice."Mic" {
        Comment "Internal Microphone"
 
        ConflictingDevice [
-               "HeadsetMic"
+               "Headset"
        ]
 
        EnableSequence [
@@ -17,6 +17,8 @@ SectionDevice."InternalMic" {
        ]
 
        Value {
-               CaptureChannels "2"
+               CapturePriority 100
+               CapturePCM "hw:${CardId}"
+               CaptureChannels 2
        }
 }
index a83aeae9a1d3f2c3eea9a255d45da9a01859c595..f60e3559d1f7bf78f2f991fdd007ad64343a71ed 100644 (file)
@@ -16,6 +16,8 @@ SectionDevice."Speaker" {
        ]
 
        Value {
-               PlaybackChannels "2"
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId}"
+               PlaybackChannels 2
        }
 }