diff mbox

IR: let all protocol decoders have a go at raw data

Message ID 20100528195945.GA7305@redhat.com (mailing list archive)
State Superseded
Headers show

Commit Message

Jarod Wilson May 28, 2010, 7:59 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/IR/ir-raw-event.c b/drivers/media/IR/ir-raw-event.c
index ea68a3f..44162db 100644
--- a/drivers/media/IR/ir-raw-event.c
+++ b/drivers/media/IR/ir-raw-event.c
@@ -36,14 +36,15 @@  static DEFINE_SPINLOCK(ir_raw_handler_lock);
  */
 #define RUN_DECODER(ops, ...) ({					    \
 	struct ir_raw_handler		*_ir_raw_handler;		    \
-	int _sumrc = 0, _rc;						    \
+	int _sumrc = 0, _rc, _fail;					    \
 	spin_lock(&ir_raw_handler_lock);				    \
 	list_for_each_entry(_ir_raw_handler, &ir_raw_handler_list, list) {  \
 		if (_ir_raw_handler->ops) {				    \
 			_rc = _ir_raw_handler->ops(__VA_ARGS__);	    \
 			if (_rc < 0)					    \
-				break;					    \
-			_sumrc += _rc;					    \
+				_fail++;				    \
+			else						    \
+				_sumrc += _rc;				    \
 		}							    \
 	}								    \
 	spin_unlock(&ir_raw_handler_lock);				    \