From: Jean-Francois Moine <moinejf@free.fr>
To: Antonio Ospite <ospite@studenti.unina.it>
Cc: linux-media@vger.kernel.org
Subject: Re: gspca, audio and ov534: regression.
Date: Wed, 6 Oct 2010 20:35:53 +0200 [thread overview]
Message-ID: <20101006203553.22edfeb7@tele> (raw)
In-Reply-To: <20101006160441.6ee9583d.ospite@studenti.unina.it>
On Wed, 6 Oct 2010 16:04:41 +0200
Antonio Ospite <ospite@studenti.unina.it> wrote:
> Thanks, the following change fixes it, was this what you had in mind?
>
> diff --git a/drivers/media/video/gspca/gspca.c
> b/drivers/media/video/gspca/gspca.c index b984610..30e0b32 100644
> --- a/drivers/media/video/gspca/gspca.c
> +++ b/drivers/media/video/gspca/gspca.c
> @@ -651,7 +651,7 @@ static struct usb_host_endpoint *get_ep(struct
> gspca_dev *gspca_dev) : USB_ENDPOINT_XFER_ISOC;
> i = gspca_dev->alt; /* previous alt
> setting */ if (gspca_dev->cam.reverse_alts) {
> - if (gspca_dev->audio)
> + if (gspca_dev->audio && !gspca_dev->cam.bulk)
> i++;
> while (++i < gspca_dev->nbalt) {
> ep = alt_xfer(&intf->altsetting[i], xfer);
> @@ -659,7 +659,7 @@ static struct usb_host_endpoint *get_ep(struct
> gspca_dev *gspca_dev) break;
> }
> } else {
> - if (gspca_dev->audio)
> + if (gspca_dev->audio && !gspca_dev->cam.bulk)
> i--;
> while (--i >= 0) {
> ep = alt_xfer(&intf->altsetting[i], xfer);
Yes, but, after thought, as there is only one alternate setting, the
tests could be:
if (gspca_dev->audio && i < gspca_dev->nbalt - 1)
and
if (gspca_dev->audio && i > 0)
This should work also for isochronous transfers.
regards.
--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
next prev parent reply other threads:[~2010-10-06 18:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-06 10:33 gspca, audio and ov534: regression Antonio Ospite
2010-10-06 11:48 ` Jean-Francois Moine
2010-10-06 14:04 ` Antonio Ospite
2010-10-06 14:53 ` Antonio Ospite
2010-10-07 17:44 ` Jean-Francois Moine
2010-10-10 9:45 ` Antonio Ospite
2010-10-06 18:35 ` Jean-Francois Moine [this message]
2010-10-10 10:02 ` Antonio Ospite
2010-10-10 10:21 ` Jean-Francois Moine
2010-10-10 11:00 ` Antonio Ospite
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=20101006203553.22edfeb7@tele \
--to=moinejf@free.fr \
--cc=linux-media@vger.kernel.org \
--cc=ospite@studenti.unina.it \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox