From: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
To: linux-bluetooth@vger.kernel.org
Cc: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Subject: [PATCH_v2 2/5] android/hal-msg: Add support for new AVRCP CTRL interface
Date: Mon, 10 Nov 2014 16:05:06 +0200 [thread overview]
Message-ID: <1415628309-7384-3-git-send-email-ravikumar.veeramally@linux.intel.com> (raw)
In-Reply-To: <1415628309-7384-1-git-send-email-ravikumar.veeramally@linux.intel.com>
---
android/hal-msg.h | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/android/hal-msg.h b/android/hal-msg.h
index eef226e..ac691d8 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -37,6 +37,7 @@ static const char BLUEZ_HAL_SK_PATH[] = "\0bluez_hal_socket";
#define HAL_SERVICE_ID_GATT 9
#define HAL_SERVICE_ID_HANDSFREE_CLIENT 10
#define HAL_SERVICE_ID_MAP_CLIENT 11
+#define HAL_SERVICE_ID_AVRCP_CTRL 12
#define HAL_SERVICE_ID_MAX HAL_SERVICE_ID_MAP_CLIENT
@@ -607,7 +608,7 @@ struct hal_cmd_handsfree_phone_state_change {
uint8_t number[0];
} __attribute__((packed));
-/* AVRCP HAL API */
+/* AVRCP TARGET HAL API */
#define HAL_AVRCP_PLAY_STATUS_STOPPED 0x00
#define HAL_AVRCP_PLAY_STATUS_PLAYING 0x01
@@ -711,6 +712,15 @@ struct hal_cmd_avrcp_set_volume {
uint8_t value;
} __attribute__((packed));
+/* AVRCP CTRL HAL API */
+
+#define HAL_OP_AVRCP_CTRL_SEND_PASSTHROUGH 0x01
+struct hal_cmd_avrcp_ctrl_send_passthrough {
+ uint8_t bdaddr[6];
+ uint8_t key_code;
+ uint8_t key_state;
+} __attribute__((packed));
+
/* GATT HAL API */
#define HAL_OP_GATT_CLIENT_REGISTER 0x01
@@ -1499,6 +1509,18 @@ struct hal_ev_avrcp_passthrough_cmd {
uint8_t state;
} __attribute__((packed));
+#define HAL_EV_AVRCP_CTRL_CONN_STATE 0x80
+struct hal_ev_avrcp_ctrl_conn_state {
+ uint8_t state;
+ uint8_t bdaddr[6];
+} __attribute__((packed));
+
+#define HAL_EV_AVRCP_CTRL_PASSTHROUGH_RSP 0x81
+struct hal_ev_avrcp_ctrl_passthrough_rsp {
+ uint8_t id;
+ uint8_t key_state;
+} __attribute__((packed));
+
#define HAL_EV_GATT_CLIENT_REGISTER_CLIENT 0x81
struct hal_ev_gatt_client_register_client {
int32_t status;
--
2.1.0
next prev parent reply other threads:[~2014-11-10 14:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-10 14:05 [PATCH_v2 0/5] Add support for new AVRCP ctrl interface Ravi kumar Veeramally
2014-11-10 14:05 ` [PATCH_v2 1/5] android/hal-ipc-txt: Add support for new AVRCP CTRL interface Ravi kumar Veeramally
2014-11-10 14:05 ` Ravi kumar Veeramally [this message]
2014-11-10 14:05 ` [PATCH_v2 3/5] android/hal-avrcp: Add suuport for new AVRCP ctrl interface Ravi kumar Veeramally
2014-11-10 14:05 ` [PATCH_v2 4/5] android/client: Add support for new AVRCP CTRL interface Ravi kumar Veeramally
2014-11-10 14:05 ` [PATCH_v2 5/5] android/avrcp: Add initial " Ravi kumar Veeramally
2014-11-11 9:23 ` Luiz Augusto von Dentz
2014-11-11 9:24 ` [PATCH_v2 0/5] Add support for new AVRCP ctrl interface Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1415628309-7384-3-git-send-email-ravikumar.veeramally@linux.intel.com \
--to=ravikumar.veeramally@linux.intel.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).