Re: [RFC] V4L2 API for flash devices

2011-05-02 Thread Hans Verkuil
On Monday, May 02, 2011 21:32:46 Laurent Pinchart wrote: > Hi Hans, > > On Monday 02 May 2011 21:13:56 Hans Verkuil wrote: > > On Monday, May 02, 2011 18:04:18 Sakari Ailus wrote: > > > Sakari Ailus wrote: > > > > Laurent Pinchart wrote: > > > >> On Tuesday 29 March 2011 13:51:38 Sakari Ailus wrot

Re: [RFC] V4L2 API for flash devices

2011-05-02 Thread Laurent Pinchart
Hi Hans, On Monday 02 May 2011 21:13:56 Hans Verkuil wrote: > On Monday, May 02, 2011 18:04:18 Sakari Ailus wrote: > > Sakari Ailus wrote: > > > Laurent Pinchart wrote: > > >> On Tuesday 29 March 2011 13:51:38 Sakari Ailus wrote: > > >>> Sakari Ailus wrote: > > Hans Verkuil wrote: > > > O

Re: [RFC] V4L2 API for flash devices

2011-05-02 Thread Hans Verkuil
On Monday, May 02, 2011 18:04:18 Sakari Ailus wrote: > Sakari Ailus wrote: > > Laurent Pinchart wrote: > >> Hi Sakari, > > > > Hi Laurent, > > Hi Hans and Laurent, > > >> On Tuesday 29 March 2011 13:51:38 Sakari Ailus wrote: > >>> Sakari Ailus wrote: > Hans Verkuil wrote: > > On Tuesday

Re: [RFC] V4L2 API for flash devices

2011-05-02 Thread Sakari Ailus
Sakari Ailus wrote: > Laurent Pinchart wrote: >> Hi Sakari, > > Hi Laurent, Hi Hans and Laurent, >> On Tuesday 29 March 2011 13:51:38 Sakari Ailus wrote: >>> Sakari Ailus wrote: Hans Verkuil wrote: > On Tuesday, March 29, 2011 11:35:19 Sakari Ailus wrote: >> Hi Hans, >> >> M

Re: [RFC] V4L2 API for flash devices

2011-04-14 Thread Sakari Ailus
Laurent Pinchart wrote: > Hi Sakari, Heippa, > On Wednesday 13 April 2011 14:16:38 Sakari Ailus wrote: >> Sung Hee Park wrote: >>> Here are two more use-cases for flash that might help inform the API >>> design. Sakari encouraged me to post these. The person writing this is >>> Andrew Adams, but

Re: [RFC] V4L2 API for flash devices

2011-04-14 Thread Laurent Pinchart
Hi Sakari, On Wednesday 13 April 2011 14:16:38 Sakari Ailus wrote: > Sung Hee Park wrote: > > Here are two more use-cases for flash that might help inform the API > > design. Sakari encouraged me to post these. The person writing this is > > Andrew Adams, but I'm sending this from Sung Hee's accou

Re: [RFC] V4L2 API for flash devices

2011-04-13 Thread Sakari Ailus
Sung Hee Park wrote: > Here are two more use-cases for flash that might help inform the API design. > Sakari encouraged me to post these. The person writing this is Andrew Adams, > but I'm sending this from Sung Hee's account, because I only just subscribed > to linux-media and can't immediately fi

Re: [RFC] V4L2 API for flash devices

2011-04-12 Thread Sung Hee Park
Here are two more use-cases for flash that might help inform the API design. Sakari encouraged me to post these. The person writing this is Andrew Adams, but I'm sending this from Sung Hee's account, because I only just subscribed to linux-media and can't immediately figure out how to reply to mess

Re: [RFC] V4L2 API for flash devices

2011-04-06 Thread Sakari Ailus
David Cohen wrote: > On Mon, Mar 28, 2011 at 3:55 PM, Sakari Ailus > wrote: >> Hi, > > Hi Sakari, Thanks for the comments, David! > [snip] > >> This is a bitmask containing the fault information for the flash. This >> assumes the proposed V4L2 bit mask controls [5]; otherwise this would >> lik

Re: [RFC] V4L2 API for flash devices

2011-04-05 Thread Laurent Pinchart
Hi Nayden, On Tuesday 05 April 2011 17:07:41 Nayden Kanchev wrote: > On 04/05/2011 04:35 PM, Sakari Ailus wrote: > > Laurent Pinchart wrote: > >> On Tuesday 05 April 2011 13:21:03 Sakari Ailus wrote: > >>> Laurent Pinchart wrote: > On Tuesday 05 April 2011 12:23:51 Sakari Ailus wrote: > >

