Re: 2.4.14/2.4.15 cpia driver IS broke.. no its parport

Joe (joeja@mindspring.com)
Sun, 25 Nov 2001 11:08:59 -0800


This is a multi-part message in MIME format.
--------------D96DDA71340FE32D6A3929B9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

In that case I'ss send my patch to 2.4.14 to the list and hope it helps others
with their parallel port webcams.. (its small)

Joe

> This works perfectly for my w9966 parport webcam!
> /Jakob
>
> On Saturdayen den 24 November 2001 22.43, Jakob Kemi wrote:
> > Great!
> >
> > I'll test it right away.
> > /Jakob
> >
> > > The problem is that in the call to acknowledge the handshake (Event 44?
> > > about line592) the call to parport_frob_control or
> > > parport_pc_frob_control as it is #defined to is called with a 0 which I
> > > think causes the code to call parport_pc_data_forward and the new code
> > > just calls
> > > parport_pc_data_reverse. I think that we may need to call the
> > > parport_pc_data_forward still.
> > >
> > > - parport_write_control (port, ctl); // new code
> > > + parport_frob_control (port, PARPORT_CONTROL_AUTOFD, 0);
> > > //old working code
> > >
> > > Joe
> > >
>

--------------D96DDA71340FE32D6A3929B9
Content-Type: text/plain; charset=us-ascii;
name="ieee1294_ops_fix-2.4.14"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="ieee1294_ops_fix-2.4.14"

--- linux-2.4.14/drivers/parport/ieee1284_ops.c Fri Nov 23 20:59:42 2001
+++ linux-2.4.current/drivers/parport/ieee1284_ops.c Sun Nov 18 21:13:10 2001
@@ -592,7 +592,7 @@
}

/* Event 44: Set HostAck high, acknowledging handshake. */
- parport_write_control (port, ctl);
+ parport_frob_control (port, PARPORT_CONTROL_AUTOFD, 0);

/* Event 45: The peripheral has 35ms to set nAck high. */
if (parport_wait_peripheral (port, PARPORT_STATUS_ACK,

--------------D96DDA71340FE32D6A3929B9--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/