mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-02 16:44:18 +08:00
AVCTP: Add mapping for mandatory pass-through operations
This add mapping for mandatory pass-through operations for categories supported and a few other operations considered useful.
This commit is contained in:
parent
a48a090c13
commit
e39bad17d1
@ -215,6 +215,20 @@ static struct {
|
||||
uint8_t avc;
|
||||
uint16_t uinput;
|
||||
} key_map[] = {
|
||||
{ "SELECT", AVC_SELECT, KEY_SELECT },
|
||||
{ "UP", AVC_UP, KEY_UP },
|
||||
{ "DOWN", AVC_DOWN, KEY_DOWN },
|
||||
{ "LEFT", AVC_LEFT, KEY_LEFT },
|
||||
{ "RIGHT", AVC_RIGHT, KEY_RIGHT },
|
||||
{ "ROOT MENU", AVC_ROOT_MENU, KEY_MENU },
|
||||
{ "CONTENTS MENU", AVC_CONTENTS_MENU, KEY_PROGRAM },
|
||||
{ "FAVORITE MENU", AVC_FAVORITE_MENU, KEY_FAVORITES },
|
||||
{ "ENTER", AVC_ENTER, KEY_ENTER },
|
||||
{ "CHANNEL UP", AVC_CHANNEL_UP, KEY_CHANNELUP },
|
||||
{ "CHANNEL DOWN", AVC_CHANNEL_DOWN, KEY_CHANNELDOWN },
|
||||
{ "INPUT SELECT", AVC_INPUT_SELECT, KEY_CONFIG },
|
||||
{ "HELP", AVC_HELP, KEY_HELP },
|
||||
{ "POWER", AVC_POWER, KEY_POWER2 },
|
||||
{ "VOLUME UP", AVC_VOLUME_UP, KEY_VOLUMEUP },
|
||||
{ "VOLUME DOWN", AVC_VOLUME_DOWN, KEY_VOLUMEDOWN },
|
||||
{ "PLAY", AVC_PLAY, KEY_PLAYCD },
|
||||
@ -224,6 +238,10 @@ static struct {
|
||||
{ "BACKWARD", AVC_BACKWARD, KEY_PREVIOUSSONG },
|
||||
{ "REWIND", AVC_REWIND, KEY_REWIND },
|
||||
{ "FAST FORWARD", AVC_FAST_FORWARD, KEY_FASTFORWARD },
|
||||
{ "F1", AVC_F1, KEY_F1 },
|
||||
{ "F2", AVC_F2, KEY_F2 },
|
||||
{ "F3", AVC_F3, KEY_F3 },
|
||||
{ "F4", AVC_F4, KEY_F4 },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
|
@ -49,6 +49,20 @@
|
||||
#define AVC_SUBUNIT_PANEL 0x09
|
||||
|
||||
/* operands in passthrough commands */
|
||||
#define AVC_SELECT 0x00
|
||||
#define AVC_UP 0x01
|
||||
#define AVC_DOWN 0x02
|
||||
#define AVC_LEFT 0x03
|
||||
#define AVC_RIGHT 0x04
|
||||
#define AVC_ROOT_MENU 0x09
|
||||
#define AVC_CONTENTS_MENU 0x0b
|
||||
#define AVC_FAVORITE_MENU 0x0c
|
||||
#define AVC_ENTER 0x2b
|
||||
#define AVC_CHANNEL_UP 0x30
|
||||
#define AVC_CHANNEL_DOWN 0x31
|
||||
#define AVC_INPUT_SELECT 0x34
|
||||
#define AVC_HELP 0x36
|
||||
#define AVC_POWER 0x40
|
||||
#define AVC_VOLUME_UP 0x41
|
||||
#define AVC_VOLUME_DOWN 0x42
|
||||
#define AVC_MUTE 0x43
|
||||
@ -61,6 +75,10 @@
|
||||
#define AVC_EJECT 0x4a
|
||||
#define AVC_FORWARD 0x4b
|
||||
#define AVC_BACKWARD 0x4c
|
||||
#define AVC_F1 0x71
|
||||
#define AVC_F2 0x72
|
||||
#define AVC_F3 0x73
|
||||
#define AVC_F4 0x74
|
||||
|
||||
struct avctp;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user