[vdr] Key-repeat or release magic in RCU drivers
Marko Mäkelä
marko.makela at hut.fi
Wed Feb 1 22:28:15 CET 2006
On Wed, Feb 01, 2006 at 07:51:04PM +0100, Oliver Endriss wrote:
> > > cx88? That'd be the newer Nova-T, not the Nova-T :-)
> >
> > Well, Nova-T 90002 REV C176, then. :-)
> >
> > > I've posted a set of patches to the v4l list which should be of some help;
> > > you should have a look at budget-ci after applying the patches, which you can
> > > also get from here:
> > > <URL:http://ymbj/progs/linux/dvb-ir-20060129.patch.tar.gz>
> >
> > Hmm, I may be mistaken, but it looks to me as if your patches try to do the
> > same thing for older cards as the new Nova-T driver already does. What I
> > would really like to have is to map every RC5 frame either to a key-press or
> > to a key-repeat, and a timer for generating key-release events. Does any
> > existing driver (or patch) do that?
>
> The av7110 driver does it exactly this way. I did a lot of testing to
> find the optimal method. ;-)
>
> (1) The repeat timer of the input layer must be turned off, and
> the natural repeat rate of the RC5 frames should be used.
> Anything else will result in inaccurate operation.
>
> (2) The key-up timeout should be set to 280ms or higher (>= 2x repeat
> rate). This will allow for one missing RC5 frame which may happen
> due to transmission errors.
Thanks, this sounds exactly what I'm looking for!
The 280 ms you mention matches the #define UP_TIMEOUT (HZ*7/25) in
/usr/src/linux-2.6.14.3/drivers/media/dvb/ttpci/av7110_ir.c
on my vdr box. I'll see if I'm smart enough to port the code to
the cx88 driver.
Marko
More information about the vdr
mailing list