From: Jaska Uimonen Date: Fri, 27 Sep 2019 13:18:07 +0000 (+0300) Subject: sof-skl_hda: add PlaybackVolume and CaptureVolume definitions X-Git-Tag: v1.2.1~29 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=c8808f6d60b5f38d1400bf3bd4cdc059fc080bb7;p=alsa-ucm-conf.git sof-skl_hda: add PlaybackVolume and CaptureVolume definitions PlaybackVolume and CaptureVolume are not defined currently and these are needed in the future for example with Pulseaudio to enable hardware volume control. Signed-off-by: Jaska Uimonen Signed-off-by: Jaroslav Kysela --- diff --git a/ucm/sof-skl_hda_card/HiFi.conf b/ucm/sof-skl_hda_card/HiFi.conf index 078fe83..09b5024 100644 --- a/ucm/sof-skl_hda_card/HiFi.conf +++ b/ucm/sof-skl_hda_card/HiFi.conf @@ -28,6 +28,8 @@ SectionDevice."Headphone" { Value { PlaybackPCM "hw:sofsklhdacard,0" + PlaybackVolume "Headphone" + PlaybackSwitch "Headphone Playback Switch" PlaybackChannels "2" JackName "sof-skl_hda_card Headphone" JackType "gpio" @@ -51,6 +53,8 @@ SectionDevice."Speaker" { Value { PlaybackPCM "hw:sofsklhdacard,0" + PlaybackVolume "Speaker" + PlaybackSwitch "Speaker Playback Switch" JackHWMute "Headphone" PlaybackChannels "2" } @@ -73,6 +77,8 @@ SectionDevice."Headset" { Value { CapturePCM "hw:0,0" + CaptureVolume "Capture" + CaptureSwitch "Capture Switch" CaptureChannels "2" JackControl "Mic Jack" } @@ -95,6 +101,8 @@ SectionDevice."Dmic" { Value { CapturePCM "hw:0,6" + CaptureVolume "Dmic0 Capture Volume" + CaptureSwitch "Dmic0 Capture Switch" CaptureChannels "2" } }