summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorSimon Wilson <simonwilson@google.com>2011-10-17 14:37:33 -0700
committerSimon Wilson <simonwilson@google.com>2011-10-17 14:39:24 -0700
commit47b361f2ee2b61ba791ac76e15c19ac7dc4489b1 (patch)
tree90a70a676d63919906e90d95ce658bb91b96a0ff /audio
parent3e865c96bcf0cbedea7293b93cd3e7032e655402 (diff)
downloaddevice_samsung_tuna-47b361f2ee2b61ba791ac76e15c19ac7dc4489b1.zip
device_samsung_tuna-47b361f2ee2b61ba791ac76e15c19ac7dc4489b1.tar.gz
device_samsung_tuna-47b361f2ee2b61ba791ac76e15c19ac7dc4489b1.tar.bz2
audio: enable DL2 mono mixer for speaker
Since the speaker is only connected to the DL2 left channel, downmix all DL2 audio from stereo to mono to avoid losing information. Change-Id: I8f536d3373b5517682722422df648d9d8050b840
Diffstat (limited to 'audio')
-rwxr-xr-xaudio/audio_hw.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 58d8474..9bb2817 100755
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -60,6 +60,7 @@
#define MIXER_DL2_MIXER_VOICE "DL2 Mixer Voice"
#define MIXER_SIDETONE_MIXER_PLAYBACK "Sidetone Mixer Playback"
#define MIXER_SIDETONE_MIXER_CAPTURE "Sidetone Mixer Capture"
+#define MIXER_DL2_MONO_MIXER "DL2 Mono Mixer"
#define MIXER_DL1_PDM_SWITCH "DL1 PDM Switch"
#define MIXER_DL1_BT_VX_SWITCH "DL1 BT_VX Switch"
#define MIXER_VOICE_CAPTURE_MIXER_CAPTURE "Voice Capture Mixer Capture"
@@ -293,6 +294,12 @@ struct route_setting defaults[] = {
.intval = 1,
},
+ /* speaker */
+ {
+ .ctl_name = MIXER_DL2_MONO_MIXER,
+ .intval = 1,
+ },
+
/* bt */
{
.ctl_name = MIXER_BT_UL_VOLUME,