callmgr_path_type_e route = CALL_AUDIO_PATH_NONE_E;
_callmgr_core_get_audio_state(core_data, &route);
- _callmgr_dbus_send_audio_status(core_data, route);
+ if (route != CALL_AUDIO_PATH_BT_E)
+ _callmgr_dbus_send_audio_status(core_data, route);
+ else
+ info("[BT Voice ] Do not update audio status in here");
if (route != CALL_AUDIO_PATH_NONE_E) {
__callmgr_core_set_telephony_audio_route(core_data, active_device);
}
is_sco_opened = GPOINTER_TO_INT(event_data);
info("sco open status : %d", is_sco_opened);
+ if (TRUE == is_sco_opened) {
+ callmgr_path_type_e route = CALL_AUDIO_PATH_NONE_E;
+ _callmgr_core_get_audio_state(core_data, &route);
+ if (route == CALL_AUDIO_PATH_BT_E) {
+ info("[BT Voice] Should update audio status when SCO is opened");
+ _callmgr_dbus_send_audio_status(core_data, route);
+ }
+ }
+
_callmgr_bt_is_wbs_mode(&is_wbs_mode);
if (FALSE == is_wbs_mode) {
_callmgr_audio_set_bt_band(core_data->audio_handle, CM_AUDIO_BT_BAND_NB);