Re: [PATCH] media: ir-rc5-decoder: improve responsiveness by 100ms to 250ms

2013-04-17 Thread Stephane Chauveau
And here are two small patches to obtain timings on the original decoder. --- linux/drivers/media/rc/ir-rc5-decoder.c.orig2013-04-17 20:40:41.939326236 +0200 +++ linux/drivers/media/rc/ir-rc5-decoder.c2013-04-18 00:42:11.386539568 +0200 @@ -64,6 +64,8 @@ static int ir_rc5_decode(struc

Re: [PATCH] media: ir-rc5-decoder: improve responsiveness by 100ms to 250ms

2013-04-17 Thread Stephane Chauveau
Here is a more detailed analysis of the problems my patch is supposed to solve. I added a few printk in the module to obtain some detailed timings. - DECODE is emited once at the begining of each call of ir_rc5_decode() to describe the blank or pulse event reported by ite_cir - FINISHED is e

[PATCH] media: ir-rc5-decoder: improve responsiveness by 100ms to 250ms

2013-04-17 Thread Stephane Chauveau
Hello, Here is a patch to improve the responsiveness of the rc5 decoder when using the ite-cir driver. Most of the information below should also be applicable to other decoders and ir drivers (e.g. rc6 for sure). The problem is that the current decoder is subject to a double timeout: (a) 2