From: Jonathan Nieder <jrnieder@gmail.com>
To: martin-eric.racine@iki.fi
Cc: "Hans de Goede" <hdegoede@redhat.com>,
677533@bugs.debian.org, "Jean-François Moine" <moinejf@free.fr>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: video: USB webcam fails since kernel 3.2
Date: Mon, 9 Jul 2012 15:39:29 -0500 [thread overview]
Message-ID: <20120709203929.GC17301@burratino> (raw)
In-Reply-To: <4FFAD8D9.8070203@redhat.com>
Hi Martin-Éric,
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
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.
3. Try Hans's first suggested change, as described in the quoted text
above:
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 ...
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 ...
No doubt Jean-François will notice that it is easier to test the
standalone driver because the first build does not have to compile the
whole kernel. That's fine, too. The instructions above describe how
to test the in-kernel driver because it's what I'm used to (and
because it means you test the driver against the same version of the
rest of the kernel as would get the fix).
Hope that helps,
Jonathan
next prev parent reply other threads:[~2012-07-09 20:39 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20120614162609.4613.22122.reportbug@henna.lan>
[not found] ` <20120614215359.GF3537@burratino>
[not found] ` <CAPZXPQd9gNCxn7xGyqj_xymPaF5OxvRtxRFkt+SsLs942te4og@mail.gmail.com>
[not found] ` <20120616044137.GB4076@burratino>
2012-06-17 11:23 ` video: USB webcam fails since kernel 3.2 Martin-Éric Racine
2012-06-17 17:11 ` Jonathan Nieder
2012-06-17 17:12 ` Jonathan Nieder
2012-07-08 13:01 ` Martin-Éric Racine
2012-07-08 17:58 ` Hans de Goede
2012-07-08 18:33 ` Jean-Francois Moine
2012-07-09 8:43 ` Hans de Goede
2012-07-09 11:33 ` Martin-Éric Racine
2012-07-09 13:12 ` Hans de Goede
2012-07-09 20:39 ` Jonathan Nieder [this message]
2012-07-10 12:56 ` Martin-Éric Racine
2012-07-10 14:36 ` Jean-Francois Moine
2012-07-11 7:02 ` Martin-Éric Racine
2012-07-11 8:04 ` Jean-Francois Moine
2012-07-11 10:21 ` Martin-Éric Racine
2012-07-11 10:44 ` Jean-Francois Moine
2012-07-11 11:14 ` Martin-Éric Racine
2012-07-11 11:27 ` Jean-Francois Moine
[not found] ` <CAPZXPQeDKLAu13Qs-MhhxJEBrF-5620HNZDmPiH+4NRmkxx3Ag@mail.gmail.com>
2012-07-11 12:19 ` Jonathan Nieder
2012-07-11 13:27 ` Hans de Goede
2012-07-11 13:43 ` Martin-Éric Racine
2012-07-11 17:18 ` Jean-Francois Moine
2012-07-11 18:08 ` Martin-Éric Racine
2012-10-09 22:54 ` Jonathan Nieder
2012-10-10 5:53 ` Martin-Éric Racine
2012-10-10 6:23 ` Jean-Francois Moine
2012-10-10 6:32 ` Jonathan Nieder
2012-10-10 6:49 ` Martin-Éric Racine
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120709203929.GC17301@burratino \
--to=jrnieder@gmail.com \
--cc=677533@bugs.debian.org \
--cc=hdegoede@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=martin-eric.racine@iki.fi \
--cc=moinejf@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.