aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-input.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-11-12 12:05:46 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-29 14:53:33 -0500
commit91812fa74f29f70a2c3a4bf58f7601f86092794f (patch)
treee9be630eb19b462035a6bb291b17b76578b0969c /drivers/media/video/em28xx/em28xx-input.c
parenta924a499adb89f52046936deac87264774652a81 (diff)
V4L/DVB (9611): em28xx: experimental support for HVR-950 IR
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-input.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-input.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c
index afd67607c028..f724cae8b040 100644
--- a/drivers/media/video/em28xx/em28xx-input.c
+++ b/drivers/media/video/em28xx/em28xx-input.c
@@ -270,6 +270,11 @@ int em28xx_ir_init(struct em28xx *dev)
270 270
271 /* detect & configure */ 271 /* detect & configure */
272 switch (dev->model) { 272 switch (dev->model) {
273 case EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950:
274 ir_type = IR_TYPE_OTHER;
275 ir_codes = ir_codes_hauppauge_new;
276 ir->mask_keycode = 0x007f0000;
277 break;
273 } 278 }
274 279
275 if (NULL == ir_codes) { 280 if (NULL == ir_codes) {
@@ -277,10 +282,6 @@ int em28xx_ir_init(struct em28xx *dev)
277 goto err_out_free; 282 goto err_out_free;
278 } 283 }
279 284
280 /* Get the current key status, to avoid adding an
281 unexistent key code */
282 ir->last_gpio = ir->get_key(ir);
283
284 /* init input device */ 285 /* init input device */
285 snprintf(ir->name, sizeof(ir->name), "em28xx IR (%s)", 286 snprintf(ir->name, sizeof(ir->name), "em28xx IR (%s)",
286 dev->name); 287 dev->name);
@@ -301,6 +302,10 @@ int em28xx_ir_init(struct em28xx *dev)
301 ir->dev = dev; 302 ir->dev = dev;
302 dev->ir = ir; 303 dev->ir = ir;
303 304
305 /* Get the current key status, to avoid adding an
306 unexistent key code */
307 ir->last_gpio = ir->get_key(ir);
308
304 em28xx_ir_start(ir); 309 em28xx_ir_start(ir);
305 310
306 /* all done */ 311 /* all done */