From c333844d4c3771859cbc21022a589640726b8819 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 12 Feb 2014 16:48:11 +0200 Subject: [PATCH] android/hal-ipc-api: Add Get Player Values Text Response --- android/hal-ipc-api.txt | 10 +++++++++- android/hal-msg.h | 6 ++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt index 496851c88..c8f5557d2 100644 --- a/android/hal-ipc-api.txt +++ b/android/hal-ipc-api.txt @@ -1247,7 +1247,15 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID) Valid attributes: Same as in List Player Attributes - Opcode 0x06 - Get Player Application Values Text command/response + Opcode 0x06 - Get Player Values Text Response command/response + + Command parameters: Number of values (1 octet) + Value # (1 octet) + Value # text (255 octets) + ... + + In case of an error, the error response will be returned. + Opcode 0x07 - Get Element Attributes Text command/response Opcode 0x08 - Set Player Attributes Value command/response Opcode 0x09 - Register Notification command/response diff --git a/android/hal-msg.h b/android/hal-msg.h index 2891a3aea..280c28c09 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -838,3 +838,9 @@ struct hal_cmd_avrcp_get_player_attrs_text { uint8_t number; struct hal_avrcp_player_setting_text attrs[0]; } __attribute__((packed)); + +#define HAL_OP_AVRCP_GET_PLAYER_VALUES_TEXT 0x06 +struct hal_cmd_avrcp_get_player_values_text { + uint8_t number; + struct hal_avrcp_player_setting_text values[0]; +} __attribute__((packed)); -- 2.47.3