if (pa_streq(device_type, DEVICE_TYPE_BT_SCO))
return true;
- if (pa_streq(device_type, DEVICE_TYPE_BT_A2DP))
- return true;
-
/* get sound profile */
if (vconf_get_bool(VCONFKEY_SETAPPL_SOUND_STATUS_BOOL, &sound_on) < 0) {
pa_log_error("failed to get vconf - sound status");
creation_time = pa_tz_device_get_creation_time(device);
pa_log_debug(" -- type[%-16s], direction[0x%x], id[%u], creation_time[%llu]",
dm_device_type, dm_device_direction, dm_device_id, creation_time);
- if (pa_streq(device->type, DEVICE_TYPE_BT_A2DP))
- continue;
if (pa_streq(device_type, dm_device_type) && IS_AVAILABLE_DIRECTION(data->stream_type, dm_device_direction)) {
if (!latest_device || (latest_creation_time <= creation_time)) {
latest_device = device;
if ((device = pa_device_manager_get_device_by_id(u->device_manager, *device_id))) {
/* FIXME : This is temparary code, until App could give
* proper BT-SCO device for call-voice */
- if (pa_streq(route_info.role, STREAM_ROLE_CALL_VOICE) && pa_streq(device->type, DEVICE_TYPE_BT_A2DP)) {
+ if (pa_streq(route_info.role, STREAM_ROLE_CALL_VOICE) && pa_streq(device->type, DEVICE_TYPE_BT_SCO)) {
pa_tz_device *sco_device;
if ((sco_device = _get_sco_connected_device(u->device_manager)) == NULL) {
pa_log_error(" ** could not find BT SCO");