Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124191
b: refs/heads/master
c: 91812fa
h: refs/heads/master
i:
  124189: c008cdc
  124187: 9a8cc25
  124183: 76cf67a
  124175: de02b24
  124159: f3ab620
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 29, 2008
1 parent 503d62a commit 7855f95
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a924a499adb89f52046936deac87264774652a81
refs/heads/master: 91812fa74f29f70a2c3a4bf58f7601f86092794f
13 changes: 9 additions & 4 deletions trunk/drivers/media/video/em28xx/em28xx-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,17 +270,18 @@ int em28xx_ir_init(struct em28xx *dev)

/* detect & configure */
switch (dev->model) {
case EM2883_BOARD_HAUPPAUGE_WINTV_HVR_950:
ir_type = IR_TYPE_OTHER;
ir_codes = ir_codes_hauppauge_new;
ir->mask_keycode = 0x007f0000;
break;
}

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);
Expand All @@ -301,6 +302,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 */
Expand Down

0 comments on commit 7855f95

Please sign in to comment.