From: Hans de Goede <hdegoede@redhat.com>
To: Jean-Francois Moine <moinejf@free.fr>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [PATCH] gspca - stv06xx: Fix a regression with the bridge/sensor vv6410
Date: Thu, 29 Nov 2012 15:25:09 +0100 [thread overview]
Message-ID: <50B77045.3010102@redhat.com> (raw)
In-Reply-To: <20121122125906.35d6f98a@armhf>
Hi,
Thanks for the patch I've added this to my tree, and it is part
of the pull-request I just send to Mauro for 3.8
Regards,
Hans
On 11/22/2012 12:59 PM, Jean-Francois Moine wrote:
> From: Jean-François Moine <moinejf@free.fr>
>
> Setting the H and V flip controls at webcam connection time prevents
> the webcam to work correctly.
>
> This patch checks if the webcam is streaming before setting the flips.
> It does not set the flips (nor other controls) at webcam start time.
>
> Tested-by: Philippe ROUBACH <philippe.roubach@free.fr>
> Signed-off-by: Jean-François Moine <moinejf@free.fr>
>
> --- a/drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c
> +++ b/drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c
> @@ -52,9 +52,13 @@
>
> switch (ctrl->id) {
> case V4L2_CID_HFLIP:
> + if (!gspca_dev->streaming)
> + return 0;
> err = vv6410_set_hflip(gspca_dev, ctrl->val);
> break;
> case V4L2_CID_VFLIP:
> + if (!gspca_dev->streaming)
> + return 0;
> err = vv6410_set_vflip(gspca_dev, ctrl->val);
> break;
> case V4L2_CID_GAIN:
>
prev parent reply other threads:[~2012-11-29 14:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-22 11:59 [PATCH] gspca - stv06xx: Fix a regression with the bridge/sensor vv6410 Jean-Francois Moine
2012-11-29 14:25 ` Hans de Goede [this message]
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=50B77045.3010102@redhat.com \
--to=hdegoede@redhat.com \
--cc=linux-media@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox