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

2012-09-06 Thread Changbin Du
Sean , many thanks for your help. I know much more about IR framwork now. I'll try to work out a patch to remove "allowed_protocols". Thanks again! [Du, Changbin] 2012/9/4 Sean Young : > On Tue, Sep 04, 2012 at 11:06:07AM +0800, Changbin Du wrote: >> > > mutex_lock(&ir_raw_handler_l

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

2012-09-04 Thread Sean Young
On Tue, Sep 04, 2012 at 11:06:07AM +0800, Changbin Du wrote: > > > mutex_lock(&ir_raw_handler_lock); > > > - list_for_each_entry(handler, &ir_raw_handler_list, list) > > > - handler->decode(raw->dev, ev); > > > + list_for_each_entry(handler,

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

2012-09-03 Thread Changbin Du
> > mutex_lock(&ir_raw_handler_lock); > > - list_for_each_entry(handler, &ir_raw_handler_list, list) > > - handler->decode(raw->dev, ev); > > + list_for_each_entry(handler, &ir_raw_handler_list, list) { > > + /* use all p

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

2012-09-03 Thread Sean Young
On Sat, Sep 01, 2012 at 09:57:09AM +0800, Du, Changbin wrote: > 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 decod

[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, Changbin --- drivers/media/rc/ir