diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-08-29 14:19:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:19:48 -0400 |
commit | 2e3658836efad06662968bd6373c72df06c4b2f1 (patch) | |
tree | 50748b6a7a9cbcb2e0a7d44a59c65783a8fe6fa7 /drivers/media/dvb/dvb-usb/dtt200u.c | |
parent | 715a223323c8c8bcbe7739e20f6c619f7343b595 (diff) |
V4L/DVB (12598): dvb-usb: store rc5 custom and data at the same field
In order to be closer to V4L IR implementation, it is needed to replace
u8 custom, data
to:
u16 scan
This allows using non-rc5 mappings, like the 8 bit keycodes used on older
protocols. It will also allow future implementations of rc6 keystrokes
when needed.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dtt200u.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dtt200u.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/media/dvb/dvb-usb/dtt200u.c b/drivers/media/dvb/dvb-usb/dtt200u.c index 81a6cbf60160..a1b12b01cbe4 100644 --- a/drivers/media/dvb/dvb-usb/dtt200u.c +++ b/drivers/media/dvb/dvb-usb/dtt200u.c | |||
@@ -58,24 +58,24 @@ static int dtt200u_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid, | |||
58 | /* remote control */ | 58 | /* remote control */ |
59 | /* key list for the tiny remote control (Yakumo, don't know about the others) */ | 59 | /* key list for the tiny remote control (Yakumo, don't know about the others) */ |
60 | static struct dvb_usb_rc_key dtt200u_rc_keys[] = { | 60 | static struct dvb_usb_rc_key dtt200u_rc_keys[] = { |
61 | { 0x80, 0x01, KEY_MUTE }, | 61 | { 0x8001, KEY_MUTE }, |
62 | { 0x80, 0x02, KEY_CHANNELDOWN }, | 62 | { 0x8002, KEY_CHANNELDOWN }, |
63 | { 0x80, 0x03, KEY_VOLUMEDOWN }, | 63 | { 0x8003, KEY_VOLUMEDOWN }, |
64 | { 0x80, 0x04, KEY_1 }, | 64 | { 0x8004, KEY_1 }, |
65 | { 0x80, 0x05, KEY_2 }, | 65 | { 0x8005, KEY_2 }, |
66 | { 0x80, 0x06, KEY_3 }, | 66 | { 0x8006, KEY_3 }, |
67 | { 0x80, 0x07, KEY_4 }, | 67 | { 0x8007, KEY_4 }, |
68 | { 0x80, 0x08, KEY_5 }, | 68 | { 0x8008, KEY_5 }, |
69 | { 0x80, 0x09, KEY_6 }, | 69 | { 0x8009, KEY_6 }, |
70 | { 0x80, 0x0a, KEY_7 }, | 70 | { 0x800a, KEY_7 }, |
71 | { 0x80, 0x0c, KEY_ZOOM }, | 71 | { 0x800c, KEY_ZOOM }, |
72 | { 0x80, 0x0d, KEY_0 }, | 72 | { 0x800d, KEY_0 }, |
73 | { 0x80, 0x0e, KEY_SELECT }, | 73 | { 0x800e, KEY_SELECT }, |
74 | { 0x80, 0x12, KEY_POWER }, | 74 | { 0x8012, KEY_POWER }, |
75 | { 0x80, 0x1a, KEY_CHANNELUP }, | 75 | { 0x801a, KEY_CHANNELUP }, |
76 | { 0x80, 0x1b, KEY_8 }, | 76 | { 0x801b, KEY_8 }, |
77 | { 0x80, 0x1e, KEY_VOLUMEUP }, | 77 | { 0x801e, KEY_VOLUMEUP }, |
78 | { 0x80, 0x1f, KEY_9 }, | 78 | { 0x801f, KEY_9 }, |
79 | }; | 79 | }; |
80 | 80 | ||
81 | static int dtt200u_rc_query(struct dvb_usb_device *d, u32 *event, int *state) | 81 | static int dtt200u_rc_query(struct dvb_usb_device *d, u32 *event, int *state) |