From 8531799e282d6ecf947cfb900d2323d2ddfdaae2 Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Wed, 20 Dec 2017 04:17:00 +0100 Subject: 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 Signed-off-by: Ronan Le Martret --- USB-Device/UsbDeviceHAL.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'USB-Device') 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", -- cgit 1.2.3-korg