summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorDaniel Hillenbrand <daniel.hillenbrand@codeworkx.de>2012-07-24 23:36:28 +0200
committerDaniel Hillenbrand <daniel.hillenbrand@codeworkx.de>2012-07-24 23:36:28 +0200
commitb7a5a37774c129224655b0609a9ad64289cff5f5 (patch)
tree72f16536ccb1ff82d2c0dd6339ca0e61e65e8c1b /audio
parent63bef5c56c9790a4cf7b010d0af7409bea45e8d3 (diff)
downloaddevice_samsung_i9300-b7a5a37774c129224655b0609a9ad64289cff5f5.zip
device_samsung_i9300-b7a5a37774c129224655b0609a9ad64289cff5f5.tar.gz
device_samsung_i9300-b7a5a37774c129224655b0609a9ad64289cff5f5.tar.bz2
audio: use back-mic for calls on headphone
Diffstat (limited to 'audio')
-rwxr-xr-xaudio/audio_hw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 65595fc..8c7a707 100755
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -599,7 +599,7 @@ static void select_output_device(struct m0_audio_device *adev)
set_bigroute_by_array(adev->mixer, voicecall_default_disable, 1);
}
- if (speaker_on || earpiece_on) {
+ if (speaker_on || earpiece_on || headphone_on) {
ALOGD("%s: set voicecall route: default_input", __func__);
set_bigroute_by_array(adev->mixer, default_input, 1);
} else {
@@ -607,7 +607,7 @@ static void select_output_device(struct m0_audio_device *adev)
set_bigroute_by_array(adev->mixer, default_input_disable, 1);
}
- if (headset_on || headphone_on) {
+ if (headset_on) {
ALOGD("%s: set voicecall route: headset_input", __func__);
set_bigroute_by_array(adev->mixer, headset_input, 1);
} else {