From: Mauro Carvalho Chehab <mchehab@infradead.org>
To: German Galkin <galkinga@gmail.com>
Cc: linux-media@vger.kernel.org, Brian Johnson <brijohn@gmail.com>
Subject: Re: [PATCH] sn9c20x: fixed exposure control for HV7131R sensor
Date: Tue, 24 Nov 2009 10:54:45 -0200 [thread overview]
Message-ID: <4B0BD795.1040709@infradead.org> (raw)
In-Reply-To: <1255989349.4536.22.camel@pexis.zodiac.net>
Hi German,
Your patch got line-wrapped. Also, it doesn't apply. Please, resubmit it against
the latest development tree.
Cheers,
Mauro.
German Galkin wrote:
> Made the range of exposure values (0-0x1770) distribute evenly through
> HV7131R's exposure control bytes.
>
> Signed-off-by: German Galkin <galkinga@gmail.com>
> ---
> diff --git a/drivers/media/video/gspca/sn9c20x.c
> b/drivers/media/video/gspca/sn9c20x.c
> index 99632a7..f173b35 100644
> --- a/drivers/media/video/gspca/sn9c20x.c
> +++ b/drivers/media/video/gspca/sn9c20x.c
> @@ -1656,9 +1656,9 @@ static int set_exposure(struct gspca_dev
> *gspca_dev)
> case SENSOR_HV7131R:
> exp[0] |= (4 << 4);
> exp[2] = 0x25;
> - exp[3] = ((sd->exposure * 0xffffff) / 0xffff) >> 16;
> - exp[4] = ((sd->exposure * 0xffffff) / 0xffff) >> 8;
> - exp[5] = ((sd->exposure * 0xffffff) / 0xffff) & 0xff;
> + exp[3] = (sd->exposure >> 5) & 0xff;
> + exp[4] = (sd->exposure << 3) & 0xff;
> + exp[5] = 0;
> break;
> default:
> return 0;
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2009-11-24 12:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-19 21:55 [PATCH] sn9c20x: fixed exposure control for HV7131R sensor German Galkin
2009-11-24 12:54 ` Mauro Carvalho Chehab [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=4B0BD795.1040709@infradead.org \
--to=mchehab@infradead.org \
--cc=brijohn@gmail.com \
--cc=galkinga@gmail.com \
--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