diff options
author | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2017-12-20 04:17:00 +0100 |
---|---|---|
committer | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2017-12-20 04:17:00 +0100 |
commit | 8531799e282d6ecf947cfb900d2323d2ddfdaae2 (patch) | |
tree | 4e72492df238a27edafb6d6cca59c6c40b1e2150 /USB-Device | |
parent | bb0157e9c9c9ef7665aa36190d4bedc3ba80f7f2 (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>
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'USB-Device')
-rw-r--r-- | USB-Device/UsbDeviceHAL.c | 5 |
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", |