Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Nexus remote & dvb-0.9.4-dvb-0.9.4-2002-06-23.patch problem.



I think this lirc patch should go in the next vdr 1.1.x
Jörg

Oliver Endriss wrote:

> Oliver Endriss wrote:
> > On Tuesday 10 September 2002 18:51, Romagnoli, Massimo wrote:
> > > ... Yes, I edit Makefile with linux & lircd path and I "make" it a
> > > lot of time ... before, and after, compile dvb driver.
> > > I need to re-compile vdr also ?
> >
> > It's a good idea to do so because header files might have been
> > changed. Verify that vdr uses the correct driver files (DVBDIR in
> > Makefiel, usually ../DVB).
> >
> > > I'm sure also for insmod/rmmod.
> >
> > Ok. I don't know what 'dvb-0.9.4-dvb-0.9.4-2002-06-23.patch' is.
> > Perhaps you should simply try the current driver from CVS or a recent
> > CVS snapshot from http://www.linuxdvb.tv/download.
>
> I think I just found the patch...
> Is it 'siemens_dvb-0.9.4-2002-06-23.patch.tar.bz2' from Klaus' site?
> If yes, read on.
>
> This patch replaces the firmware with a new version from the NEWSTRUCT branch.
> If you want to use "hauppauge remote controller + LIRC + old driver + new firmware"
> you must apply the following patch to the patched driver.
>
> But note that the auto-repeat function of the keys doesn't work anymore
> (at least with the original Hauppauge remote control)!
>
> -----------------------------------------------  snip  --------------------------------
> diff -u dvb-cvs-20020831/driver/dvb.c DVB/driver/dvb.c
> --- dvb-cvs-20020831/driver/dvb.c       Wed Aug  7 16:07:14 2002
> +++ DVB/driver/dvb.c    Mon Sep  9 18:06:48 2002
> @@ -835,8 +835,11 @@
>
>  void run_handlers(unsigned long ircom)
>  {
> -        if (irc_handler != NULL)
> +        if (irc_handler != NULL) {
>                  (*irc_handler)((u32) ircom);
> +                // HACK: generate 'key-up' event
> +                (*irc_handler)((u32) ircom & 0x7fffffff);
> +       }
>  }
>
>  DECLARE_TASKLET(irtask,run_handlers,0);
> @@ -2338,6 +2341,9 @@
>
>          dvb->arm_errors=0;
>          dvb->arm_ready=1;
> +
> +        // HACK: init. remote control (protocol RC5, not inverted)
> +        outcom(dvb, COMTYPE_PIDFILTER, SetIR, 1, 0x0000);
>          return 0;
>  }
>
> diff -u dvb-cvs-20020831/driver/dvb.h DVB/driver/dvb.h
> --- dvb-cvs-20020831/driver/dvb.h       Tue Jul  9 15:01:46 2002
> +++ DVB/driver/dvb.h    Mon Sep  9 17:39:30 2002
> @@ -236,7 +236,8 @@
>         AddPIDFilter,
>         DelPIDFilter,
>         Scan,
> -       SetDescr
> +       SetDescr,
> +       SetIR
>  } PIDCOM;
>
>  typedef enum {
> -----------------------------------------------  snip  --------------------------------
>
> Oliver








Home | Main Index | Thread Index