Skip to contentSkip to conversation

android/hal-ipc-api: Add Remote Features notification

PATCH In review Luiz Augusto von Dentz 2 participants 13 messages Feb 13, 2014 – Feb 14, 2014 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/12 android/hal-ipc-api: Add Remote Features notification

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hal-ipc-api.txt | 14 ++++++++++++--
 android/hal-msg.h       |  6 ++++++
 2 files changed, 18 insertions(+), 2 deletions(-)
android/hal-ipc-api.txt +12 -2
index c1609c9..70f947d 100644
@@ -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
 	...
 
 
android/hal-msg.h +6 -0
index ca1f6b5..f6cdf58 100644
@@ -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));
Signature · 1 line
1.8.5.3
author maintainer
#1 lore raw

PATCH 2/12 android/hal-ipc-api: Add Get Play Status notification

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hal-ipc-api.txt | 3 +++
 android/hal-msg.h       | 2 ++
 2 files changed, 5 insertions(+)
android/hal-ipc-api.txt +3 -0
index 70f947d..ce50b6c 100644
@@ -1311,6 +1311,9 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID)
 		                        0x03 = Browse
 
 	Opcode 0x82 - Get Play Status notification
+
+		Notification parameters: <none>
+
 	Opcode 0x83 - List Player Application Attributes notification
 	...
 
android/hal-msg.h +2 -0
index f6cdf58..7dfbf2a 100644
@@ -887,3 +887,5 @@ struct hal_ev_avrcp_remote_features {
 	uint8_t bdaddr[6];
 	uint8_t features;
 } __attribute__((packed));
+
+#define HAL_EV_AVRCP_GET_PLAY_STATUS		0x82
Signature · 1 line
1.8.5.3
author maintainer
#2 lore raw

PATCH 3/12 android/hal-ipc-api: Add List Player Attributes notification

In reply to Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hal-ipc-api.txt | 5 +++--
 android/hal-msg.h       | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)
android/hal-ipc-api.txt +3 -2
index ce50b6c..aa35050 100644
@@ -1314,8 +1314,9 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID)
 
 		Notification parameters: <none>
 
-	Opcode 0x83 - List Player Application Attributes notification
-	...
+	Opcode 0x83 - List Player Attributes notification
+
+		Notification parameters: <none>
 
 
 Bluetooth GATT HAL (ID 9)
android/hal-msg.h +1 -0
index 7dfbf2a..9536b85 100644
@@ -889,3 +889,4 @@ struct hal_ev_avrcp_remote_features {
 } __attribute__((packed));
 
 #define HAL_EV_AVRCP_GET_PLAY_STATUS		0x82
+#define HAL_EV_AVRCP_LIST_PLAYER_ATTRS		0x83
Signature · 1 line
1.8.5.3
author maintainer
#3 lore raw

PATCH 4/12 android/hal-ipc-api: Add List Player Values notification

In reply to Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hal-ipc-api.txt | 6 ++++++
 android/hal-msg.h       | 5 +++++
 2 files changed, 11 insertions(+)
android/hal-ipc-api.txt +6 -0
index aa35050..56df5b0 100644
@@ -1318,6 +1318,12 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID)
 
 		Notification parameters: <none>
 
+	Opcode 0x84 - List Player Values notification
+
+		Notification parameters: Attribute (1 octet)
+
+		Valid attribute values: Same as in List Player Attributes
+
 
 Bluetooth GATT HAL (ID 9)
 =========================
