From: Lucas De Marchi <lucas.demarchi@profusion.mobi>
To: linux-bluetooth@vger.kernel.org
Cc: luiz.dentz@gmail.com, sunil.a.kumar@intel.com,
rashmi.g.nair@intel.com, prashant.khanzode@intel.com,
luiz.von.dentz@intel.com,
Lucas De Marchi <lucas.demarchi@profusion.mobi>
Subject: [PATCH BlueZ] AVCTP: return not-implemented for unknown passthrough
Date: Tue, 28 Feb 2012 11:20:17 -0300 [thread overview]
Message-ID: <1330438817-23824-1-git-send-email-lucas.demarchi@profusion.mobi> (raw)
In-Reply-To: <CABBYNZL32nUYXTXTM1gCmRhGms5qGpW2uibyT5j5gDBow8Akiw@mail.gmail.com>
---
audio/avctp.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/audio/avctp.c b/audio/avctp.c
index 5bd5db1..1d425eb 100644
--- a/audio/avctp.c
+++ b/audio/avctp.c
@@ -235,9 +235,12 @@ static size_t handle_panel_passthrough(struct avctp *session,
break;
}
- if (key_map[i].name == NULL)
+ if (key_map[i].name == NULL) {
DBG("AV/C: unknown button 0x%02X %s",
operands[0] & 0x7F, status);
+ *code = AVC_CTYPE_NOT_IMPLEMENTED;
+ return 0;
+ }
done:
*code = AVC_CTYPE_ACCEPTED;
--
1.7.9.2
next prev parent reply other threads:[~2012-02-28 14:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-28 9:47 Response to AVRCP Passthrough Commands Kumar, Sunil A
2012-02-28 13:05 ` Lucas De Marchi
2012-02-28 13:52 ` Luiz Augusto von Dentz
2012-02-28 14:20 ` Lucas De Marchi [this message]
2012-02-28 15:40 ` [PATCH BlueZ] AVCTP: return not-implemented for unknown passthrough Malovany, Ram
2012-02-28 15:54 ` Lucas De Marchi
2012-04-02 14:46 ` Johan Hedberg
2012-02-29 12:20 ` Response to AVRCP Passthrough Commands Kumar, Sunil A
2012-02-29 13:23 ` Luiz Augusto von Dentz
2012-03-01 9:53 ` Kumar, Sunil A
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=1330438817-23824-1-git-send-email-lucas.demarchi@profusion.mobi \
--to=lucas.demarchi@profusion.mobi \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=luiz.von.dentz@intel.com \
--cc=prashant.khanzode@intel.com \
--cc=rashmi.g.nair@intel.com \
--cc=sunil.a.kumar@intel.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;
as well as URLs for NNTP newsgroup(s).