Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8bb31d1d authored by Ravi Nagarajan's avatar Ravi Nagarajan
Browse files

DO NOT MERGE: Send to local UUID for AV connection

BTA expects local UUID to be passed into BTA_AvOpen. The value of source/sink
was reversed in the btif layer thus causing connection failure
bug 15837817

Change-Id: If159ac0491afcb75659336c98caba3cefe71ee7b
parent 96dcf628
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -894,8 +894,6 @@ static void bte_av_media_callback(tBTA_AV_EVT event, tBTA_AV_MEDIA *p_data)

bt_status_t btif_av_init()
{
    btif_av_cb.sm_handle = NULL;

    if (btif_av_cb.sm_handle == NULL)
    {
        if (btif_a2dp_start_media_task() != GKI_SUCCESS)
@@ -1002,7 +1000,7 @@ static bt_status_t connect_src(bt_bdaddr_t *bd_addr)
    BTIF_TRACE_EVENT("%s", __FUNCTION__);
    CHECK_BTAV_INIT();

    return btif_queue_connect(UUID_SERVCLASS_AUDIO_SINK, bd_addr, connect_int);
    return btif_queue_connect(UUID_SERVCLASS_AUDIO_SOURCE, bd_addr, connect_int);
}

static bt_status_t connect_sink(bt_bdaddr_t *bd_addr)
@@ -1010,7 +1008,7 @@ static bt_status_t connect_sink(bt_bdaddr_t *bd_addr)
    BTIF_TRACE_EVENT("%s", __FUNCTION__);
    CHECK_BTAV_INIT();

    return btif_queue_connect(UUID_SERVCLASS_AUDIO_SOURCE, bd_addr, connect_int);
    return btif_queue_connect(UUID_SERVCLASS_AUDIO_SINK, bd_addr, connect_int);
}

/*******************************************************************************