Create a quirk to be able to accept and trow away certain keys. --- profiles/audio/avctp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index 61890cc..f7e607e 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -58,7 +58,8 @@ #include "avctp.h" #include "avrcp.h" -#define QUIRK_NO_RELEASE 1 << 0 +#define QUIRK_NO_RELEASE 1 << 0 +#define QUIRK_IGNORE 1 << 1 /* Message types */ #define AVCTP_COMMAND 0 @@ -287,6 +288,11 @@ static size_t handle_panel_passthrough(struct avctp *session, key_quirks = session->key_quirks[key_map[i].avc]; + if (key_quirks & QUIRK_IGNORE) { + DBG("AV/C: ignoring %s %s", key_map[i].name, status); + break; + } + if (key_quirks & QUIRK_NO_RELEASE) { if (!pressed) { DBG("AV/C: Ignoring release"); -- 1.7.11.7 -- 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