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

Commit 8adf9308 authored by Sanket Agarwal's avatar Sanket Agarwal
Browse files

AVRCP CT: Add get_play_status_cmd API

- Required for PTS test case TC_CT_MDI_BV_01_C

Bug: b/31684931
Change-Id: Ice0bd36e3282d1c543c8c7bbec63f406311c0f6b
(cherry picked from commit 9a55fbe77cd9c6acb56e2e24cccfb9f34a89c729)
parent eabb8ffb
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -4824,6 +4824,22 @@ static bt_status_t get_player_app_setting_cmd(uint8_t num_attrib,
  return (bt_status_t)status;
}

/***************************************************************************
**
** Function         get_playback_state_cmd
**
** Description      Fetch the current playback state for the device
**
** Returns          BT_STATUS_SUCCESS if command issued successfully otherwise
**                  BT_STATUS_FAIL.
**
***************************************************************************/
static bt_status_t get_playback_state_cmd(bt_bdaddr_t *bd_addr) {
    BTIF_TRACE_DEBUG("%s", __func__);
    btif_rc_device_cb_t* p_dev = btif_rc_get_device_by_bda(bd_addr);
    return get_play_status_cmd(p_dev);
}

/***************************************************************************
 *
 * Function         get_now_playing_list_cmd
@@ -5765,6 +5781,7 @@ static const btrc_ctrl_interface_t bt_rc_ctrl_interface = {
    send_groupnavigation_cmd,
    change_player_app_setting,
    play_item_cmd,
    get_playback_state_cmd,
    get_now_playing_list_cmd,
    get_folder_list_cmd,
    get_player_list_cmd,