[mythtv-users] Configuring USB->serial converter to control DirecTV set top box

djg at pdp8.net djg at pdp8.net
Fri Dec 1 21:04:25 UTC 2006


>The manufacturer also provides the source for the driver. Again, the source
>code was written against the 2.6.11 kernel and will not compile against my
>2.6.16 kernel
>
I'm not really a kernel hacker but have fixed drivers that wouldn't compile
with a newer kernel. It seems from a quick online search of what people
did to fix other drivers the problem lines may be safely deleted.  Try
at your own risk.

If you can't get that adapter working I am using a Rosewill RCW601 which is
the Prolific PL2303 USB to serial adaptor driver in kernel.org kernels.  Now 
using 2.6.18.2 but also used 2.6.15.4

*** mos7703.c   2006-05-04 09:17:36.000000000 -0400
--- ../Linux_7703.old/mos7703.c 2006-12-01 15:45:53.000000000 -0500
***************
*** 120,126 ****
  /* all local variables decleration goes here */

  static struct usb_driver mcs7703_driver = {
-         .owner =        THIS_MODULE,
          .name =         "Moschip7703",
          .probe =        usb_serial_probe,
          .disconnect =   usb_serial_disconnect,
--- 120,125 ----
***************
*** 266,276 ****
                  {
                          for (i = 0; i < urb->actual_length; ++i)
                          {
-                         /* if we insert more than TTY_FLIPBUF_SIZE characters,  we drop them. */
-                                 if(tty->flip.count >= TTY_FLIPBUF_SIZE)
-                                 {
-                                                 tty_flip_buffer_push(tty);
-                                 }
                          /* this doesn't actually push the data through unless tty->low_latency is set */
                                  tty_insert_flip_char(tty, data[i], 0);
                                        DPRINTK(" READ : %c \n",data[i]);
--- 265,270 ----



More information about the mythtv-users mailing list