Re: [RFC] V4L2 API for flash devices

2011-04-05 Thread Sakari Ailus
Laurent Pinchart wrote: > Hi Sakari, Hi, > On Tuesday 05 April 2011 13:21:03 Sakari Ailus wrote: >> Laurent Pinchart wrote: >>> On Tuesday 05 April 2011 12:23:51 Sakari Ailus wrote: Sakari Ailus wrote: > Laurent Pinchart wrote: >> On Wednesday 30 March 2011 13:05:54 Sakari Ailus wrot

Re: [RFC] V4L2 API for flash devices

2011-04-05 Thread David Cohen
On Mon, Mar 28, 2011 at 3:55 PM, Sakari Ailus wrote: > Hi, Hi Sakari, [snip] > This is a bitmask containing the fault information for the flash. This > assumes the proposed V4L2 bit mask controls [5]; otherwise this would > likely need to be a set of controls. > > #define V4L2_FLASH_FAULT_OVER_

Re: [RFC] V4L2 API for flash devices

2011-04-05 Thread Laurent Pinchart
Hi Sakari, On Tuesday 05 April 2011 13:21:03 Sakari Ailus wrote: > Laurent Pinchart wrote: > > On Tuesday 05 April 2011 12:23:51 Sakari Ailus wrote: > >> Sakari Ailus wrote: > >>> Laurent Pinchart wrote: > On Wednesday 30 March 2011 13:05:54 Sakari Ailus wrote: > > Laurent Pinchart wrote:

Re: [RFC] V4L2 API for flash devices

2011-04-05 Thread Sakari Ailus
Laurent Pinchart wrote: > Hi Sakari, > > On Tuesday 05 April 2011 12:23:51 Sakari Ailus wrote: >> Sakari Ailus wrote: >>> Laurent Pinchart wrote: On Wednesday 30 March 2011 13:05:54 Sakari Ailus wrote: > Laurent Pinchart wrote: >> On Monday 28 March 2011 14:55:40 Sakari Ailus wrote: >

Re: [RFC] V4L2 API for flash devices

2011-04-05 Thread Laurent Pinchart
Hi Sakari, On Tuesday 05 April 2011 12:23:51 Sakari Ailus wrote: > Sakari Ailus wrote: > > Laurent Pinchart wrote: > >> On Wednesday 30 March 2011 13:05:54 Sakari Ailus wrote: > >>> Laurent Pinchart wrote: > On Monday 28 March 2011 14:55:40 Sakari Ailus wrote: > > [snip] > >

Re: [RFC] V4L2 API for flash devices

2011-04-05 Thread Sakari Ailus
Hi Laurent, Sakari Ailus wrote: > Laurent Pinchart wrote: >> On Wednesday 30 March 2011 13:05:54 Sakari Ailus wrote: >>> Laurent Pinchart wrote: Hi Sakari, >>> >>> Hi Laurent, >>> >>> Thanks for the comments! >>> On Monday 28 March 2011 14:55:40 Sakari Ailus wrote: [snip]

Re: [RFC] V4L2 API for flash devices

2011-04-05 Thread Sakari Ailus
Laurent Pinchart wrote: > Hi Sakari, Hi Laurent, > On Tuesday 29 March 2011 13:51:38 Sakari Ailus wrote: >> Sakari Ailus wrote: >>> Hans Verkuil wrote: On Tuesday, March 29, 2011 11:35:19 Sakari Ailus wrote: > Hi Hans, > > Many thanks for the comments! >>> >>> ... >>> > It oc

Re: [RFC] V4L2 API for flash devices

2011-03-31 Thread Sakari Ailus
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

Re: [RFC] V4L2 API for flash devices

2011-03-31 Thread Sakari Ailus
Laurent Pinchart wrote: > On Wednesday 30 March 2011 13:05:54 Sakari Ailus wrote: >> Laurent Pinchart wrote: >>> Hi Sakari, >> >> Hi Laurent, >> >> Thanks for the comments! >> >>> On Monday 28 March 2011 14:55:40 Sakari Ailus wrote: >>> >>> [snip] >>> V4L2_CID_FLASH_STROBE_MODE (menu; LED)

Re: [RFC] V4L2 API for flash devices

