Merge/sync code to connect/disconnectA2DP SINK role 44/52644/1
authorparas.kumar <paras.kumar@samsung.com>
Wed, 25 Nov 2015 09:28:27 +0000 (14:58 +0530)
committerparas.kumar <paras.kumar@samsung.com>
Wed, 25 Nov 2015 09:34:50 +0000 (15:04 +0530)
Change-Id: I9e937105d48f600f0ba0ebdf1d20fed562f04967
Signed-off-by: paras.kumar <paras.kumar@samsung.com>
src/bluetooth-audio.c

index 942f48b..65371cd 100644 (file)
@@ -256,6 +256,9 @@ int bt_audio_connect(const char *remote_address, bt_audio_profile_type_e type)
                error = bluetooth_hf_connect(&addr_hex);
                break;
 #endif
+       case BT_AUDIO_PROFILE_TYPE_A2DP_SINK:
+               error = bluetooth_av_source_connect(&addr_hex);
+               break;
        case BT_AUDIO_PROFILE_TYPE_ALL:
        default:
                error = bluetooth_audio_connect(&addr_hex);
@@ -310,6 +313,9 @@ int bt_audio_disconnect(const char *remote_address, bt_audio_profile_type_e type
                error = bluetooth_hf_disconnect(&addr_hex);
                break;
 #endif
+       case BT_AUDIO_PROFILE_TYPE_A2DP_SINK:
+               error = bluetooth_av_source_disconnect(&addr_hex);
+               break;
        case BT_AUDIO_PROFILE_TYPE_ALL:
        default:
                error = bluetooth_audio_disconnect(&addr_hex);