public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [RFCv1 PATCH 0/3] Per-device-node capabilities
@ 2011-11-07 10:37 Hans Verkuil
  2011-11-07 10:37 ` [RFCv1 PATCH 1/3] V4L2: Add per-device-node capabilities Hans Verkuil
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Verkuil @ 2011-11-07 10:37 UTC (permalink / raw)
  To: linux-media

During the recent V4L-DVB workshop we discussed the meaning of the capabilities
field as returned by QUERYCAP. Historically these capabilities refer to the
capabilities of the video device as a whole, and not to the capabilities of the
filehandle through which QUERYCAP was called.

So QUERYCAP would give the same capabilities for video device nodes as it would
for vbi or radio device nodes.

For more complex devices it is very desirable to give the caps for just the
current device node.

This patch series adds this functionality to V4L2 by adding a new global
capability bit and a new device_caps field:

#define V4L2_CAP_DEVICE_CAPS            0x80000000  /* sets device capabilities field */

struct v4l2_capability {
	...
	__u32   device_caps;    /* Device node capabilities */
	...
}

It implements it for vivi and ivtv as well.

I haven't updated the documentation yet as I want to get a round of
feedback first. Especially with regards to the naming: I decided to call it
'device_caps' since for applications the term 'device' is fairly unambiguous
IMHO.

Comments?

	Hans


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-11-16 15:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07 10:37 [RFCv1 PATCH 0/3] Per-device-node capabilities Hans Verkuil
2011-11-07 10:37 ` [RFCv1 PATCH 1/3] V4L2: Add per-device-node capabilities Hans Verkuil
2011-11-07 10:37   ` [RFCv1 PATCH 2/3] vivi: set device_caps Hans Verkuil
2011-11-07 10:37   ` [RFCv1 PATCH 3/3] ivtv: setup per-device caps Hans Verkuil
2011-11-15 20:18   ` [RFCv1 PATCH 1/3] V4L2: Add per-device-node capabilities Sylwester Nawrocki
2011-11-16 14:41     ` Hans Verkuil
2011-11-16 15:36       ` Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox