Mailing List archive

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

[linux-dvb] OLD driver + NEW firmware + remote control (was: Announcement, new driver features)



On Sunday 08 September 2002 20:21, Joerg Riechardt wrote:
> Ralph Metzler wrote:
> > The new firmware is already checked into CVS in the NEWSTRUCT
> > branch. (You can also use it in the main branch.
>
> but lirc won't work any more then, or did I do something wrong?
> main branch driver + NEW firmware = no ircommands ?!

True. If you want to use OLD driver + NEW firmware + remote control
you may try the following hack. Note that the auto-repeat function of the 
keys doesn't work anymore (at least with the original Hauppauge remote 
control).

Oliver

---------------------------  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  -----------------------------------


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index