From 3a05270e7aed7299c52b49acb64006d5b26fb27c Mon Sep 17 00:00:00 2001 From: Jaska Uimonen Date: Fri, 27 Sep 2019 16:18:07 +0300 Subject: [PATCH] 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 --- ucm/sof-skl_hda_card/HiFi.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ucm/sof-skl_hda_card/HiFi.conf b/ucm/sof-skl_hda_card/HiFi.conf index c878f023..c891c693 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" @@ -50,6 +52,8 @@ SectionDevice."Speaker" { Value { PlaybackPCM "hw:sofsklhdacard,0" + PlaybackVolume "Speaker" + PlaybackSwitch "Speaker Playback Switch" JackHWMute "Headphone" PlaybackChannels "2" } @@ -72,6 +76,8 @@ SectionDevice."Headset" { Value { CapturePCM "hw:0,0" + CaptureVolume "Capture" + CaptureSwitch "Capture Switch" CaptureChannels "2" JackControl "Mic Jack" } @@ -94,6 +100,8 @@ SectionDevice."Dmic" { Value { CapturePCM "hw:0,6" + CaptureVolume "Dmic0 Capture Volume" + CaptureSwitch "Dmic0 Capture Switch" CaptureChannels "2" } }