[RFC PATCH] [media] rc: filter out not allowed protocols when decoding

2012-08-31 Thread Du, Changbin
From: "Du, Changbin" Each rc-raw device has a property "allowed_protos" stored in structure ir_raw_event_ctrl. But it didn't work because all decoders would be called when decoding. This path makes only allowed protocol decoders been invoked. Signed-off-by: Du, Changb

[PATCH v2] [media] rc: ati_remote.c: code style fixing

2012-07-07 Thread Du, Changbin
From: "Du, Changbin" changes: 1. wrap some lines that are longer than 80 characters. 2. remove local function prototype declarations which do not need. 3. replace TAB character with a space character in function comments. Signed-off-by: Du

Re: [Resend PATCH] media: rc: ati_remote.c: code style and compile warning fixing

2012-07-06 Thread Du Changbin
gt; >*Added support for the "Lola" remote contributed by: > >*Seth Cohn > > + * Jul 2012: Du, Changbin > > + *Code style and compile warning fixing > > You shouldn't be changing the driver's autho

[Resend PATCH] media: rc: ati_remote.c: code style and compile warning fixing

2012-07-04 Thread Du, Changbin
init2[] to "unsigned char" to avoid compile warning. Signed-off-by: Du, Changbin --- drivers/media/rc/ati_remote.c | 139 + 1 file changed, 84 insertions(+), 55 deletions(-) diff --git a/drivers/media/rc/ati_remote.c b/driver

RE: [PATCH 1/1] media: rc: ati_remote.c: code style and compile warning fixing

2012-07-04 Thread Du, Changbin
character with a space character in function > comments. > 4. change the types of array init1[] and init2[] to > "unsigned char" to avoid compile warning. > > Signed-off-by: Du, Changbin > --- > drivers/media/rc/ati_remote.c | 139 > ++

[PATCH v2 1/1] media: gpio-ir-recv: add allowed_protos for platform data

2012-07-03 Thread Du, Changbin
Make it possible to specify allowed RC protocols through the device's platform data. Signed-off-by: Du, Changbin --- For v2: Keymap has already done by another patch. --- drivers/media/rc/gpio-ir-recv.c |2 +- include/media/gpio-ir-recv.h|7 --- 2 files chang

RE: [PATCH] media: gpio-ir-recv: add allowed_protos and map_name for platform data

2012-07-03 Thread Du, Changbin
> Hi Changbin, > > On Tue, Jul 3, 2012 at 12:27:19PM +0200, Changbin Du wrote: > > It's better to give platform code a chance to specify the allowed > > protocols and which keymap to use. > > Already half done here: > http://git.linuxtv.org/media_tree.git?a=commitdiff;h=2bd237b Got it, thanks.

[PATCH] media: gpio-ir-recv: add allowed_protos and map_name for platform data

2012-07-03 Thread Du, Changbin
It's better to give platform code a chance to specify the allowed protocols and which keymap to use. Signed-off-by: Du, Changbin --- drivers/media/rc/gpio-ir-recv.c | 10 -- include/media/gpio-ir-recv.h|6 -- 2 files changed, 12 insertions(+), 4 deletions(-) diff --

[PATCH 1/1] media: rc: ati_remote.c: code style and compile warning fixing

2012-07-01 Thread Du, Changbin
init2[] to "unsigned char" to avoid compile warning. Signed-off-by: Du, Changbin --- drivers/media/rc/ati_remote.c | 139 + 1 file changed, 84 insertions(+), 55 deletions(-) diff --git a/drivers/media/rc/ati_remote.c b/driver