From 786229f4f84ac541ae6dd6f1c53571ad44092417 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 13 Feb 2014 17:18:37 +0200 Subject: [PATCH] android/hal-ipc-api: Add Remote Features notification --- android/hal-ipc-api.txt | 14 ++++++++++++-- android/hal-msg.h | 6 ++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt index c1609c9cc..70f947d97 100644 --- a/android/hal-ipc-api.txt +++ b/android/hal-ipc-api.txt @@ -1300,8 +1300,18 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID) Valid type values : 0x00 = Interim 0x01 = Changed - Opcode 0x81 - Get Play Status notification - Opcode 0x82 - List Player Application Attributes notification + Opcode 0x81 - Remote Features notification + + Notification parameters: Remote address (6 octets) + Features (1 octet) + + Valid features values : 0x00 = None + 0x01 = Metadata + 0x02 = Absolute Volume + 0x03 = Browse + + Opcode 0x82 - Get Play Status notification + Opcode 0x83 - List Player Application Attributes notification ... diff --git a/android/hal-msg.h b/android/hal-msg.h index ca1f6b583..f6cdf5864 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -881,3 +881,9 @@ struct hal_cmd_avrcp_register_notification { uint8_t len; uint8_t data[0]; } __attribute__((packed)); + +#define HAL_EV_AVRCP_REMOTE_FEATURES 0x81 +struct hal_ev_avrcp_remote_features { + uint8_t bdaddr[6]; + uint8_t features; +} __attribute__((packed)); -- 2.47.3