public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean-Francois Moine <moinejf@free.fr>
To: "Gustavo Chaín Dumit" <g@0xff.cl>
Cc: linux-media@vger.kernel.org
Subject: Re: VFlip problem in gspca_pac7311
Date: Tue, 24 Nov 2009 19:02:09 +0100	[thread overview]
Message-ID: <20091124190209.67d6a2f7@tele> (raw)
In-Reply-To: <20091123141042.47feac9e@0xff.cl>

On Mon, 23 Nov 2009 14:10:42 -0300
Gustavo Chaín Dumit <g@0xff.cl> wrote:
> I'm testing a Pixart Imaging device (0x93a:0x2622)
> Everything works fine, but vertical orientation. Image looks rotated.
> So I wrote a little hack to prevent it.
> 
> diff --git a/drivers/media/video/gspca/pac7311.c
> b/drivers/media/video/gspca/pac 7311.c
> index 0527144..f7904ec 100644
> --- a/drivers/media/video/gspca/pac7311.c
> +++ b/drivers/media/video/gspca/pac7311.c
> @@ -690,27 +690,28 @@ static int sd_start(struct gspca_dev *gspca_dev)
>         }
>         setgain(gspca_dev);
>         setexposure(gspca_dev);
> -       sethvflip(gspca_dev);
> +       if (gspca_dev->dev->descriptor.idProduct != 0x2622)
> +               sethvflip(gspca_dev);
> 
> Any one has the same problem ?

Yes, other people have the same problem with this webcam. I was
changing the driver when I found a problem.

The vertical and horizontal flips are set in the register 0x21 of the
page 3. The function sethvflip() sets 0x08 for Hflip and 0x04 for
Vflip. By default, this register is set to 0x08 and when sethvflip() is
called, it sets back the value to 0 (no H nor V flip).

As your patch prevents sethvflip to be called, the value 0x08 should be
Vflip and not Hflip. May you confirm that changing Vflip by program
(v4l2ucp, v4l2-ctl...)  does mirroring?

Regards.

-- 
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

      parent reply	other threads:[~2009-11-24 18:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-23 17:10 VFlip problem in gspca_pac7311 Gustavo Chaín Dumit
2009-11-23 18:27 ` Németh Márton
2009-11-23 18:46   ` Gustavo Chaín Dumit
2009-11-24 18:02 ` Jean-Francois Moine [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=20091124190209.67d6a2f7@tele \
    --to=moinejf@free.fr \
    --cc=g@0xff.cl \
    --cc=linux-media@vger.kernel.org \
    /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