android/hal-msg.h +5 -0
index 9536b85..55cea27 100644
@@ -890,3 +890,8 @@ struct hal_ev_avrcp_remote_features {
 
 #define HAL_EV_AVRCP_GET_PLAY_STATUS		0x82
 #define HAL_EV_AVRCP_LIST_PLAYER_ATTRS		0x83
+
+#define HAL_EV_AVRCP_LIST_PLAYER_VALUES		0x84
+struct hal_ev_avrcp_list_player_values {
+	uint8_t attr;
+} __attribute__((packed));
Signature · 1 line
1.8.5.3
author maintainer
#4 lore raw

PATCH 5/12 android/hal-ipc-api: Add Get Player Values notification

In reply to Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hal-ipc-api.txt | 7 +++++++
 android/hal-msg.h       | 6 ++++++
 2 files changed, 13 insertions(+)
android/hal-ipc-api.txt +7 -0
index 56df5b0..fd687fb 100644
@@ -1324,6 +1324,13 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID)
 
 		Valid attribute values: Same as in List Player Attributes
 
+	Opcode 0x85 - Get Player Values notification
+
+		Notification parameters: Number of attributes (1 octet)
+		                         Attribute # (1 octet)
+		                         ...
+
+		Valid attribute values: Same as in List Player Attributes
 
 Bluetooth GATT HAL (ID 9)
 =========================
android/hal-msg.h +6 -0
index 55cea27..d5d91dd 100644
@@ -895,3 +895,9 @@ struct hal_ev_avrcp_remote_features {
 struct hal_ev_avrcp_list_player_values {
 	uint8_t attr;
 } __attribute__((packed));
+
+#define HAL_EV_AVRCP_GET_PLAYER_VALUES		0x85
+struct hal_ev_avrcp_get_player_values {
+	uint8_t number;
+	uint8_t attrs[0];
+} __attribute__((packed));
Signature · 1 line
1.8.5.3
author maintainer
#5 lore raw

PATCH 6/12 android/hal-ipc-api: Add Get Player Attributes Text notification

In reply to Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hal-ipc-api.txt | 8 ++++++++
 android/hal-msg.h       | 6 ++++++
 2 files changed, 14 insertions(+)
android/hal-ipc-api.txt +8 -0
index fd687fb..0810078 100644
@@ -1332,6 +1332,14 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID)
 
 		Valid attribute values: Same as in List Player Attributes
 
+	Opcode 0x86 - Get Player Attributes Text notification
+
+		Notification parameters: Number of attributes (1 octet)
+		                         Attribute # (1 octet)
+		                         ...
+
+		Valid attribute values: Same as in List Player Attributes
+
 Bluetooth GATT HAL (ID 9)
 =========================
 
android/hal-msg.h +6 -0
index d5d91dd..67fccb9 100644
@@ -901,3 +901,9 @@ struct hal_ev_avrcp_get_player_values {
 	uint8_t number;
 	uint8_t attrs[0];
 } __attribute__((packed));
+
+#define HAL_EV_AVRCP_GET_PLAYER_ATTRS_TEXT	0x86
+struct hal_ev_avrcp_get_player_attrs_text {
+	uint8_t number;
+	uint8_t attrs[0];
+} __attribute__((packed));
Signature · 1 line
1.8.5.3
author maintainer
#6 lore raw

PATCH 7/12 android/hal-ipc-api: Add Get Player Values Text notification

In reply to Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hal-ipc-api.txt | 9 +++++++++
 android/hal-msg.h       | 7 +++++++
 2 files changed, 16 insertions(+)
android/hal-ipc-api.txt +9 -0
index 0810078..362cdf4 100644
@@ -1340,6 +1340,15 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID)
 
 		Valid attribute values: Same as in List Player Attributes
 
+	Opcode 0x87 - Get Player Values Text notification
+
+		Notification parameters: Attribute (1 octet)
+		                         Number of values (1 octet)
+		                         Value # (1 octet)
+		                         ...
+
+		Valid attribute values: Same as in List Player Attributes
+
 Bluetooth GATT HAL (ID 9)
 =========================
 
android/hal-msg.h +7 -0
index 67fccb9..188e7c2 100644
@@ -907,3 +907,10 @@ struct hal_ev_avrcp_get_player_attrs_text {
 	uint8_t number;
 	uint8_t attrs[0];
 } __attribute__((packed));
