diff options
Diffstat (limited to 'drivers/media/IR/ir-jvc-decoder.c')
-rw-r--r-- | drivers/media/IR/ir-jvc-decoder.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/IR/ir-jvc-decoder.c b/drivers/media/IR/ir-jvc-decoder.c index 77a89c4de014..63dca6e5458b 100644 --- a/drivers/media/IR/ir-jvc-decoder.c +++ b/drivers/media/IR/ir-jvc-decoder.c | |||
@@ -50,8 +50,9 @@ static int ir_jvc_decode(struct input_dev *input_dev, struct ir_raw_event ev) | |||
50 | if (!(ir_dev->raw->enabled_protocols & IR_TYPE_JVC)) | 50 | if (!(ir_dev->raw->enabled_protocols & IR_TYPE_JVC)) |
51 | return 0; | 51 | return 0; |
52 | 52 | ||
53 | if (IS_RESET(ev)) { | 53 | if (!is_timing_event(ev)) { |
54 | data->state = STATE_INACTIVE; | 54 | if (ev.reset) |
55 | data->state = STATE_INACTIVE; | ||
55 | return 0; | 56 | return 0; |
56 | } | 57 | } |
57 | 58 | ||