Bluetooth-Frwk: modify the error audio UUID connection/disconnection 49/15449/2 accepted/tizen/generic/20140128.081211 accepted/tizen/ivi/20140128.174135 accepted/tizen/mobile/20140128.171051 submit/tizen/20140128.081945
authorWu Zheng <wu.zheng@intel.com>
Tue, 21 Jan 2014 09:50:33 +0000 (04:50 -0500)
committerWu Zheng <wu.zheng@intel.com>
Tue, 21 Jan 2014 09:50:33 +0000 (04:50 -0500)
Normally, mobile/ivi will conn/discon headset/headfree device.
headset/headfree should be sink role.

Therefore, audio sink UUID is used to conn/discon.

Change-Id: I5393140f7bb23d61af57900e4647ec3b1a99451d
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
bt-service/bt-service-audio.c

index f65b4ec..994e4a7 100644 (file)
@@ -424,7 +424,7 @@ int _bt_audio_connect(int request_id, int type,
                uuid = HFP_HS_UUID;
                break;
        case BT_AUDIO_A2DP:
-               uuid = A2DP_SOURCE_UUID;
+               uuid = A2DP_SINK_UUID;
                break;
        case BT_AUDIO_ALL:
                uuid = GENERIC_AUDIO_UUID;
@@ -534,7 +534,7 @@ int _bt_audio_disconnect(int request_id, int type,
                uuid = HFP_HS_UUID;
                break;
        case BT_AUDIO_A2DP:
-               uuid = A2DP_SOURCE_UUID;
+               uuid = A2DP_SINK_UUID;
                break;
        case BT_AUDIO_ALL:
                uuid = GENERIC_AUDIO_UUID;