+
+#define HAL_EV_AVRCP_GET_PLAYER_VALUES_TEXT	0x87
+struct hal_ev_avrcp_get_player_values_text {
+	uint8_t attr;
+	uint8_t number;
+	uint8_t values[0];
+} __attribute__((packed));
Signature · 1 line
1.8.5.3
author maintainer
#7 lore raw

PATCH 8/12 android/hal-ipc-api: Add Set Player Values notification

In reply to Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hal-ipc-api.txt | 9 +++++++++
 android/hal-msg.h       | 6 ++++++
 2 files changed, 15 insertions(+)
android/hal-ipc-api.txt +9 -0
index 362cdf4..3f7d017 100644
@@ -1349,6 +1349,15 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID)
 
 		Valid attribute values: Same as in List Player Attributes
 
+	Opcode 0x88 - Set Player Values notification
+
+		Notification parameters: Number of attributes (1 octet)
+		                         Attribute # (1 octet)
+		                         Value # (1 octet)
+		                         ...
+
+		Valid attribute values: Same as in List Player Attributes
+
 Bluetooth GATT HAL (ID 9)
 =========================
 
android/hal-msg.h +6 -0
index 188e7c2..fd4b522 100644
@@ -914,3 +914,9 @@ struct hal_ev_avrcp_get_player_values_text {
 	uint8_t number;
 	uint8_t values[0];
 } __attribute__((packed));
+
+#define HAL_EV_AVRCP_SET_PLAYER_VALUES		0x88
+struct hal_ev_avrcp_set_player_values {
+	uint8_t number;
+	struct hal_avrcp_player_attr_value attrs[0];
+} __attribute__((packed));
Signature · 1 line
1.8.5.3
author maintainer
#8 lore raw

PATCH 9/12 android/hal-ipc-api: Add Get Element Attributes notification

In reply to Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hal-ipc-api.txt | 8 ++++++++
 android/hal-msg.h       | 6 ++++++
 2 files changed, 14 insertions(+)
android/hal-ipc-api.txt +8 -0
index 3f7d017..f2427e1 100644
@@ -1358,6 +1358,14 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID)
 
 		Valid attribute values: Same as in List Player Attributes
 
+	Opcode 0x89 - Get Element Attributes notification
+
+		Notification parameters: Number of attributes (1 octet)
+		                         Attribute # (1 octet)
+		                         ...
+
+		Valid attribute values: Same as in Get Element Attribute
+
 Bluetooth GATT HAL (ID 9)
 =========================
 
android/hal-msg.h +6 -0
index fd4b522..9bc2d2a 100644
@@ -920,3 +920,9 @@ struct hal_ev_avrcp_set_player_values {
 	uint8_t number;
 	struct hal_avrcp_player_attr_value attrs[0];
 } __attribute__((packed));
+
+#define HAL_EV_AVRCP_GET_ELEMENT_ATTRS		0x89
+struct hal_ev_avrcp_get_element_attrs {
+	uint8_t number;
+	uint8_t attrs[0];
+} __attribute__((packed));
Signature · 1 line
1.8.5.3
author maintainer
#9 lore raw

PATCH 10/12 android/hal-ipc-api: Add Register Notification notification

In reply to Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hal-ipc-api.txt | 7 +++++++
 android/hal-msg.h       | 6 ++++++
 2 files changed, 13 insertions(+)
android/hal-ipc-api.txt +7 -0
index f2427e1..535e880 100644
@@ -1366,6 +1366,13 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID)
 
 		Valid attribute values: Same as in Get Element Attribute
 
+	Opcode 0x8a - Register Notification notification
+
+		Notification parameters: Event (1 octet)
+		                         Parameter (4 octets)
+
+		Valid event values: Same as in Register Notification
+
 Bluetooth GATT HAL (ID 9)
 =========================
 