2011-03-31 Thread Sakari Ailus
Laurent Pinchart wrote: > Hi David, Salut, > On Wednesday 30 March 2011 16:57:30 David Cohen wrote: >> On Wed, Mar 30, 2011 at 5:18 PM, Sakari Ailus wrote: On Wednesday 30 March 2011 14:44:25 Sakari Ailus wrote: ... > But as I commented in the other e-mail, there likely isn't a need to b

Re: [RFC] V4L2 API for flash devices

2011-03-30 Thread Kim HeungJun
Hi Sakari, 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

Re: [RFC] V4L2 API for flash devices

2011-03-30 Thread Laurent Pinchart
Hi David, On Wednesday 30 March 2011 16:57:30 David Cohen wrote: > On Wed, Mar 30, 2011 at 5:18 PM, Sakari Ailus wrote: > >> On Wednesday 30 March 2011 14:44:25 Sakari Ailus wrote: > >>> Laurent Pinchart wrote: > On Tuesday 29 March 2011 11:35:19 Sakari Ailus wrote: > > Hans Verkuil wrote

Re: [RFC] V4L2 API for flash devices

2011-03-30 Thread David Cohen
On Wed, Mar 30, 2011 at 5:18 PM, Sakari Ailus wrote: > Laurent Pinchart wrote: >> Hi Sakari, > > Heippa, Hello, My 2 cents below. > >> On Wednesday 30 March 2011 14:44:25 Sakari Ailus wrote: >>> Laurent Pinchart wrote: On Tuesday 29 March 2011 11:35:19 Sakari Ailus wrote: > Hans Verkui

Re: [RFC] V4L2 API for flash devices

2011-03-30 Thread Sakari Ailus
Laurent Pinchart wrote: > Hi Sakari, Heippa, > On Wednesday 30 March 2011 14:44:25 Sakari Ailus wrote: >> Laurent Pinchart wrote: >>> On Tuesday 29 March 2011 11:35:19 Sakari Ailus wrote: Hans Verkuil wrote: > On Monday, March 28, 2011 14:55:40 Sakari Ailus wrote: >>> [snip] >>> >>

Re: [RFC] V4L2 API for flash devices

2011-03-30 Thread Laurent Pinchart
On Wednesday 30 March 2011 13:05:54 Sakari Ailus wrote: > Laurent Pinchart wrote: > > Hi Sakari, > > Hi Laurent, > > Thanks for the comments! > > > On Monday 28 March 2011 14:55:40 Sakari Ailus wrote: > > > > [snip] > > > >>V4L2_CID_FLASH_STROBE_MODE (menu; LED) > >> > >> Use hardware or

Re: [RFC] V4L2 API for flash devices

2011-03-30 Thread Laurent Pinchart
Hi Sakari, On Wednesday 30 March 2011 14:44:25 Sakari Ailus wrote: > Laurent Pinchart wrote: > > On Tuesday 29 March 2011 11:35:19 Sakari Ailus wrote: > >> Hans Verkuil wrote: > >>> On Monday, March 28, 2011 14:55:40 Sakari Ailus wrote: > > [snip] > > > V4L2_CID_FLASH_TIMEOUT (integer; LED)

Re: [RFC] V4L2 API for flash devices

2011-03-30 Thread Sakari Ailus
Laurent Pinchart wrote: > Hi Sakari, Hi Laurent, > On Tuesday 29 March 2011 11:35:19 Sakari Ailus wrote: >> Hans Verkuil wrote: >>> On Monday, March 28, 2011 14:55:40 Sakari Ailus wrote: > > [snip] > V4L2_CID_FLASH_TIMEOUT (integer; LED) The flash controller provides timeout f

Re: [RFC] V4L2 API for flash devices

2011-03-30 Thread 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 devi

Re: [RFC] V4L2 API for flash devices

2011-03-30 Thread Sakari Ailus
Laurent Pinchart wrote: > Hi Sakari, Hi Laurent, Thanks for the comments! > On Monday 28 March 2011 14:55:40 Sakari Ailus wrote: > > [snip] > >> V4L2_CID_FLASH_STROBE_MODE (menu; LED) >> >> Use hardware or software strobe. If hardware strobe is selected, the >> flash controller is a slave

Re: [RFC] V4L2 API for flash devices

2011-03-30 Thread Laurent Pinchart
Hi Sakari, On Monday 28 March 2011 14:55:40 Sakari Ailus wrote: [snip] > V4L2_CID_FLASH_STROBE_MODE (menu; LED) > > Use hardware or software strobe. If hardware strobe is selected, the > flash controller is a slave in the system where the sensor produces the > strobe signal to the flash.

