Commit 3f831107ed8efc32960e0cd172799bb82f6c81c9

Authored by Mauro Carvalho Chehab
1 parent eecee32ac2

V4L/DVB (13641): Properly update the driver representation for the protocol

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

drivers/media/video/em28xx/em28xx-input.c
... ... @@ -349,6 +349,7 @@
349 349  
350 350 /* Adjust xclk based o IR table for RC5/NEC tables */
351 351  
  352 + dev->board.ir_codes->ir_type = IR_TYPE_OTHER;
352 353 if (ir_type == IR_TYPE_RC5) {
353 354 dev->board.xclk |= EM28XX_XCLK_IR_RC5_MODE;
354 355 ir->full_code = 1;
... ... @@ -358,6 +359,8 @@
358 359 ir->full_code = 1;
359 360 } else
360 361 rc = -EINVAL;
  362 +
  363 + dev->board.ir_codes->ir_type = ir_type;
361 364  
362 365 em28xx_write_reg_bits(dev, EM28XX_R0F_XCLK, dev->board.xclk,
363 366 EM28XX_XCLK_IR_RC5_MODE);