android/hal-msg.h +6 -0
index 9bc2d2a..a7df71a 100644
@@ -926,3 +926,9 @@ struct hal_ev_avrcp_get_element_attrs {
 	uint8_t number;
 	uint8_t attrs[0];
 } __attribute__((packed));
+
+#define HAL_EV_AVRCP_REGISTER_NOTIFICATION	0x8a
+struct hal_ev_avrcp_register_notification {
+	uint8_t event;
+	uint32_t param;
+} __attribute__((packed));
Signature · 1 line
1.8.5.3
author maintainer
#10 lore raw

PATCH 11/12 android/hal-ipc-api: Add Volume Changed notification

In reply to Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hal-ipc-api.txt | 7 +++++++
 android/hal-msg.h       | 6 ++++++
 2 files changed, 13 insertions(+)
android/hal-ipc-api.txt +7 -0
index 535e880..99ecede 100644
@@ -1373,6 +1373,13 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID)
 
 		Valid event values: Same as in Register Notification
 
+	Opcode 0x8b - Volume Changed notification
+
+		Notification parameters: Volume (1 octet)
+		                         Type (1 octet)
+
+		Valid type values: Same as in Register Notification
+
 Bluetooth GATT HAL (ID 9)
 =========================
 
android/hal-msg.h +6 -0
index a7df71a..0561894 100644
@@ -932,3 +932,9 @@ struct hal_ev_avrcp_register_notification {
 	uint8_t event;
 	uint32_t param;
 } __attribute__((packed));
+
+#define HAL_EV_AVRCP_VOLUME_CHANGED		0x8b
+struct hal_ev_avrcp_volume_changed {
+	uint8_t volume;
+	uint8_t type;
+} __attribute__((packed));
Signature · 1 line
1.8.5.3
author maintainer
#11 lore raw

PATCH 12/12 android/hal-ipc-api: Add Passthrough Command notification

In reply to Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hal-ipc-api.txt | 5 +++++
 android/hal-msg.h       | 6 ++++++
 2 files changed, 11 insertions(+)
android/hal-ipc-api.txt +5 -0
index 99ecede..ee3bd76 100644
@@ -1380,6 +1380,11 @@ Android HAL name: "avrcp" (BT_PROFILE_AV_RC_ID)
 
 		Valid type values: Same as in Register Notification
 
+	Opcode 0x8c - Passthrough Command notification
+
+		Notification parameters: ID (1 octet)
+		                         State (1 octet)
+
 Bluetooth GATT HAL (ID 9)
 =========================
 
android/hal-msg.h +6 -0
index 0561894..6504408 100644
@@ -938,3 +938,9 @@ struct hal_ev_avrcp_volume_changed {
 	uint8_t volume;
 	uint8_t type;
 } __attribute__((packed));
+
+#define HAL_EV_AVRCP_PASSTHROUGH_CMD		0x8c
+struct hal_ev_avrcp_passthrough_cmd {
+	uint8_t id;
+	uint8_t state;
+} __attribute__((packed));
Signature · 1 line
1.8.5.3
#12 lore raw
In reply to Luiz Augusto von Dentz

Hi Luiz,

Quoted 38 lines · On Thursday 13 of February 2014 17:18:37 Luiz Augusto von Dentz wrote:

From: Luiz Augusto von Dentz <[email protected]>

---
 android/hal-ipc-api.txt | 14 ++++++++++++--
 android/hal-msg.h       |  6 ++++++
 2 files changed, 18 insertions(+), 2 deletions(-)
android/hal-ipc-api.txt +12 -2
index c1609c9..70f947d 100644
@@ -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
...
android/hal-msg.h +0 -0
index ca1f6b5..f6cdf58 100644

android/hal-msg.h struct hal_cmd_avrcp_register_notification { · line 889

Quoted 9 lines
android/hal-msg.h +6 -0
@@ -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));

All patches applied, thanks.

Signature · 2 lines
Best regards, 
Szymon Janc