diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-15 10:33:42 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-15 10:33:42 -0300 |
commit | 315835dc9411165ec78b2d11b6d025a6db5f10d4 (patch) | |
tree | cb7fb039d9f0b63e5fbbdb3a732909b806c7aa58 /linux/drivers/media/video/saa7134/saa7134-input.c | |
parent | 471f87707838c2d511a36f703a244dd230c775fb (diff) | |
download | mediapointer-dvb-s2-315835dc9411165ec78b2d11b6d025a6db5f10d4.tar.gz mediapointer-dvb-s2-315835dc9411165ec78b2d11b6d025a6db5f10d4.tar.bz2 |
saa7134: Fix entries for Avermedia A16d and Avermedia E506
From: Tim Farrington <timf@iinet.net.au>
Also, adds IR table for Avermedia A16d
Signed-off-by: Tim Farrington <timf@iinet.net.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/saa7134/saa7134-input.c')
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-input.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-input.c b/linux/drivers/media/video/saa7134/saa7134-input.c index 5c0064298..aecaa7cd0 100644 --- a/linux/drivers/media/video/saa7134/saa7134-input.c +++ b/linux/drivers/media/video/saa7134/saa7134-input.c @@ -323,6 +323,15 @@ int saa7134_input_init1(struct saa7134_dev *dev) saa_setb(SAA7134_GPIO_GPMODE1, 0x1); saa_setb(SAA7134_GPIO_GPSTATUS1, 0x1); break; + case SAA7134_BOARD_AVERMEDIA_A16D: + ir_codes = ir_codes_avermedia_a16d; + mask_keycode = 0x02F200; + mask_keydown = 0x000400; + polling = 50; /* ms */ + /* Without this we won't receive key up events */ + saa_setb(SAA7134_GPIO_GPMODE1, 0x1); + saa_setb(SAA7134_GPIO_GPSTATUS1, 0x1); + break; case SAA7134_BOARD_KWORLD_TERMINATOR: ir_codes = ir_codes_pixelview; mask_keycode = 0x00001f; |