From b7a5a37774c129224655b0609a9ad64289cff5f5 Mon Sep 17 00:00:00 2001 From: Daniel Hillenbrand Date: Tue, 24 Jul 2012 23:36:28 +0200 Subject: audio: use back-mic for calls on headphone --- audio/audio_hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'audio') 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 { -- cgit v1.1