From: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
To: Sangwook Lee <sangwook.lee@linaro.org>
Cc: linux-media@vger.kernel.org, mchehab@infradead.org,
laurent.pinchart@ideasonboard.com,
sakari.ailus@maxwell.research.nokia.com, suapapa@insignal.co.kr,
quartz.jang@samsung.com, linaro-dev@lists.linaro.org,
patches@linaro.org, usman.ahmad@linaro.org,
david.a.cohen@linux.intel.com
Subject: Re: [PATCH v2 1/2] v4l: Add factory register values form S5K4ECGX sensor
Date: Thu, 19 Jul 2012 21:40:48 +0200 [thread overview]
Message-ID: <500862C0.2000507@gmail.com> (raw)
In-Reply-To: <1342700047-31806-2-git-send-email-sangwook.lee@linaro.org>
Hi Sangwook,
On 07/19/2012 02:14 PM, Sangwook Lee wrote:
> Add factory default settings for S5K4ECGX sensor registers.
> I copied them from the reference code of Samsung S.LSI.
I'm pretty sure we can do better than that. I've started S5K6AAFX sensor
driver development with similar set of write-only register address/value
arrays, that stored mainly register default values after the device reset,
or were configuring presets that were never used.
If you lok at the s5k6aa driver, you'll find only one relatively small
array of register values for the analog processing block settings.
It's true that I had to reverse engineer a couple of things, but I also
had a relatively good datasheet for the sensor.
> According to comments from the reference code, they do not
> recommend any changes of these settings.
Yes, but it doesn't mean cannot convert, at least part of, those ugly
tables into function calls.
Have you tried to contact Samsung S.LSI for a datasheet that would
contain better registers' description ?
--
Thanks,
Sylwester
next prev parent reply other threads:[~2012-07-19 19:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-19 12:14 [PATCH v2 0/2] Add v4l2 subdev driver for S5K4ECGX sensor with embedded SoC ISP Sangwook Lee
2012-07-19 12:14 ` [PATCH v2 1/2] v4l: Add factory register values form S5K4ECGX sensor Sangwook Lee
2012-07-19 19:40 ` Sylwester Nawrocki [this message]
[not found] ` <CADPsn1bniYQQ-pefrX+XdbLk1n-Na_dSYWspORkGCwo5+XBtrw@mail.gmail.com>
2012-07-20 10:03 ` Sangwook Lee
2012-07-24 20:38 ` Sylwester Nawrocki
2012-07-19 12:14 ` [PATCH v2 2/2] v4l: Add v4l2 subdev driver for " Sangwook Lee
2012-07-19 21:40 ` Sylwester Nawrocki
2012-07-20 15:36 ` Sangwook Lee
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=500862C0.2000507@gmail.com \
--to=sylvester.nawrocki@gmail.com \
--cc=david.a.cohen@linux.intel.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linaro-dev@lists.linaro.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=patches@linaro.org \
--cc=quartz.jang@samsung.com \
--cc=sakari.ailus@maxwell.research.nokia.com \
--cc=sangwook.lee@linaro.org \
--cc=suapapa@insignal.co.kr \
--cc=usman.ahmad@linaro.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;
as well as URLs for NNTP newsgroup(s).