All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gustavo Chaín Dumit" <g@0xff.cl>
To: linux-media@vger.kernel.org
Subject: VFlip problem in gspca_pac7311
Date: Mon, 23 Nov 2009 14:10:42 -0300	[thread overview]
Message-ID: <20091123141042.47feac9e@0xff.cl> (raw)

Hi

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 ?
Thanks!

-- 
Gustavo Chaín Dumit
http://0xff.cl

             reply	other threads:[~2009-11-23 17:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-23 17:10 Gustavo Chaín Dumit [this message]
2009-11-23 18:27 ` VFlip problem in gspca_pac7311 Németh Márton
2009-11-23 18:46   ` Gustavo Chaín Dumit
2009-11-24 18:02 ` Jean-Francois Moine

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=20091123141042.47feac9e@0xff.cl \
    --to=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 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.