diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-01-24 10:18:47 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-22 18:24:14 -0400 |
commit | 15195d3a83b59f0ca3bed52cbe5524042ce13fd6 (patch) | |
tree | 0915c3f1d4e0dfacaf196c60e5e297e0388a3be7 /drivers/media/video/em28xx/em28xx-cards.c | |
parent | 0548757419c974d8c0851c13279b2c89a12b2978 (diff) |
[media] rc/keymaps: Rename Hauppauge table as rc-hauppauge
There are two "hauppauge-new" keymaps, one with protocol
unknown, and the other with the protocol marked accordingly.
However, both tables are miss-named.
Also, the old rc-hauppauge-new is broken, as it mixes
three different controllers as if they were just one.
This patch solves half of the problem by renaming the
correct keycode table as just rc-hauppauge. This table
contains the codes for the four different types of
remote controllers found on Hauppauge cards, properly
mapped with their different addresses.
create mode 100644 drivers/media/rc/keymaps/rc-hauppauge.c
delete mode 100644 drivers/media/rc/keymaps/rc-rc5-hauppauge-new.c
[Jarod: fix up RC_MAP_HAUPPAUGE defines]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-cards.c')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-cards.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index 87f77a34eeab..aa4f45e692e6 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c | |||
@@ -911,7 +911,7 @@ struct em28xx_board em28xx_boards[] = { | |||
911 | .mts_firmware = 1, | 911 | .mts_firmware = 1, |
912 | .has_dvb = 1, | 912 | .has_dvb = 1, |
913 | .dvb_gpio = hauppauge_wintv_hvr_900_digital, | 913 | .dvb_gpio = hauppauge_wintv_hvr_900_digital, |
914 | .ir_codes = RC_MAP_RC5_HAUPPAUGE_NEW, | 914 | .ir_codes = RC_MAP_HAUPPAUGE, |
915 | .decoder = EM28XX_TVP5150, | 915 | .decoder = EM28XX_TVP5150, |
916 | .input = { { | 916 | .input = { { |
917 | .type = EM28XX_VMUX_TELEVISION, | 917 | .type = EM28XX_VMUX_TELEVISION, |
@@ -2430,7 +2430,7 @@ void em28xx_register_i2c_ir(struct em28xx *dev) | |||
2430 | dev->init_data.name = "i2c IR (EM28XX Pinnacle PCTV)"; | 2430 | dev->init_data.name = "i2c IR (EM28XX Pinnacle PCTV)"; |
2431 | break; | 2431 | break; |
2432 | case EM2820_BOARD_HAUPPAUGE_WINTV_USB_2: | 2432 | case EM2820_BOARD_HAUPPAUGE_WINTV_USB_2: |
2433 | dev->init_data.ir_codes = RC_MAP_RC5_HAUPPAUGE_NEW; | 2433 | dev->init_data.ir_codes = RC_MAP_HAUPPAUGE; |
2434 | dev->init_data.get_key = em28xx_get_key_em_haup; | 2434 | dev->init_data.get_key = em28xx_get_key_em_haup; |
2435 | dev->init_data.name = "i2c IR (EM2840 Hauppauge)"; | 2435 | dev->init_data.name = "i2c IR (EM2840 Hauppauge)"; |
2436 | break; | 2436 | break; |