From 3a9c5defd031312d801c57ea654636dbe04fa492 Mon Sep 17 00:00:00 2001 From: Dominig ar Foll Intel Open Source Date: Thu, 14 Dec 2017 10:15:28 +0100 Subject: unmuting the card by default to get sound out of the box Change-Id: Icca67bfccba3c8ee84d3ca99632cf4f40fc9abf5 Signed-off-by: Dominig ar Foll Intel Open Source (cherry picked from commit c2a81731c0e89a9239c0b5b90d2e3d716cdaf6dd) --- intel-minnow/Intel-HAL-minnow.c | 3 +-- intel-pc/Intel-HAL-pc.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/intel-minnow/Intel-HAL-minnow.c b/intel-minnow/Intel-HAL-minnow.c index 48a2cdb..00088fb 100644 --- a/intel-minnow/Intel-HAL-minnow.c +++ b/intel-minnow/Intel-HAL-minnow.c @@ -127,8 +127,7 @@ 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="Video_Volume", .value=100 } }, - { .tag=PCM_Playback_Volume , .ctl={.name="PCM Playback Volume", .value=100 } }, - { .tag=PCM_Playback_Switch, .ctl={.name="IEC958 Playback Switch" } }, + { .tag=PCM_Playback_Switch, .ctl={.name="IEC958 Playback Switch", .value=1 } }, // Sound card does not have hardware volume ramping { .tag=Master_Playback_Ramp , .cb={.callback=volumeRamp, .handle=&volRampMaster}, .info="Master Playback Volume Ramp", diff --git a/intel-pc/Intel-HAL-pc.c b/intel-pc/Intel-HAL-pc.c index 39de13b..6350580 100644 --- a/intel-pc/Intel-HAL-pc.c +++ b/intel-pc/Intel-HAL-pc.c @@ -128,7 +128,7 @@ STATIC halVolRampT volRampFallback= { STATIC alsaHalMapT alsaHalMap[]= { { .tag=Master_Playback_Volume, .ctl={.name="Master Playback Volume", .value=100 } }, { .tag=PCM_Playback_Volume , .ctl={.name="PCM Playback Volume", .value=100 } }, - { .tag=PCM_Playback_Switch , .ctl={.name="Master Playback Switch" } }, + { .tag=PCM_Playback_Switch , .ctl={.name="Master Playback Switch", .value=1 } }, { .tag=Capture_Volume , .ctl={.name="Capture Volume" } }, // Sound card does not have hardware volume ramping -- cgit 1.2.3-korg