linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [RFC] android/ipc: Add AVRCP HAL message definitions
Date: Tue, 11 Feb 2014 17:59:42 +0100	[thread overview]
Message-ID: <1519908.bKHxqeH89a@leonov> (raw)
In-Reply-To: <1390406788-17152-1-git-send-email-Andrei.Emeltchenko.news@gmail.com>

Hi Andrei,

On Wednesday 22 of January 2014 18:06:28 Andrei Emeltchenko wrote:
> From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> 
> ---
>  android/hal-msg.h | 71
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71
> insertions(+)
> 
> diff --git a/android/hal-msg.h b/android/hal-msg.h
> index d46b428..3937f07 100644
> --- a/android/hal-msg.h
> +++ b/android/hal-msg.h
> @@ -338,6 +338,77 @@ struct hal_cmd_a2dp_disconnect {
>  	uint8_t bdaddr[6];
>  } __attribute__((packed));
> 
> +/* AVRCP HAL API */
> +
> +#define HAL_OP_AVRCP_GET_PLAY_STATUS_RSP		0x01
> +struct hal_cmd_avrcp_get_play_status_rsp {
> +	uint8_t  status;

defines for enums should be added as well (this goes for all enums)

> +	uint32_t len;
> +	uint32_t pos;
> +} __attribute__((packed));
> +
> +#define HAL_OP_AVRCP_LIST_PLAYER_APP_ATTR_RSP		0x02
> +struct hal_cmd_avrcp_list_player_app_attr_rsp {
> +	uint16_t len;
> +	uint8_t  data[0];
> +} __attribute__((packed));
> +
> +#define HAL_OP_AVRCP_LIST_PLAYER_APP_VAL_RSP		0x03
> +struct hal_cmd_avrcp_list_player_app_val_rsp {
> +	uint16_t len;
> +	uint8_t  data[0];
> +} __attribute__((packed));
> +
> +#define MAX_APP_SETTINGS 8
> +struct player_setting {
> +	uint8_t num_attr;
> +	uint8_t attr_ids[MAX_APP_SETTINGS];
> +	uint8_t attr_vals[MAX_APP_SETTINGS];
> +} __attribute__((packed));
> +
> +#define HAL_OP_AVRCP_GET_PLAYER_APP_VAL_RSP		0x04
> +struct hal_cmd_avrcp_get_player_app_val_rsp {
> +	struct player_setting settings;
> +} __attribute__((packed));
> +
> +#define MAX_ATTR_STR_LEN 255
> +struct player_text {
> +	uint32_t id;
> +	uint8_t text[MAX_ATTR_STR_LEN];
> +}  __attribute__((packed));
> +
> +#define HAL_OP_AVRCP_GET_PLAYER_APP_ATTR_TEXT_RSP	0x05
> +#define HAL_OP_AVRCP_GET_PLAYER_APP_VAL_TEXT_RSP	0x06
> +#define HAL_OP_AVRCP_GET_ELEMENT_ATTR_RSP		0x07
> +struct hal_cmd_avrcp_get_text_rsp {
> +	uint16_t len;
> +	struct player_text data[0];
> +} __attribute__((packed));
> +
> +#define HAL_OP_AVRCP_SET_PLAYER_APP_VAL_RSP		0x08
> +struct hal_cmd_avrcp_set_player_app_val_rsp {
> +	uint8_t status;
> +} __attribute__((packed));
> +
> +union notification {
> +	uint8_t  status;
> +	uint8_t  uid[8];
> +	uint32_t pos;
> +	struct player_setting player_settings;
> +} __attribute__((packed));
> +
> +#define HAL_OP_AVRCP_REGISTER_NOTIFICATION_RSP		0x09
> +struct hal_cmd_avrcp_register_notification_rsp {
> +	uint8_t id;
> +	uint8_t type;
> +	union notification param;
> +}  __attribute__((packed));
> +
> +#define HAL_OP_AVRCP_SET_VOLUME				0x0a
> +struct hal_cmd_avrcp_set_volume {
> +	uint8_t volume;
> +}  __attribute__((packed));
> +
>  /* PAN HAL API */
> 
>  /* PAN Roles */

Please add structures for notifications. Also hal-ipc-api.txt needs to be 
updated before this can go in.

-- 
BR
Szymon Janc

      reply	other threads:[~2014-02-11 16:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-22 16:06 [RFC] android/ipc: Add AVRCP HAL message definitions Andrei Emeltchenko
2014-02-11 16:59 ` Szymon Janc [this message]

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=1519908.bKHxqeH89a@leonov \
    --to=szymon.janc@tieto.com \
    --cc=Andrei.Emeltchenko.news@gmail.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).