提交 116e4f59 编写于 作者: S Sean Young 提交者: Mauro Carvalho Chehab

[media] iguanair: reset the IR state after rx overflow or receiver enable

Signed-off-by: NSean Young <sean@mess.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 884bfd08
......@@ -123,6 +123,7 @@ static void process_ir_data(struct iguanair *ir, unsigned len)
break;
case CMD_RX_OVERFLOW:
dev_warn(ir->dev, "receive overflow\n");
ir_raw_event_reset(ir->rc);
break;
default:
dev_warn(ir->dev, "control code %02x received\n",
......@@ -255,6 +256,9 @@ static int iguanair_receiver(struct iguanair *ir, bool enable)
struct packet packet = { 0, DIR_OUT, enable ?
CMD_RECEIVER_ON : CMD_RECEIVER_OFF };
if (enable)
ir_raw_event_reset(ir->rc);
return iguanair_send(ir, &packet, sizeof(packet));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册