]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
sof-skl_hda: add PlaybackVolume and CaptureVolume definitions
authorJaska Uimonen <jaska.uimonen@linux.intel.com>
Fri, 27 Sep 2019 13:18:07 +0000 (16:18 +0300)
committerJaroslav Kysela <perex@perex.cz>
Tue, 22 Oct 2019 16:53:22 +0000 (18:53 +0200)
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 <jaska.uimonen@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm/sof-skl_hda_card/HiFi.conf

index 078fe83d636d398bb3e6fab873ef3852b71c0f0a..09b5024d9251d40ed65125616f980aef1e089bab 100644 (file)
@@ -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"
        }
 }