switch (service_id) {
case A2DP_SERVICE_ID:
- if (TIZEN_FEATURE_FHUB_REFERENCE) {
- if (_bt_audio_get_current_role() == BLUETOOTH_A2DP_SOURCE) {
- BT_INFO("Current local A2DP role is Source.. Check current connected A2DP sink remote device");
- connected = _bt_is_headset_type_connected(BT_AUDIO_A2DP, connected_address);
- } else {
- BT_INFO("Current local A2DP role is Sink.. Check current connected A2DP source remote device");
- connected = _bt_is_headset_type_connected(BT_AUDIO_A2DP_SOURCE, connected_address);
- }
- } else
- connected = _bt_is_headset_type_connected(BT_AUDIO_A2DP, connected_address);
+ connected = _bt_is_headset_type_connected(BT_AUDIO_A2DP, connected_address);
if (connected) {
BT_INFO("A2DP is already connected..check which device..");
return;
}
- if (TIZEN_FEATURE_FHUB_REFERENCE) {
- if (service_id == HFP_HS_SERVICE_ID && curr_audio_role == BLUETOOTH_A2DP_SOURCE) {
- BT_INFO("Current local A2DP role is Source.. reject [%s] device authorization request with [%d]",
- address, service_id);
- res = device_reply_auth_request((bt_address_t*)&device_address, service_id, FALSE, FALSE);
- if (res != OAL_STATUS_SUCCESS)
- BT_ERR("authorize_response: %d", res);
- return;
- }
-
- if (service_id == AVRCP_SERVICE_ID && curr_audio_role == BLUETOOTH_A2DP_SINK) {
- BT_INFO("Current local A2DP role is Sink.. reject [%s] device authorization request with [%d]",
- address, service_id);
- res = device_reply_auth_request((bt_address_t*)&device_address, service_id, FALSE, FALSE);
- if (res != OAL_STATUS_SUCCESS)
- BT_ERR("authorize_response: %d", res);
- return;
- }
- }
-
if (connected) {
BT_INFO("[%d] device is already connected..check which device..", service_id);
if (g_strcmp0(connected_address, address) != 0) {
_bt_a2dp_sink_handle_incoming_authorization(address, service_id);
break;
case AVRCP_SERVICE_ID:
- if (TIZEN_FEATURE_FHUB_REFERENCE) {
- BT_DBG("Incoming AVRCP Profile conn Req from device addr [%s]", address);
- _bt_audio_handle_incoming_authorization(address, service_id);
- return;
- } else {
- BT_DBG("Incoming AVRCP (Remote) Profile conn Req from device addr [%s]", address);
- break;
- }
+ BT_DBG("Incoming AVRCP (Remote) Profile conn Req from device addr [%s]", address);
+ break;
case AVRCP_CT_SERVICE_ID:
BT_DBG("Incoming AVRCP (Remote: Controller) Profile conn Req from device addr [%s]", address);
break;