From 1446bca69dd4d6bd0c0bb1e3e14d70a415e30268 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 19 Feb 2014 18:58:45 +0200 Subject: [PATCH] android/hal-ipc-api: Add Set Volume command --- android/hal-ipc-api.txt | 6 ++++++ android/hal-msg.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt index 22dd50d27..3422eafae 100644 --- a/android/hal-ipc-api.txt +++ b/android/hal-ipc-api.txt @@ -1306,6 +1306,12 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID) Valid type values : 0x00 = Interim 0x01 = Changed + Opcode 0x0a - Set Volume command/response + + Command parameters: Value (1 octet) + + In case of an error, the error response will be returned. + Opcode 0x81 - Remote Features notification Notification parameters: Remote address (6 octets) diff --git a/android/hal-msg.h b/android/hal-msg.h index 964ab35d1..68fee0316 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -889,6 +889,11 @@ struct hal_cmd_avrcp_register_notification { uint8_t data[0]; } __attribute__((packed)); +#define HAL_OP_AVRCP_SET_VOLUME 0x0a +struct hal_cmd_avrcp_set_volume { + uint8_t value; +}; + #define HAL_EV_AVRCP_REMOTE_FEATURES 0x81 struct hal_ev_avrcp_remote_features { uint8_t bdaddr[6]; -- 2.47.3