ts-7000
[Top] [All Lists]

[ts-7000] Debugging gspca camera driver in lenny, weird behaviour in cod

To:
Subject: [ts-7000] Debugging gspca camera driver in lenny, weird behaviour in code.
From: "lee.weihong" <>
Date: Thu, 18 Jun 2009 18:10:59 -0000
Hi,

I used a webcam with my TS7800, which was working on sarge before I moved to 
lenny. However, now the webcam (Logitech notebook deluxe) doesn't work with the 
gspca drivers anymore.

To be exact, after enabling debug mode in the drivers and putting a few 
printk(), I observe this:

static void
spca50x_stop_isoc(struct usb_spca50x *spca50x)
{
        printk("Entering spca50x_stop_isoc");
        if (!spca50x->streaming || !spca50x->dev)
                return;
        printk("*** Stopping capture ***");
        /* Rest of code goes here */
}

spca5xx_restartMode(struct usb_spca50x *spca50x, int width, int height, int 
format)
{
        /* Some code here */

        if (was_streaming) {
                if ((spca50x->bridge != BRIDGE_SPCA500)
                    || (spca50x->desc == LogitechClickSmart310)) {
                        printk("restartMode - stop_isoc");
                        spca50x_stop_isoc(spca50x);
                 }
        }

        /* More code here */
}

Now, observing the dmesg output shows the program proceeds into 
spca5xx_restartMode(...), and displays "restartMode - stop_isoc". But the 
spca50x_stop_isoc() never gets called, and the printk message in the very first 
line of spca50x_stop_isoc() never gets displayed. 

Then, the driver hangs, and my userspace program also hangs, becoming 
uninterruptible with ^C. Any helpful members can point out how to patch the 
driver? I have been at this for 2 nights already, pulling my hair out on how 
strange this can be



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU