public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@nokia.com>
To: Scott Talbot <psyc@stalbot.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Fix sending AVRCP button released passthrough messages
Date: Thu, 23 Apr 2009 15:42:07 +0300	[thread overview]
Message-ID: <20090423124207.GA8492@localhost> (raw)
In-Reply-To: <1240487616-8920-1-git-send-email-psyc@stalbot.com>

Hi Scott,

On Thu, Apr 23, 2009, Scott Talbot wrote:
>Set the high bit in the op value for the button released event rather
>than clearing the entire field.
>---
> audio/control.c |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
>diff --git a/audio/control.c b/audio/control.c
>index e0451e7..5cc4a31 100644
>--- a/audio/control.c
>+++ b/audio/control.c
>@@ -937,7 +937,7 @@ static int avctp_send_passthrough(struct control *control, uint8_t op)
> 
> 	/* Button release */
> 	avctp->transaction = transaction++;
>-	operands[0] &= 0x80;
>+	operands[0] |= 0x80;
> 
> 	return write(sk, buf, sizeof(buf));
> }

Yeah, stupid mistake by me (though headsets I tested with didn't seem to 
mind this). Thanks for catching it! The patch is now pushed upstream.

Johan


      reply	other threads:[~2009-04-23 12:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-23 11:53 [PATCH] Fix sending AVRCP button released passthrough messages Scott Talbot
2009-04-23 12:42 ` Johan Hedberg [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=20090423124207.GA8492@localhost \
    --to=johan.hedberg@nokia.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=psyc@stalbot.com \
    /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