Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161584
b: refs/heads/master
c: 715a223
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Sep 12, 2009
1 parent 0da3937 commit a83948c
Show file tree
Hide file tree
Showing 15 changed files with 2,872 additions and 2,580 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: 47f7f6fb7949b6546baf4b6f26bf0ca075d12759
refs/heads/master: 715a223323c8c8bcbe7739e20f6c619f7343b595
15 changes: 13 additions & 2 deletions trunk/drivers/media/common/ir-functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,24 @@ static void ir_input_key_event(struct input_dev *dev, struct ir_input_state *ir)
/* -------------------------------------------------------------------------- */

void ir_input_init(struct input_dev *dev, struct ir_input_state *ir,
int ir_type, IR_KEYTAB_TYPE *ir_codes)
int ir_type, struct ir_scancode_table *ir_codes)
{
int i;

ir->ir_type = ir_type;

memset(ir->ir_codes, sizeof(ir->ir_codes), 0);

/*
* FIXME: This is a temporary workaround to use the new IR tables
* with the old approach. Later patches will replace this to a
* proper method
*/

if (ir_codes)
memcpy(ir->ir_codes, ir_codes, sizeof(ir->ir_codes));
for (i = 0; i < ir_codes->size; i++)
if (ir_codes->scan[i].scancode < IR_KEYTAB_SIZE)
ir->ir_codes[ir_codes->scan[i].scancode] = ir_codes->scan[i].keycode;

dev->keycode = ir->ir_codes;
dev->keycodesize = sizeof(IR_KEYTAB_TYPE);
Expand Down
Loading

0 comments on commit a83948c

Please sign in to comment.