From: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
To: Sangwook Lee <sangwook.lee@linaro.org>
Cc: linux-media@vger.kernel.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
Subject: Re: [PATH v3 0/2] Add v4l2 subdev driver for S5K4ECGX sensor with embedded SoC ISP
Date: Sun, 19 Aug 2012 23:29:44 +0200 [thread overview]
Message-ID: <50315AC8.5060100@gmail.com> (raw)
In-Reply-To: <CADPsn1b6TxhmWVzzH1u-wr0UZs6D3cif4+r1S9OOROx1iXCXUQ@mail.gmail.com>
Hi Sangwook,
On 08/03/2012 04:24 PM, Sangwook Lee wrote:
> I was thinking about this, but this seems to be is a bit time-consuming because
> I have to do this just due to lack of s5k4ecgx hardware information.
> let me try it later once
> this patch is accepted.
I've converted this driver to use function calls instead of the register
arrays. It can be pulled, along with a couple of minor fixes/improvements,
from following git tree:
git://linuxtv.org/snawrocki/media.git s5k4ecgx
(gitweb: http://git.linuxtv.org/snawrocki/media.git/s5k4ecgx)
I don't own any Origen board thus it's untested. Could you give it a try ?
The register write sequence should be identical as in the case of using
the arrays.
Regarding support for still (JPEG) capture features of S5K4ECGX, it should
be possible to make this work with the mainline s5p-fimc driver, it supports
V4L2_PIX_FMT_JPEG/V4L2_MBUS_FMT_JPEG_1X8 formats. There is only missing
an API for preallocating proper memory buffer for the snapshot frame.
Currently s5p-fimc calculates buffer's size from pixel resolution, using some
fixed coefficient.
I'm planning on adding new V4L2_CID_FRAMESIZE control that could be
a replacement for V4L2_CID_CAM_JPEG_MEMSIZE, as found in this driver:
https://android.googlesource.com/kernel/samsung.git/+/3b0c5d2887fca99cab7dd506817b1049d38198a1/drivers/media/video/s5k4ecgx.c
Except that, there would be needed a new V4L2_CID_SNAPSHOT control in place
of custom V4L2_CID_CAM_CAPTURE. I might try to add that and document in near
future.
You won't find much regarding the face detection features in V4L2,
unfortunately. _Maybe_ I'll try to address this as well on some day, for
now private controls might be your only solution. Unless you feel like
adding face detection features support to V4L2.. ;)
BTW, are your requirements to support both EVT1.0 and EVT1.1 S5K4ECGX
revisions ?
--
Regards,
Sylwester
next prev parent reply other threads:[~2012-08-19 21:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-02 13:42 [PATH v3 0/2] Add v4l2 subdev driver for S5K4ECGX sensor with embedded SoC ISP Sangwook Lee
2012-08-02 13:42 ` [PATH v3 1/2] v4l: Add factory register values form S5K4ECGX sensor Sangwook Lee
2012-08-02 20:50 ` Sylwester Nawrocki
2012-08-03 15:05 ` Sangwook Lee
2012-08-03 20:57 ` Sylwester Nawrocki
2012-08-02 13:42 ` [PATH v3 2/2] v4l: Add v4l2 subdev driver for " Sangwook Lee
2012-08-02 21:18 ` Sylwester Nawrocki
2012-08-02 20:11 ` [PATH v3 0/2] Add v4l2 subdev driver for S5K4ECGX sensor with embedded SoC ISP Sylwester Nawrocki
2012-08-03 14:24 ` Sangwook Lee
2012-08-03 20:41 ` Sylwester Nawrocki
2012-08-19 21:29 ` Sylwester Nawrocki [this message]
2012-08-20 8:12 ` Sangwook Lee
2012-08-20 10:43 ` Sangwook Lee
2012-08-20 11:33 ` Sylwester Nawrocki
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=50315AC8.5060100@gmail.com \
--to=sylvester.nawrocki@gmail.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linaro-dev@lists.linaro.org \
--cc=linux-media@vger.kernel.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).