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

Commit 5908ab8a authored by Anubhav Gupta's avatar Anubhav Gupta Committed by Pavlin Radoslavov
Browse files

Enable incoming connection for AVRCP Controller

 - Start listening for incoming AVRCP connection if we have
   only AVRCP Controller
 - Update default peer_features based on feature mask. In case
   of incoming AVRCP connection, SDP will be done later.
   In such a scenario default peer features sent to btif should
   be based on  features-set selected during initialization.

Test: code compilation
Change-Id: Ied8ac0673288a4423bd41500985366ddc2c567a8
parent c5108022
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -594,12 +594,12 @@ void bta_av_rc_opened(tBTA_AV_CB *p_cb, tBTA_AV_DATA *p_data)
    if (rc_open.peer_features == 0)
    {
        /* we have not done SDP on peer RC capabilities.
         * peer must have initiated the RC connection
         * We Don't have SDP records of Peer, so we by
         * default will take values depending upon registered
         * features */
         * peer must have initiated the RC connection */
        if (p_cb->features & BTA_AV_FEAT_RCCT)
            rc_open.peer_features |= BTA_AV_FEAT_RCTG;
        if (p_cb->features & BTA_AV_FEAT_RCTG)
            rc_open.peer_features |= BTA_AV_FEAT_RCCT;

        bta_av_rc_disc(disc);
    }
    (*p_cb->p_cback)(BTA_AV_RC_OPEN_EVT, (tBTA_AV *) &rc_open);