From a96c9ec714a47d993bf53aaeb71a0de88f22277c Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Wed, 12 Nov 2008 15:05:46 -0200 Subject: em28xx: experimental support for HVR-950 IR From: Mauro Carvalho Chehab Priority: normal Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/video/em28xx/em28xx-input.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/linux/drivers/media/video/em28xx/em28xx-input.c b/linux/drivers/media/video/em28xx/em28xx-input.c index c3c9cba30..e20e57185 100644 --- a/linux/drivers/media/video/em28xx/em28xx-input.c +++ b/linux/drivers/media/video/em28xx/em28xx-input.c @@ -288,28 +288,18 @@ int em28xx_ir_init(struct em28xx *dev) /* detect & configure */ switch (dev->model) { -#if 0 - /* dummy entry, just as a reference, while we don't add - other entries here - */ - case EM2820_BOARD_UNKNOWN: + case EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950: ir_type = IR_TYPE_OTHER; - ir_codes = ir_codes_empty; + ir_codes = ir_codes_hauppauge_new; ir->mask_keycode = 0x007f0000; break; } -#endif - } if (NULL == ir_codes) { err = -ENODEV; goto err_out_free; } - /* Get the current key status, to avoid adding an - unexistent key code */ - ir->last_gpio = ir->get_key(ir); - /* init input device */ snprintf(ir->name, sizeof(ir->name), "em28xx IR (%s)", dev->name); @@ -334,6 +324,10 @@ int em28xx_ir_init(struct em28xx *dev) ir->dev = dev; dev->ir = ir; + /* Get the current key status, to avoid adding an + unexistent key code */ + ir->last_gpio = ir->get_key(ir); + em28xx_ir_start(ir); /* all done */ -- cgit v1.2.3