On Sun, 11 Jul 2010 17:18:53 -0400
Kyle Baker <kyleaba...@gmail.com> wrote:

> Is the previous maintainer, Michel Xhaard, still working on this
> driver at all? I wonder if he might be able to help identify the
> problem or narrow it down.
> Which function is called when I open Cheese or other video
> applications? Initializing the webcam appears to be correct, however,
> sd_start() or the one that starts the video capture appears to be
> toggling or changing some setting. If I knew of a way, I would insert
> more debug messages to help pinpoint the place where the microphone
> breaks along with some boolean to show that its working or not.


Michel Xhaard gave me all the gspca stuff and stopped working on it two
years ago. He did not even tell me which of his webcams were working
with gspca v2...

The video capture is started in sd_start(). Checking all sequences
again, I found that the GPIO is also set near line 1752. May you comment
it and test?

//      reg_w1(gspca_dev, 0x02, 0x62);

Otherwise, here is a way to know the exact bad USB exchange.

First, in sonixj.c, add a long delay in the register write functions
just before the debug messages:
- line 1350

        msleep(1000);                                   // add this
        PDEBUG(D_USBO, "reg_w1 [%04x] = %02x", value, data);

- line 1365

        msleep(1000);                                   // add this
        PDEBUG(D_USBO, "reg_w [%04x] = %02x %02x ..",
                value, buffer[0], buffer[1]);

After installation, connect the webcam and set the gspca debug level to
        echo 0xcf > /sys/module/gspca_main/parameters/debug

Check if the webcam microphone is working, and look at the kernel
messages by:
        tail -f /var/log/messages

Then, start the video capture. You should see each USB exchange in the
'tail' window. When the audio stops, the bad exchange is the one just

If the audio stopped before any exchange, this could mean that something
went wrong when setting the alternate setting or on URB creation.

BTW, your webcam is connected to a USB 1.1 port with the driver
ohci_hcd. Have you some USB 2.0 port that you could use?

Best regards.

Ken ar c'hentaƱ |             ** Breizh ha Linux atav! **
Jef             |               http://moinejf.free.fr/
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to