Hi everyone,

Although my C skills are very rusty I am trying to create a module for a
webcam that utilizes the sn9c102 chip. Currently I have managed to create a
very basic module that registers with the kernel and detects the device via
the probe function. I have also initalised a usb_submit_urb on the 3rd
endpoint (which is an interrupt type). The complete funtion works fine in
that it detects when I press the button on the top of the webcam and writes
a message to the kernel log (incrementing a count).

I am quite pleased at what I have achieved with this but want to move onto
setting up the isosyncronous endpoint in order to transfer images (as this
is the point of a webcam). BUT before I do that can someone point me in the
right direction with regard to usb_unlink_urb() because I just can not get
this to work for me in any useful shape or form. If I unjack my device
something (evidently not the webcam itself if its offline) keeps calling
endpoint 3 complete routine. I know its calling the disconnect function (as
I get a message) but nothing happens after the unlink except as I said
something keeps calling the complete function.

Currently my only safe exit procedure is to reboot which as you could
imagine is impacting on my development time !

I have tried the following

reading manuals
looking at other peoples code in drivers/usb
everything but beating the computer around the monitor with a large stick.

Non of which has made any impression on my synaptic processor

Could someone please please please explain what the proper exit procedure is
for the usb disconnect function.

By the way Im using a 2.4.x kernel at the moment.

Thanks in advance

Tom.





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to