From b25dde9f66f22783bd3f7cb337710a910c633ae7 Mon Sep 17 00:00:00 2001 From: "Zhang,Vivian" Date: Wed, 3 Apr 2013 15:54:44 +0800 Subject: [PATCH] skip avsys audio path set for voice call since it's handled in telephony subsystem, which fixed bt headset issue Change-Id: I91403d48b99d7d7bbe92220ba7377f258d37c30b --- src/audio_hal_plugin_mfld.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/audio_hal_plugin_mfld.c b/src/audio_hal_plugin_mfld.c index 4c45493..e5a753e 100644 --- a/src/audio_hal_plugin_mfld.c +++ b/src/audio_hal_plugin_mfld.c @@ -106,6 +106,10 @@ static int hal_plug_set_sound_path(int gain, int output, int input, int option) MMSoundMgrPulseSetDefaultSink (DEVICE_API_MODEM, DEVICE_BUS_MODEM); } debug_log("MFLD: prev_mode=%d, cur_mode=%d", prev_mode, current_mode); + if (current_mode == MODE_IN_CALL) { + debug_log("MFLD: telephony subsystem handles voice call sound path set, return"); + return ret; + } break; case AVSYS_AUDIO_GAIN_EX_VIDEOCALL: -- 2.7.4