err("_callmgr_audio_acquire_sound_stream_focus() failed");
}
-#if 0
/*
* In case of TM1 device, audio routing logic should be handled
* by multimedia framework not telephony to support local ringback tone play
* during call establishment. In this case, "START" signal will be invoked from multimedia.
* so, audio routing logic will be triggered not here.
*/
- _callmgr_audio_get_audio_route(core_data->audio_handle, &route);
- if (route == CALLMGR_AUDIO_ROUTE_NONE_E) {
- _callmgr_audio_is_sound_device_available(core_data->audio_handle, CALLMGR_AUDIO_DEVICE_BT_E, &is_bt_connected);
- if (is_bt_connected)
- _callmgr_audio_set_audio_route(core_data->audio_handle, CALLMGR_AUDIO_ROUTE_BT_E);
- else
- __callmgr_core_set_default_audio_route(core_data);
+ if (!g_strcmp0(core_data->model_name, "TM1")) {
+ dbg("Should not start virtual stream in here in TM1 device. START signal will be invoked");
+ } else {
+ _callmgr_audio_get_audio_route(core_data->audio_handle, &route);
+ if (route == CALLMGR_AUDIO_ROUTE_NONE_E) {
+ _callmgr_audio_is_sound_device_available(core_data->audio_handle, CALLMGR_AUDIO_DEVICE_BT_E, &is_bt_connected);
+ if (is_bt_connected)
+ _callmgr_audio_set_audio_route(core_data->audio_handle, CALLMGR_AUDIO_ROUTE_BT_E);
+ else
+ __callmgr_core_set_default_audio_route(core_data);
+ }
}
-#endif
if (core_data->call_status != CALL_MANAGER_CALL_STATUS_OFFHOOK_E) {
__callmgr_core_set_call_status(core_data, CALL_MANAGER_CALL_STATUS_OFFHOOK_E, cm_call_type, NULL);