Re: [RFC] V4L2 API for flash devices

2011-03-30 Thread Laurent Pinchart
Hi Sakari, On Tuesday 29 March 2011 11:35:19 Sakari Ailus wrote: > Hans Verkuil wrote: > > On Monday, March 28, 2011 14:55:40 Sakari Ailus wrote: [snip] > >>V4L2_CID_FLASH_TIMEOUT (integer; LED) > >> > >> The flash controller provides timeout functionality to shut down the led > >> in case

Re: [RFC] V4L2 API for flash devices

2011-03-30 Thread Laurent Pinchart
Hi Sakari, On Tuesday 29 March 2011 13:51:38 Sakari Ailus wrote: > Sakari Ailus wrote: > > Hans Verkuil wrote: > >> On Tuesday, March 29, 2011 11:35:19 Sakari Ailus wrote: > >>> Hi Hans, > >>> > >>> Many thanks for the comments! > > > > ... > > > >>> It occurred to me that an application might

Re: [RFC] V4L2 API for flash devices

2011-03-29 Thread Kim, HeungJun
Hi Sakari, 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

Re: [RFC] V4L2 API for flash devices

2011-03-29 Thread Sakari Ailus
Kim, HeungJun wrote: > Hi Sakari, Hi HeungJun, Thanks for the comments! > Here's my humble opinions about this RFC. > Almost, this control may be also applied immediately in our case. > But, I have some opinions about that. > So, read comments plz and I wish this might be help to it. > > 2011-0

Re: [RFC] V4L2 API for flash devices

2011-03-29 Thread Sakari Ailus
Sakari Ailus wrote: > Hans Verkuil wrote: >> On Tuesday, March 29, 2011 11:35:19 Sakari Ailus wrote: >>> Hi Hans, >>> >>> Many thanks for the comments! >>> > > ... > >>> It occurred to me that an application might want to turn off a flash >>> which has been strobed on software. That can't be done

Re: [RFC] V4L2 API for flash devices

2011-03-29 Thread Sakari Ailus
Hans Verkuil wrote: > On Tuesday, March 29, 2011 11:35:19 Sakari Ailus wrote: >> Hi Hans, >> >> Many thanks for the comments! >> ... >> It occurred to me that an application might want to turn off a flash >> which has been strobed on software. That can't be done on a single >> button control. >>

Re: [RFC] V4L2 API for flash devices

2011-03-29 Thread Kim, HeungJun
Hi Sakari, Here's my humble opinions about this RFC. Almost, this control may be also applied immediately in our case. But, I have some opinions about that. So, read comments plz and I wish this might be help to it. 2011-03-28 오후 9:55, Sakari Ailus 쓴 글: > Hi, > > This is a proposal for an interf

Re: [RFC] V4L2 API for flash devices

2011-03-29 Thread Hans Verkuil
On Tuesday, March 29, 2011 11:35:19 Sakari Ailus wrote: > Hi Hans, > > Many thanks for the comments! > > Hans Verkuil wrote: > > On Monday, March 28, 2011 14:55:40 Sakari Ailus wrote: > >> Hi, > >> > >> This is a proposal for an interface for controlling flash devices on the > >> V4L2/v4l2_subdev

Re: [RFC] V4L2 API for flash devices

2011-03-29 Thread Sakari Ailus
Hi Hans, Many thanks for the comments! Hans Verkuil wrote: > On Monday, March 28, 2011 14:55:40 Sakari Ailus wrote: >> Hi, >> >> This is a proposal for an interface for controlling flash devices on the >> V4L2/v4l2_subdev APIs. My plan is to use the interface in the ADP1653 >> driver, the flash c

Re: [RFC] V4L2 API for flash devices

2011-03-28 Thread Hans Verkuil
On Monday, March 28, 2011 14:55:40 Sakari Ailus wrote: > Hi, > > This is a proposal for an interface for controlling flash devices on the > V4L2/v4l2_subdev APIs. My plan is to use the interface in the ADP1653 > driver, the flash controller used in the Nokia N900. > > Comments and questions are v

[RFC] V4L2 API for flash devices

2011-03-28 Thread Sakari Ailus
Hi, This is a proposal for an interface for controlling flash devices on the V4L2/v4l2_subdev APIs. My plan is to use the interface in the ADP1653 driver, the flash controller used in the Nokia N900. Comments and questions are very, very welcome! Scope = This RFC is focused mostly on the A