aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>2017-12-14 11:59:21 +0100
committerDominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>2017-12-14 11:59:21 +0100
commita90d2cec1619593b25ab1e45dd6962313dc0fe4c (patch)
tree533fcb84918b00d98d6003dbc3e31ff0b8be4b4e
parentc2a81731c0e89a9239c0b5b90d2e3d716cdaf6dd (diff)
correcting default usb-audio controls to get default volume not muted at boot
Change-Id: Id8ab3b87bf61f4c3948a5127ab57c0206682aaa3 Signed-off-by: Dominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>
-rw-r--r--USB-Device/UsbDeviceHAL.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/USB-Device/UsbDeviceHAL.c b/USB-Device/UsbDeviceHAL.c
index cbfeca3..1004055 100644
--- a/USB-Device/UsbDeviceHAL.c
+++ b/USB-Device/UsbDeviceHAL.c
@@ -125,6 +125,11 @@ STATIC halVolRampT volRampFallback= {
// Map HAL hight sndctl with Alsa numid and optionally with a custom callback for non Alsa supported functionalities.
STATIC alsaHalMapT alsaHalMap[]= {
+
+ { .tag=Master_Playback_Volume, . ctl={.name="PCM Playback Volume", .value=80 }},
+ { .tag=PCM_Playback_Volume , .ctl={.name="PCM Playback Volume", .value=80 }},
+ { .tag=PCM_Playback_Switch , .ctl={.name="PCM Playback Switch", .value=01 }},
+ { .tag=Capture_Volume , .ctl={.name="Mic Capture Volume", .value=0 }},
// Sound card does not have hardware volume ramping
{ .tag=Master_Playback_Ramp , .cb={.callback=volumeRamp, .handle=&volRampMaster}, .info="Master Playback Volume Ramp",