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

Commit f5d6545f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes from topic "AVRCP Controller Browsing"

* changes:
  AVRCP play status change updates
  AVRCP register for addressed player changed
parents cd418ea6 5a6d6815
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -3112,6 +3112,7 @@ static void handle_get_capability_response(tBTA_AV_META_MSG* pmeta_msg,
      if ((p_rsp->param.event_id[xx] == AVRC_EVT_PLAY_STATUS_CHANGE) ||
      if ((p_rsp->param.event_id[xx] == AVRC_EVT_PLAY_STATUS_CHANGE) ||
          (p_rsp->param.event_id[xx] == AVRC_EVT_TRACK_CHANGE) ||
          (p_rsp->param.event_id[xx] == AVRC_EVT_TRACK_CHANGE) ||
          (p_rsp->param.event_id[xx] == AVRC_EVT_APP_SETTING_CHANGE) ||
          (p_rsp->param.event_id[xx] == AVRC_EVT_APP_SETTING_CHANGE) ||
          (p_rsp->param.event_id[xx] == AVRC_EVT_ADDR_PLAYER_CHANGE) ||
          (p_rsp->param.event_id[xx] == AVRC_EVT_UIDS_CHANGE)) {
          (p_rsp->param.event_id[xx] == AVRC_EVT_UIDS_CHANGE)) {
        p_event = (btif_rc_supported_event_t*)osi_malloc(
        p_event = (btif_rc_supported_event_t*)osi_malloc(
            sizeof(btif_rc_supported_event_t));
            sizeof(btif_rc_supported_event_t));
@@ -3200,7 +3201,9 @@ static void handle_notification_response(tBTA_AV_META_MSG* pmeta_msg,
        /* Start timer to get play status periodically
        /* Start timer to get play status periodically
         * if the play state is playing.
         * if the play state is playing.
         */
         */
        if (p_rsp->param.play_status == AVRC_PLAYSTATE_PLAYING) {
        if (p_rsp->param.play_status == AVRC_PLAYSTATE_PLAYING ||
            p_rsp->param.play_status == AVRC_PLAYSTATE_REV_SEEK ||
            p_rsp->param.play_status == AVRC_PLAYSTATE_FWD_SEEK) {
          rc_start_play_status_timer(p_dev);
          rc_start_play_status_timer(p_dev);
        }
        }
        HAL_CBACK(bt_rc_ctrl_callbacks, play_status_changed_cb, &rc_addr,
        HAL_CBACK(bt_rc_ctrl_callbacks, play_status_changed_cb, &rc_addr,
@@ -3229,6 +3232,8 @@ static void handle_notification_response(tBTA_AV_META_MSG* pmeta_msg,
        break;
        break;


      case AVRC_EVT_ADDR_PLAYER_CHANGE:
      case AVRC_EVT_ADDR_PLAYER_CHANGE:
        HAL_CBACK(bt_rc_ctrl_callbacks, set_addressed_player_cb, &rc_addr,
                  BTRC_STS_ADDR_PLAY_CHGD);
        break;
        break;


      case AVRC_EVT_UIDS_CHANGE:
      case AVRC_EVT_UIDS_CHANGE: