V4L/DVB (6588): Leadtek Winfast DTV Dongle remote control
authorJaroslav Barton <djaara@djaara.net>
Sat, 10 Nov 2007 22:17:45 +0000 (19:17 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:02:09 +0000 (19:02 -0200)
Add remote controller support for Leadtek Winfast DTV Dongle based on
DiB7700P, MT2060 and using last drivers (6040:6a79c243aecc), firmware
dvb-usb-dib0700-03-pre1.fw

Signed-off-by: Jaroslav Barton <djaara@djaara.net>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-usb/dib0700_devices.c

index 58452b5..5af779e 100644 (file)
@@ -415,6 +415,35 @@ static struct dvb_usb_rc_key dib0700_rc_keys[] = {
        { 0x1e, 0x38, KEY_YELLOW },
        { 0x1e, 0x3b, KEY_GOTO },
        { 0x1e, 0x3d, KEY_POWER },
+
+       /* Key codes for the Leadtek Winfast DTV Dongle */
+       { 0x00, 0x42, KEY_POWER },
+       { 0x07, 0x7c, KEY_TUNER },
+       { 0x0f, 0x4e, KEY_PRINT }, /* PREVIEW */
+       { 0x08, 0x40, KEY_SCREEN }, /* full screen toggle*/
+       { 0x0f, 0x71, KEY_DOT }, /* frequency */
+       { 0x07, 0x43, KEY_0 },
+       { 0x0c, 0x41, KEY_1 },
+       { 0x04, 0x43, KEY_2 },
+       { 0x0b, 0x7f, KEY_3 },
+       { 0x0e, 0x41, KEY_4 },
+       { 0x06, 0x43, KEY_5 },
+       { 0x09, 0x7f, KEY_6 },
+       { 0x0d, 0x7e, KEY_7 },
+       { 0x05, 0x7c, KEY_8 },
+       { 0x0a, 0x40, KEY_9 },
+       { 0x0e, 0x4e, KEY_CLEAR },
+       { 0x04, 0x7c, KEY_CHANNEL }, /* show channel number */
+       { 0x0f, 0x41, KEY_LAST }, /* recall */
+       { 0x03, 0x42, KEY_MUTE },
+       { 0x06, 0x4c, KEY_RESERVED }, /* PIP button*/
+       { 0x01, 0x72, KEY_SHUFFLE }, /* SNAPSHOT */
+       { 0x0c, 0x4e, KEY_PLAYPAUSE }, /* TIMESHIFT */
+       { 0x0b, 0x70, KEY_RECORD },
+       { 0x03, 0x7d, KEY_VOLUMEUP },
+       { 0x01, 0x7d, KEY_VOLUMEDOWN },
+       { 0x02, 0x42, KEY_CHANNELUP },
+       { 0x00, 0x7d, KEY_CHANNELDOWN },
 };
 
 /* STK7700P: Hauppauge Nova-T Stick, AVerMedia Volar */