Re: [PATCH 1/4] android/avrcp: Fix response for RegisterNotification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrzej,

On Tue, Mar 4, 2014 at 10:43 PM, Andrzej Kaczmarek
<andrzej.kaczmarek@xxxxxxxxx> wrote:
> ---
>  android/avrcp.c | 15 ++++++++++++++-
>  1 file changed, 14 insertions(+), 1 deletion(-)
>
> diff --git a/android/avrcp.c b/android/avrcp.c
> index 8eac4cd..f3427a3 100644
> --- a/android/avrcp.c
> +++ b/android/avrcp.c
> @@ -255,6 +255,7 @@ static void handle_register_notification(const void *buf, uint16_t len)
>         struct avrcp_request *req;
>         uint8_t pdu[IPC_MTU];
>         size_t pdu_len;
> +       uint8_t code;
>         int ret;
>
>         DBG("");
> @@ -280,8 +281,20 @@ static void handle_register_notification(const void *buf, uint16_t len)
>                 goto done;
>         }
>
> +       switch (cmd->type) {
> +       case HAL_AVRCP_EVENT_TYPE_INTERIM:
> +               code = AVC_CTYPE_INTERIM;
> +               break;
> +       case HAL_AVRCP_EVENT_TYPE_CHANGED:
> +               code = AVC_CTYPE_CHANGED;
> +               break;
> +       default:
> +               status = HAL_STATUS_FAILED;
> +               goto done;
> +       }
> +
>         ret = avrcp_register_notification_rsp(req->dev->session,
> -                                               req->transaction, cmd->type,
> +                                               req->transaction, code,
>                                                 pdu, pdu_len);
>         if (ret < 0) {
>                 status = HAL_STATUS_FAILED;
> --
> 1.9.0

Applied, thanks.


-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux