Re: v4l2 device property framework in userspace

2011-06-06 Thread Sakari Ailus
On Tue, May 31, 2011 at 01:33:32PM +0200, Martin Strubel wrote: > Hi, Hi Martin, > > > > Not religion, it's experience. I understand what you want to do and it is > > just a bad idea in the long term. Mind you, it's great for prototyping and > > experimentation. But if you want to get stable sen

Re: v4l2 device property framework in userspace

2011-05-31 Thread Mauro Carvalho Chehab
Hi Martin, Em 31-05-2011 08:33, Martin Strubel escreveu: > Hi, > >> >> Not religion, it's experience. I understand what you want to do and it is >> just a bad idea in the long term. Mind you, it's great for prototyping and >> experimentation. But if you want to get stable sensor support in the ke

Re: v4l2 device property framework in userspace

2011-05-31 Thread Martin Strubel
Hi, > > Not religion, it's experience. I understand what you want to do and it is > just a bad idea in the long term. Mind you, it's great for prototyping and > experimentation. But if you want to get stable sensor support in the kernel, > then it has to conform to the rules. Having some sensor d

Re: v4l2 device property framework in userspace

2011-05-31 Thread Hans Verkuil
On Tuesday, May 31, 2011 10:27:38 Martin Strubel wrote: > > > > > Userspace tells the driver what it should do and the driver decides how to > > do it. > > That's how it works. > > Sounds a little religious. Not sure if you've been listening.. Not religion, it's experience. I understand what y

Re: v4l2 device property framework in userspace

2011-05-31 Thread Martin Strubel
> > Userspace tells the driver what it should do and the driver decides how to do > it. > That's how it works. Sounds a little religious. Not sure if you've been listening.. > >> And for us it is even more reusable, because we can run the >> same thing on a standalone 'OS' (no OS really) and

Re: v4l2 device property framework in userspace

2011-05-31 Thread Hans Verkuil
On Monday, May 30, 2011 15:30:23 Martin Strubel wrote: > Hi, > > > > > The XML is basically just a dump of all the sensor registers, right? > > > > There are two sections: The register tables, and the property wrappers. > Property wrappers don't have to necessarily link to registers, but > that

Re: v4l2 device property framework in userspace

2011-05-30 Thread Kim, HeungJun
Hi Martin, I'm not an expert of V4L2 and this camera sensor, too. But, if you don't mind, I want to leave some comments about the registers, and I hope that it helps you. 2011-05-30 오후 9:07, Martin Strubel 쓴 글: > Hi Hans, > >> >> Can you give examples of the sort of things that are in those regi

Re: v4l2 device property framework in userspace

2011-05-30 Thread Martin Strubel
Hi, > > The XML is basically just a dump of all the sensor registers, right? > There are two sections: The register tables, and the property wrappers. Property wrappers don't have to necessarily link to registers, but that's covered in the docs. > So you are not talking about 'properties', but

Re: v4l2 device property framework in userspace

2011-05-30 Thread Hans Verkuil
> Hi Hans, > >> >> Can you give examples of the sort of things that are in those registers? >> Is that XML file available somewhere? Are there public datasheets? >> > > If you mean the sensor datasheets, many of them are buried behind NDAs, > but people are writing opensourced headers too...let's l

Re: v4l2 device property framework in userspace

2011-05-30 Thread Martin Strubel
Hi Hans, > > Can you give examples of the sort of things that are in those registers? > Is that XML file available somewhere? Are there public datasheets? > If you mean the sensor datasheets, many of them are buried behind NDAs, but people are writing opensourced headers too...let's leave this

Re: v4l2 device property framework in userspace

2011-05-30 Thread Hans Verkuil
> Hi, > >> >> Yes. As long as the sensors are implemented as sub-devices (see >> Documentation/video4linux/v4l2-framework.txt) then you can add lots of >> custom >> controls to those subdevs that can be exposed to userspace. Writing >> directly >> to sensor registers from userspace is a no-go. If d

Re: v4l2 device property framework in userspace

2011-05-30 Thread Martin Strubel
Hi, > > Yes. As long as the sensors are implemented as sub-devices (see > Documentation/video4linux/v4l2-framework.txt) then you can add lots of custom > controls to those subdevs that can be exposed to userspace. Writing directly > to sensor registers from userspace is a no-go. If done correctly

Re: v4l2 device property framework in userspace

2011-05-30 Thread Hans Verkuil
On Sunday, May 29, 2011 15:07:00 Martin Strubel wrote: > Hello, > > I was wondering if it makes sense to raise a discussion about a few > aspects listed below - my apology, if this might be old coffee, I > haven't been following this list for long. > > Since older kernels didn't have the matching