From: Mauro Carvalho Chehab Date: Mon, 14 Dec 2009 05:59:19 +0000 (-0300) Subject: V4L/DVB (13641): Properly update the driver representation for the protocol X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3f831107ed8efc32960e0cd172799bb82f6c81c9;p=openwrt%2Fstaging%2Fblogic.git V4L/DVB (13641): Properly update the driver representation for the protocol Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c index ebb75a867f03..674622372d4d 100644 --- a/drivers/media/video/em28xx/em28xx-input.c +++ b/drivers/media/video/em28xx/em28xx-input.c @@ -349,6 +349,7 @@ int em28xx_ir_change_protocol(void *priv, enum ir_type ir_type) /* Adjust xclk based o IR table for RC5/NEC tables */ + dev->board.ir_codes->ir_type = IR_TYPE_OTHER; if (ir_type == IR_TYPE_RC5) { dev->board.xclk |= EM28XX_XCLK_IR_RC5_MODE; ir->full_code = 1; @@ -359,6 +360,8 @@ int em28xx_ir_change_protocol(void *priv, enum ir_type ir_type) } else rc = -EINVAL; + dev->board.ir_codes->ir_type = ir_type; + em28xx_write_reg_bits(dev, EM28XX_R0F_XCLK, dev->board.xclk, EM28XX_XCLK_IR_RC5_MODE);