From abe47600a8b383f85a2174c7720c0b7e93f5537b Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 12 Feb 2014 16:48:07 +0200 Subject: [PATCH] android/hal-ipc-api: Add List Player Attributes Response --- android/hal-ipc-api.txt | 14 +++++++++++++- android/hal-msg.h | 11 +++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt index 01c2e8183..ae58fda3b 100644 --- a/android/hal-ipc-api.txt +++ b/android/hal-ipc-api.txt @@ -1203,7 +1203,19 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID) 0x04 = Rev seek 0xff = Error - Opcode 0x02 - List Player Application Attributes command/response + Opcode 0x02 - List Player Attributes Response command/response + + Command parameters: Number of attributes (1 octet) + Attribute # (1 octet) + ... + + In case of an error, the error response will be returned. + + Valid attributes: 0x01 = Equalizer + 0x02 = Repead + 0x03 = Shuffle + 0x04 = Scan + Opcode 0x03 - List Player Application Values command/response Opcode 0x04 - Get Player Application Values command/response Opcode 0x05 - Get Player Application Attributes Text command/response diff --git a/android/hal-msg.h b/android/hal-msg.h index 82cd3f57d..4a438d17a 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -799,3 +799,14 @@ struct hal_cmd_avrcp_get_play_status { uint32_t duration; uint32_t position; } __attribute__((packed)); + +#define HAL_AVRCP_PLAYER_ATTR_EQUALIZER 0x01 +#define HAL_AVRCP_PLAYER_ATTR_REPEAT 0x02 +#define HAL_AVRCP_PLAYER_ATTR_SHUFFLE 0x03 +#define HAL_AVRCP_PLAYER_ATTR_SCAN 0x04 + +#define HAL_OP_AVRCP_LIST_PLAYER_ATTRS 0x02 +struct hal_cmd_avrcp_list_player_attrs { + uint8_t number; + uint8_t attrs[0]; +} __attribute__((packed)); -- 2.47.3