Re: video: USB webcam fails since kernel 3.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jonathan,

Thank you for these detailed instructions. Find the results of my testing below:

2012/7/9 Jonathan Nieder <jrnieder@xxxxxxxxx>:
> Hans de Goede wrote:
>
>> Erm, that is quite a bit of work from my side for something which you
>> can easily do yourself, edit gspca.c, search for which_bandwidth
>> and then under the following lines:
>>         u32 bandwidth;
>>         int i;
>>
>> Add a line like this:
>>       return 2000 * 2000 * 120;
>
> In case it helps, here are some more complete instructions.
>
>  0. Prerequisites:
>
>         apt-get install git build-essential
>
>  1. Get the kernel history, if you don't already have it:
>
>         git clone \
>           git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Cloned up to the following commit:

commit 2437fccfbfc83bcb868ccc7fdfe2b5310bf07835
Merge: 6c6ee53 d92d95b6
Author: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
Date:   Mon Jul 9 13:43:02 2012 -0700

    Merge tag 'regulator-3.5' of
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator

>  2. Try linus's master:
>
>         cd linux
>         git fetch origin
>         git reset --hard origin/master
>         cp /boot/config-$(uname -r) .config; # current configuration
>         scripts/config --disable DEBUG_INFO
>         make localmodconfig; # optional: minimize configuration
>         make deb-pkg; # optionally with -j<num> for parallel build
>         dpkg -i ../<name of package>; # as root
>         reboot
>         ... test test test ...
>
>     Hopefully it reproduces the bug.

Fails as previously.

>  3. Try Hans's first suggested change, as described in the quoted text
>     above:

/* compute the minimum bandwidth for the current transfer */
static u32 which_bandwidth(struct gspca_dev *gspca_dev)
{
        u32 bandwidth;
        int i;

        return 2000 * 2000 * 120;

        /* get the (max) image size */

>         cd linux
>         vi drivers/media/video/gspca/gspca.c
>         ... make the suggested edits ...
>         make deb-pkg; # maybe with -j4
>         dpkg -i ../<name of package>; # as root
>         reboot
>         ... test test test ...

The camera works again in Cheese, at least some of the time. Other
times, launching Cheese immediately crashes GNOME, which restarts the
X.org server.

However, with Skype 4.0.0.7, it only shows a green square, instead of
the camera's output.

>  4. Try Hans's second suggested change, as described in a previous
>     message:
>
>         cd linux
>         vi drivers/media/video/gspca/gspca.c
>         ... make the suggested edits ...
>         make deb-pkg; # maybe with -j4
>         dpkg -i ../<name of package>; # as root
>         reboot
>         ... test test test ...

This produces a severely distorted image for a few seconds, then
Cheese crashes; GNOME itself survives.

Meanwhile, Skype 4.0.0.7 shows a black square, instead of the camera's output.

I hope that the above already provides some usable answers.

Martin-Éric
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux