diff options
author | Michael Obst <mike.obst@gmail.com> | 2009-10-31 13:05:42 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:41:08 -0500 |
commit | 0700adec9efec3136fa44d90f064c9227817f37b (patch) | |
tree | cc985f4a01bb3124090514cc5166befe9de83933 | |
parent | 53c8ec5e0e93f1ab600f91203ede43b83b3361ba (diff) |
V4L/DVB (13260): saa7134: add support for Leadtek Winfast DTV-1000S remote control
Signed-off-by: Michael Obst <mike.obst@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/common/ir-keymaps.c | 1 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-cards.c | 1 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-input.c | 6 |
3 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/common/ir-keymaps.c b/drivers/media/common/ir-keymaps.c index 32f765e6e5fd..e353dffe696a 100644 --- a/drivers/media/common/ir-keymaps.c +++ b/drivers/media/common/ir-keymaps.c | |||
@@ -1705,6 +1705,7 @@ static struct ir_scancode ir_codes_winfast[] = { | |||
1705 | { 0x37, KEY_RADIO }, /* FM */ | 1705 | { 0x37, KEY_RADIO }, /* FM */ |
1706 | { 0x38, KEY_DVD }, | 1706 | { 0x38, KEY_DVD }, |
1707 | 1707 | ||
1708 | { 0x1a, KEY_MODE}, /* change to MCE mode on Y04G0051 */ | ||
1708 | { 0x3e, KEY_F21 }, /* MCE +VOL, on Y04G0033 */ | 1709 | { 0x3e, KEY_F21 }, /* MCE +VOL, on Y04G0033 */ |
1709 | { 0x3a, KEY_F22 }, /* MCE -VOL, on Y04G0033 */ | 1710 | { 0x3a, KEY_F22 }, /* MCE -VOL, on Y04G0033 */ |
1710 | { 0x3b, KEY_F23 }, /* MCE +CH, on Y04G0033 */ | 1711 | { 0x3b, KEY_F23 }, /* MCE +CH, on Y04G0033 */ |
diff --git a/drivers/media/video/saa7134/saa7134-cards.c b/drivers/media/video/saa7134/saa7134-cards.c index e737ddf94140..7e40d6d99dd0 100644 --- a/drivers/media/video/saa7134/saa7134-cards.c +++ b/drivers/media/video/saa7134/saa7134-cards.c | |||
@@ -6801,6 +6801,7 @@ int saa7134_board_init1(struct saa7134_dev *dev) | |||
6801 | case SAA7134_BOARD_KWORLD_PLUS_TV_ANALOG: | 6801 | case SAA7134_BOARD_KWORLD_PLUS_TV_ANALOG: |
6802 | case SAA7134_BOARD_AVERMEDIA_GO_007_FM_PLUS: | 6802 | case SAA7134_BOARD_AVERMEDIA_GO_007_FM_PLUS: |
6803 | case SAA7134_BOARD_ROVERMEDIA_LINK_PRO_FM: | 6803 | case SAA7134_BOARD_ROVERMEDIA_LINK_PRO_FM: |
6804 | case SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S: | ||
6804 | dev->has_remote = SAA7134_REMOTE_GPIO; | 6805 | dev->has_remote = SAA7134_REMOTE_GPIO; |
6805 | break; | 6806 | break; |
6806 | case SAA7134_BOARD_FLYDVBS_LR300: | 6807 | case SAA7134_BOARD_FLYDVBS_LR300: |
diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c index 8f9203e7d3b8..83206cfb7b8c 100644 --- a/drivers/media/video/saa7134/saa7134-input.c +++ b/drivers/media/video/saa7134/saa7134-input.c | |||
@@ -616,6 +616,12 @@ int saa7134_input_init1(struct saa7134_dev *dev) | |||
616 | mask_keycode = 0x003f00; | 616 | mask_keycode = 0x003f00; |
617 | mask_keydown = 0x040000; | 617 | mask_keydown = 0x040000; |
618 | break; | 618 | break; |
619 | case SAA7134_BOARD_LEADTEK_WINFAST_DTV1000S: | ||
620 | ir_codes = &ir_codes_winfast_table; | ||
621 | mask_keycode = 0x5f00; | ||
622 | mask_keyup = 0x020000; | ||
623 | polling = 50; // ms | ||
624 | break; | ||
619 | } | 625 | } |
620 | if (NULL == ir_codes) { | 626 | if (NULL == ir_codes) { |
621 | printk("%s: Oops: IR config error [card=%d]\n", | 627 | printk("%s: Oops: IR config error [card=%d]\n", |