From: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
To: Kim HeungJun <riverful@gmail.com>
Cc: riverful.kim@samsung.com,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
Nayden Kanchev <nkanchev@mm-sol.com>,
Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Hans Verkuil <hverkuil@xs4all.nl>,
Cohen David Abraham <david.cohen@nokia.com>
Subject: Re: [RFC] V4L2 API for flash devices
Date: Thu, 31 Mar 2011 11:50:59 +0300 [thread overview]
Message-ID: <4D944073.1080701@maxwell.research.nokia.com> (raw)
In-Reply-To: <D9FEC684-31BC-4708-B600-7228D097FD7C@gmail.com>
Kim HeungJun wrote:
> Hi Sakari,
Hi,
> 2011. 3. 30., 오후 8:37, Sakari Ailus 작성:
>
>> Kim, HeungJun wrote:
>>> Hi Sakari,
>>
>> Hi HeungJun,
>>
>>> 2011-03-29 오후 11:41, Sakari Ailus 쓴 글:
>>>> Kim, HeungJun wrote:
>>> [snip]
>>>>> I think it's not different method to turn on/off, whatever the mode name is.
>>>>> But, the mode name DEDICATED is look more reasonable, because the reason
>>>>> which is devided FLASH and TORCH in the mode, is why only power up the led,
>>>>> not sensor.
>>>>
>>>> Sensor? Is the flash part of the sensor module for you?
>>> Yes. The flash is a part of the sensor module(our case like M-5MOLS).
>>> Precisely, the sensor internal core's gpio pin is connected with
>>> external Flash LED, and the control master is the sensor internal core.
>>> For turnning on the Flash LED, we should use I2C register access.
>>> So, I think it's exactly matches with hardware strobe as you metioned.
>>
>> Ok, I think I'm lost now. :-)
>>
>> What signals are sent from sensor to flash in both torch and flash cases?
> I guess the signal probably is just continuous repetition High/Low like PWM signal,
> which is generated by the core of sensor module. Although I don't check what signal
> it is, it's very possible. Because it's the only way to be able to control intensity of Flash.
>
> So, I think the torch and flash case is the same way or signal in this case.
So... to summarise, the sensor determines the flash power by providing
the flash controller a pwm signal both in flash and torch modes, if I
understand correctly?
This sounds like a quite low level control. Is the flash controller
still an I2C device?
...
>>> So, I suggesst that, if we can not give to users(of course, this user
>>> want to use only flash function, not the camera) proper method usage
>>> (openning the videonode for using flash), let's express that the camera
>>> flash is used in the DEDICATED MODE now, as the enumeration name DEDICATED.
>>
>> No. The video nodes should not be involved since they are related to the
>> bridge (ISP) which is not needed to use the flash. Assuming that this is
>> the situation.
>>
>> This is how the use case should go:
>>
>> 1. open subdev node, e.g. /dev/v4l-subdev0, which is the flash
>> (flash controller powered on)
>> 2. VIDIOC_S_CTRL: V4L2_CID_FLASH_LED_MODE, V4L2_FLASH_LED_MODE_TORCH
>> (flash is on now)
>> 2. VIDIOC_S_CTRL: V4L2_CID_FLASH_LED_MODE, V4L2_FLASH_LED_MODE_NONE
>> (flash is off now)
>> 3. close the file handle
>> (flash controller powered off)
> Probably you mean media controller framework is based on. I get it. :)
>
>>
>>> But, I think it might be not a big issue. So, any others don't comment at this,
>>> it's ok for me to pass this naming issue.
>>>
>>> I can see this API is very cool for camera man just like me.
>>
>> Thanks!
>>
>>> plus: actually I have the one of N-series, N810. So, the omap3isp is available to
>>> activate this device, not even it's cpu is omap3? Just question.
>>
>> The N810 has OMAP 2420 which has a completely different camera bridge,
>> and there's no flash. The drivers for the camera in N810 are omap24xxcam
>> and tcm825x. The drivers are functional in mainline but the platform
>> data is missing, as well as the CBUS driver. This work is queued but
>> unknown when there's time for this.
> Thanks for plus reply. I've tested tony's patch for booting the ubuntu long time ago,
> but I'm sure this gadget is good device.
I've never tried it out with Ubuntu. Probably that 128 MiB of RAM is
slightly small for Ubuntu. ;-)
--
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com
next prev parent reply other threads:[~2011-03-31 8:49 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-28 12:55 [RFC] V4L2 API for flash devices Sakari Ailus
2011-03-29 6:49 ` Hans Verkuil
2011-03-29 9:35 ` Sakari Ailus
2011-03-29 9:54 ` Hans Verkuil
2011-03-29 11:38 ` Sakari Ailus
2011-03-29 11:51 ` Sakari Ailus
2011-03-30 8:47 ` Laurent Pinchart
2011-04-05 10:00 ` Sakari Ailus
2011-05-02 16:04 ` Sakari Ailus
2011-05-02 19:13 ` Hans Verkuil
2011-05-02 19:32 ` Laurent Pinchart
2011-05-02 20:07 ` Hans Verkuil
2011-03-30 8:55 ` Laurent Pinchart
2011-03-30 12:44 ` Sakari Ailus
2011-03-30 13:53 ` Laurent Pinchart
2011-03-30 14:18 ` Sakari Ailus
2011-03-30 14:57 ` David Cohen
2011-03-30 15:00 ` Laurent Pinchart
2011-03-31 8:09 ` Sakari Ailus
2011-03-29 10:43 ` Kim, HeungJun
2011-03-29 14:41 ` Sakari Ailus
2011-03-30 5:06 ` Kim, HeungJun
2011-03-30 11:37 ` Sakari Ailus
2011-03-30 20:37 ` Kim HeungJun
2011-03-31 8:50 ` Sakari Ailus [this message]
2011-03-30 9:34 ` Laurent Pinchart
2011-03-30 11:05 ` Sakari Ailus
2011-03-30 13:54 ` Laurent Pinchart
2011-03-31 8:17 ` Sakari Ailus
2011-04-05 10:23 ` Sakari Ailus
2011-04-05 10:39 ` Laurent Pinchart
2011-04-05 11:21 ` Sakari Ailus
2011-04-05 11:28 ` Laurent Pinchart
2011-04-05 13:35 ` Sakari Ailus
[not found] ` <4D9B303D.1000003@mm-sol.com>
2011-04-05 16:25 ` Laurent Pinchart
2011-04-05 12:11 ` David Cohen
2011-04-06 8:04 ` Sakari Ailus
2011-04-12 19:31 ` Sung Hee Park
[not found] ` <BANLkTik+xqCD7uiGUchsehoUy+gwM+Cjdg@mail.gmail.com>
2011-04-13 12:16 ` Sakari Ailus
2011-04-14 19:38 ` Laurent Pinchart
2011-04-15 5:27 ` Sakari Ailus
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=4D944073.1080701@maxwell.research.nokia.com \
--to=sakari.ailus@maxwell.research.nokia.com \
--cc=david.cohen@nokia.com \
--cc=g.liakhovetski@gmx.de \
--cc=hverkuil@xs4all.nl \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=nkanchev@mm-sol.com \
--cc=riverful.kim@samsung.com \
--cc=riverful@gmail.com \
/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