diff options
author | Chris Rankin <rankincj@yahoo.com> | 2008-09-25 05:52:24 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:37:09 -0400 |
commit | 48aa739164ca6430b8b1da12ea367b44bb14ce82 (patch) | |
tree | fb4f97fb95158ea158aa1a03887977b2dcf87dd6 /drivers/media/dvb/dvb-usb/dib0700_devices.c | |
parent | d2fc3bfcc3abd14ffd1191b37d2809e780919ef4 (diff) |
V4L/DVB (9047): [PATCH] Add remote control support to Nova-TD (52009)
This patch adds remote control support for the Hauppauge WinTV Nova-TD
(Diversity) model. (That's the 52009 version.) It also adds the
key-codes for the credit-card style remote control that comes with
this particular adapter.
Signed-off-by: Chris Rankin <rankincj@yahoo.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dib0700_devices.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dib0700_devices.c | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/dib0700_devices.c b/drivers/media/dvb/dvb-usb/dib0700_devices.c index 7e692b3b078e..565563e68103 100644 --- a/drivers/media/dvb/dvb-usb/dib0700_devices.c +++ b/drivers/media/dvb/dvb-usb/dib0700_devices.c | |||
@@ -679,6 +679,43 @@ static struct dvb_usb_rc_key dib0700_rc_keys[] = { | |||
679 | { 0x01, 0x7d, KEY_VOLUMEDOWN }, | 679 | { 0x01, 0x7d, KEY_VOLUMEDOWN }, |
680 | { 0x02, 0x42, KEY_CHANNELUP }, | 680 | { 0x02, 0x42, KEY_CHANNELUP }, |
681 | { 0x00, 0x7d, KEY_CHANNELDOWN }, | 681 | { 0x00, 0x7d, KEY_CHANNELDOWN }, |
682 | |||
683 | /* Key codes for Nova-TD "credit card" remote control. */ | ||
684 | { 0x1d, 0x00, KEY_0 }, | ||
685 | { 0x1d, 0x01, KEY_1 }, | ||
686 | { 0x1d, 0x02, KEY_2 }, | ||
687 | { 0x1d, 0x03, KEY_3 }, | ||
688 | { 0x1d, 0x04, KEY_4 }, | ||
689 | { 0x1d, 0x05, KEY_5 }, | ||
690 | { 0x1d, 0x06, KEY_6 }, | ||
691 | { 0x1d, 0x07, KEY_7 }, | ||
692 | { 0x1d, 0x08, KEY_8 }, | ||
693 | { 0x1d, 0x09, KEY_9 }, | ||
694 | { 0x1d, 0x0a, KEY_TEXT }, | ||
695 | { 0x1d, 0x0d, KEY_MENU }, | ||
696 | { 0x1d, 0x0f, KEY_MUTE }, | ||
697 | { 0x1d, 0x10, KEY_VOLUMEUP }, | ||
698 | { 0x1d, 0x11, KEY_VOLUMEDOWN }, | ||
699 | { 0x1d, 0x12, KEY_CHANNEL }, | ||
700 | { 0x1d, 0x14, KEY_UP }, | ||
701 | { 0x1d, 0x15, KEY_DOWN }, | ||
702 | { 0x1d, 0x16, KEY_LEFT }, | ||
703 | { 0x1d, 0x17, KEY_RIGHT }, | ||
704 | { 0x1d, 0x1c, KEY_TV }, | ||
705 | { 0x1d, 0x1e, KEY_NEXT }, | ||
706 | { 0x1d, 0x1f, KEY_BACK }, | ||
707 | { 0x1d, 0x20, KEY_CHANNELUP }, | ||
708 | { 0x1d, 0x21, KEY_CHANNELDOWN }, | ||
709 | { 0x1d, 0x24, KEY_LAST }, | ||
710 | { 0x1d, 0x25, KEY_OK }, | ||
711 | { 0x1d, 0x30, KEY_PAUSE }, | ||
712 | { 0x1d, 0x32, KEY_REWIND }, | ||
713 | { 0x1d, 0x34, KEY_FASTFORWARD }, | ||
714 | { 0x1d, 0x35, KEY_PLAY }, | ||
715 | { 0x1d, 0x36, KEY_STOP }, | ||
716 | { 0x1d, 0x37, KEY_RECORD }, | ||
717 | { 0x1d, 0x3b, KEY_GOTO }, | ||
718 | { 0x1d, 0x3d, KEY_POWER }, | ||
682 | }; | 719 | }; |
683 | 720 | ||
684 | /* STK7700P: Hauppauge Nova-T Stick, AVerMedia Volar */ | 721 | /* STK7700P: Hauppauge Nova-T Stick, AVerMedia Volar */ |
@@ -1383,7 +1420,12 @@ struct dvb_usb_device_properties dib0700_devices[] = { | |||
1383 | { &dib0700_usb_id_table[31], NULL }, | 1420 | { &dib0700_usb_id_table[31], NULL }, |
1384 | { NULL }, | 1421 | { NULL }, |
1385 | } | 1422 | } |
1386 | } | 1423 | }, |
1424 | |||
1425 | .rc_interval = DEFAULT_RC_INTERVAL, | ||
1426 | .rc_key_map = dib0700_rc_keys, | ||
1427 | .rc_key_map_size = ARRAY_SIZE(dib0700_rc_keys), | ||
1428 | .rc_query = dib0700_rc_query | ||
1387 | }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, | 1429 | }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, |
1388 | 1430 | ||
1389 | .num_adapters = 1, | 1431 | .num_adapters = 1, |