]> git.karo-electronics.de Git - linux-beck.git/commitdiff
V4L/DVB (6752): saa7134: Enable remote control support for Avermedia M102
authorAlbert Graham <agraham@g-b.net>
Sun, 9 Dec 2007 12:44:38 +0000 (09:44 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:03:21 +0000 (19:03 -0200)
This patch enabled the IR remote control for the Avermedia M102 (card=110),
which appears to be the same IR as the already supported device on the
Avermedia AVerTV GO 007 FM (card=57) model, the code is two one liners which
enable the IR for this device (subsystem: 1461:f31e)

Signed-off-by: Albert Graham <agraham@g-b.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/saa7134/saa7134-cards.c
drivers/media/video/saa7134/saa7134-input.c

index 9a2dd643025bc49b88d2974a9f6eec29abcd4721..b29427aaa88d18502018ca6fbd1feb5783a54a8c 100644 (file)
@@ -4544,6 +4544,7 @@ int saa7134_board_init1(struct saa7134_dev *dev)
                break;
        case SAA7134_BOARD_AVERMEDIA_M102:
                /* enable tuner */
+              dev->has_remote = SAA7134_REMOTE_GPIO;
                saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x8c040007, 0x8c040007);
                saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x0c0007cd, 0x0c0007cd);
                break;
index a485185357c8c509bad6a93e892cedd9ad3999c5..8cfeb2bde90fa6c36d51b8a858fe0db60bce9c5b 100644 (file)
@@ -260,6 +260,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
        case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
        case SAA7134_BOARD_AVERMEDIA_STUDIO_507:
        case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
+       case SAA7134_BOARD_AVERMEDIA_M102:
                ir_codes     = ir_codes_avermedia;
                mask_keycode = 0x0007C8;
                mask_keydown = 0x000010;