OSDN Git Service

sof-hda-dsp: corrections and fixes
authorJaroslav Kysela <perex@perex.cz>
Wed, 5 Feb 2020 02:24:00 +0000 (03:24 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 5 Feb 2020 12:17:24 +0000 (13:17 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/sof-hda-dsp/HDA-Capture-value.conf
ucm2/sof-hda-dsp/Hdmi.conf
ucm2/sof-hda-dsp/HiFi.conf

index b3e90aa..5f3c2a3 100644 (file)
@@ -1,5 +1,5 @@
-CapturePCM "hw:${CardId},0"
+CapturePCM "hw:${CardId}"
 CaptureMixerElem "Capture"
 CaptureVolume "Capture Volume"
 CaptureSwitch "Capture Switch"
-CaptureChannels "2"
+CaptureChannels 2
index 7418fa7..1982c72 100644 (file)
@@ -14,7 +14,7 @@ SectionDevice."HDMI1" {
        Value {
                PlaybackPriority 500
                PlaybackPCM "hw:${CardId},3"
-               PlaybackChannels "2"
+               PlaybackChannels 2
                JackControl "HDMI/DP,pcm=3 Jack"
        }
 }
@@ -33,7 +33,7 @@ SectionDevice."HDMI2" {
        Value {
                PlaybackPriority 600
                PlaybackPCM "hw:${CardId},4"
-               PlaybackChannels "2"
+               PlaybackChannels 2
                JackControl "HDMI/DP,pcm=4 Jack"
        }
 }
@@ -52,7 +52,7 @@ SectionDevice."HDMI3" {
        Value {
                PlaybackPriority 700
                PlaybackPCM "hw:${CardId},5"
-               PlaybackChannels "2"
+               PlaybackChannels 2
                JackControl "HDMI/DP,pcm=5 Jack"
        }
 }
index 71cef49..6dfdabe 100644 (file)
@@ -19,12 +19,12 @@ SectionDevice."Headphones1" {
 
        Value {
                PlaybackPriority 200
-               PlaybackPCM "hw:${CardId},0"
+               PlaybackPCM "hw:${CardId}"
                PlaybackMixerElem "Headphone"
                PlaybackMasterElem "Master"
                PlaybackVolume "Headphone Playback Volume"
                PlaybackSwitch "Headphone Playback Switch"
-               PlaybackChannels "2"
+               PlaybackChannels 2
                If.jack {
                        Condition {
                                Type ControlExists
@@ -72,12 +72,12 @@ SectionDevice."Speaker" {
 
        Value {
                PlaybackPriority 100
-               PlaybackPCM "hw:${CardId},0"
+               PlaybackPCM "hw:${CardId}"
                PlaybackMixerElem "Speaker"
                PlaybackMasterElem "Master"
                PlaybackVolume "Speaker Playback Volume"
                PlaybackSwitch "Speaker Playback Switch"
-               PlaybackChannels "2"
+               PlaybackChannels 2
        }
 }
 
@@ -93,7 +93,7 @@ If.monomic {
                        Comment "Headphones Stereo Microphone"
 
                        ConflictingDevice [
-                               "HeadsetMic"
+                               "Headset"
                        ]
 
                        EnableSequence [
@@ -147,10 +147,10 @@ SectionDevice."Mic" {
                                Needle "cfg-dmics:4"
                        }
                        True {
-                               CaptureChannels "4"
+                               CaptureChannels 4
                        }
                        False {
-                               CaptureChannels "2"
+                               CaptureChannels 2
                        }
                }
                If.vol {