diff options
author | Sean Young <sean@mess.org> | 2012-08-13 07:59:44 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-08-13 15:07:19 -0400 |
commit | 116e4f592a4d207031b2eaf9dacb57de587146ef (patch) | |
tree | 6d23c9084c7cc9c5dc0c003fcef7f8465f3c091b /drivers/media/rc | |
parent | 884bfd08e3d4f694574e54bd1886cd8817d9b986 (diff) |
[media] iguanair: reset the IR state after rx overflow or receiver enable
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r-- | drivers/media/rc/iguanair.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/rc/iguanair.c b/drivers/media/rc/iguanair.c index 68172585c961..8de690aa2c7e 100644 --- a/drivers/media/rc/iguanair.c +++ b/drivers/media/rc/iguanair.c | |||
@@ -123,6 +123,7 @@ static void process_ir_data(struct iguanair *ir, unsigned len) | |||
123 | break; | 123 | break; |
124 | case CMD_RX_OVERFLOW: | 124 | case CMD_RX_OVERFLOW: |
125 | dev_warn(ir->dev, "receive overflow\n"); | 125 | dev_warn(ir->dev, "receive overflow\n"); |
126 | ir_raw_event_reset(ir->rc); | ||
126 | break; | 127 | break; |
127 | default: | 128 | default: |
128 | dev_warn(ir->dev, "control code %02x received\n", | 129 | dev_warn(ir->dev, "control code %02x received\n", |
@@ -255,6 +256,9 @@ static int iguanair_receiver(struct iguanair *ir, bool enable) | |||
255 | struct packet packet = { 0, DIR_OUT, enable ? | 256 | struct packet packet = { 0, DIR_OUT, enable ? |
256 | CMD_RECEIVER_ON : CMD_RECEIVER_OFF }; | 257 | CMD_RECEIVER_ON : CMD_RECEIVER_OFF }; |
257 | 258 | ||
259 | if (enable) | ||
260 | ir_raw_event_reset(ir->rc); | ||
261 | |||
258 | return iguanair_send(ir, &packet, sizeof(packet)); | 262 | return iguanair_send(ir, &packet, sizeof(packet)); |
259 | } | 263 | } |
260 | 264 | ||