29 lines
922 B
Diff
29 lines
922 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Igor Pecovnik <igor.pecovnik@gmail.com>
|
|
Date: Tue, 26 Jun 2018 12:47:49 +0000
|
|
Subject: media: rc: drivers should produce alternate pulse and space timing
|
|
events
|
|
|
|
Unknown patch. Archeology revelated nothing. Good luck...
|
|
---
|
|
drivers/media/rc/meson-ir.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/media/rc/meson-ir.c b/drivers/media/rc/meson-ir.c
|
|
index 49aa309d1a8c..84c35494e1c7 100644
|
|
--- a/drivers/media/rc/meson-ir.c
|
|
+++ b/drivers/media/rc/meson-ir.c
|
|
@@ -91,7 +91,8 @@ static irqreturn_t meson_ir_irq(int irqno, void *dev_id)
|
|
status = readl_relaxed(ir->reg + IR_DEC_STATUS);
|
|
rawir.pulse = !!(status & STATUS_IR_DEC_IN);
|
|
|
|
- ir_raw_event_store_with_timeout(ir->rc, &rawir);
|
|
+ if (ir_raw_event_store_with_filter(ir->rc, &rawir))
|
|
+ ir_raw_event_handle(ir->rc);
|
|
|
|
spin_unlock(&ir->lock);
|
|
|
|
--
|
|
Armbian
|
|
|