summaryrefslogtreecommitdiffstats
path: root/HAL-afb
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-08-28 00:59:28 +0200
committerFulup Ar Foll <fulup@iot.bzh>2017-08-28 00:59:28 +0200
commit8710f4aa979fff03ddd0c7b1da53ae6e5f198fac (patch)
treea3942b565ba4273d8c1ecaea1ac67d1e5b354445 /HAL-afb
parent1dd19ac494da7b223bc919a85c0e6c16502e9a77 (diff)
Change default value for playback PCM was muted at init
Diffstat (limited to 'HAL-afb')
-rw-r--r--HAL-afb/HDA-intel/IntelHdaHAL.c2
-rw-r--r--HAL-afb/Jabra-Solemate/JabraUsbHAL.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/HAL-afb/HDA-intel/IntelHdaHAL.c b/HAL-afb/HDA-intel/IntelHdaHAL.c
index 4f79f60..d41b6ba 100644
--- a/HAL-afb/HDA-intel/IntelHdaHAL.c
+++ b/HAL-afb/HDA-intel/IntelHdaHAL.c
@@ -65,7 +65,7 @@ STATIC halVolRampT volRampEmergency= {
STATIC alsaHalMapT alsaHalMap[]= {
{ .tag=Master_Playback_Volume, . ctl={.name="PCM Playback Volume", .value=50 } },
{ .tag=PCM_Playback_Volume , .ctl={.name="PCM Playback Volume", .value=50 } },
- { .tag=PCM_Playback_Switch , .ctl={.name="PCM Playback Switch" } },
+ { .tag=PCM_Playback_Switch , .ctl={.name="PCM Playback Switch", .value=01 } },
{ .tag=Capture_Volume , .ctl={.name="Mic Capture Volume" } },
// Sound card does not have hardware volume ramping
diff --git a/HAL-afb/Jabra-Solemate/JabraUsbHAL.c b/HAL-afb/Jabra-Solemate/JabraUsbHAL.c
index d3ddcfc..a9c5c63 100644
--- a/HAL-afb/Jabra-Solemate/JabraUsbHAL.c
+++ b/HAL-afb/Jabra-Solemate/JabraUsbHAL.c
@@ -63,10 +63,10 @@ STATIC halVolRampT volRampEmergency= {
// 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=12 } },
- { .tag=PCM_Playback_Volume , .ctl={.name="PCM Playback Volume", .value=12 } },
- { .tag=PCM_Playback_Switch , .ctl={.name="PCM Playback Switch" } },
- { .tag=Capture_Volume , .ctl={.name="Mic Capture Volume" } },
+ { .tag=Master_Playback_Volume, . ctl={.name="PCM Playback Volume", .value=12 }},
+ { .tag=PCM_Playback_Volume , .ctl={.name="PCM Playback Volume", .value=12 }},
+ { .tag=PCM_Playback_Switch , .ctl={.name="PCM Playback Switch", .value=01 }},
+ { .tag=Capture_Volume , .ctl={.name="Mic Capture Volume" }},
// Sound card does not have hardware volume ramping
{ .tag=Master_Playback_Ramp , .cb={.callback=volumeRamp, .handle=&volRampMaster}, .info="ramp volume linearly according to current ramp setting",