From bd416e95d5a323e4a9a2e5e2cd38866b241add0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= Date: Fri, 25 Jan 2013 14:54:58 -0300 Subject: [PATCH] avctp: Handle Vol Up/Down operations The AVRCP spec mandates to support 'volume up' and 'volume down' operations when claiming support for Category 2 TG. --- profiles/audio/avctp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index d2dce3e59..6ad2b6632 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -213,6 +213,8 @@ static struct { uint8_t avc; uint16_t uinput; } key_map[] = { + { "VOLUME UP", AVC_VOLUME_UP, KEY_VOLUMEUP }, + { "VOLUME DOWN", AVC_VOLUME_DOWN, KEY_VOLUMEDOWN }, { "PLAY", AVC_PLAY, KEY_PLAYCD }, { "STOP", AVC_STOP, KEY_STOPCD }, { "PAUSE", AVC_PAUSE, KEY_PAUSECD }, -- 2.47.3