All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH/RFC 0/1] v4l: Add support for binary controls
@ 2010-03-29  9:53 Kamil Debski
  2010-03-29  9:53 ` [PATCH/RFC 1/1] " Kamil Debski
  2010-03-30  6:41 ` [PATCH/RFC 0/1] " Hans Verkuil
  0 siblings, 2 replies; 10+ messages in thread
From: Kamil Debski @ 2010-03-29  9:53 UTC (permalink / raw)
  To: linux-media; +Cc: p.osciak, k.debski, kyungmin.park


Hello,

This patch introduces new type of v4l2 control - the binary control. It
will be useful for exchanging raw binary data between the user space and
the driver/hardware.

The patch is pretty small – basically it adds a new control type.

1.  Reasons to include this new type
- Some devices require data which are not part of the stream, but there
are necessary for the device to work e.g. coefficients for transformation
matrices.
- String control is not suitable as it suggests that the data is a null
terminated string. This might be important when printing debug information -
one might output strings as they are and binary data in hex.

2. How does the binary control work
The binary control has been based on the string control. The principle of
use is the same. It uses v4l2_ext_control structure to pass the pointer and
size of the data. It is left for the driver to call the copy_from_user/
copy_to_user function to copy the data.

3. About the patch
The patch is pretty small – it basically adds a new control type. 

Best wishes,
-- 
Kamil Debski
Linux Platform Group
Samsung Poland R&D Center

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

end of thread, other threads:[~2010-03-30 15:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-29  9:53 [PATCH/RFC 0/1] v4l: Add support for binary controls Kamil Debski
2010-03-29  9:53 ` [PATCH/RFC 1/1] " Kamil Debski
2010-03-30  6:41 ` [PATCH/RFC 0/1] " Hans Verkuil
2010-03-30  8:57   ` Laurent Pinchart
2010-03-30 11:43     ` Andy Walls
2010-03-30 12:26   ` Kamil Debski
2010-03-30 13:14     ` Mauro Carvalho Chehab
2010-03-30 14:32       ` Kamil Debski
2010-03-30 15:15         ` Mauro Carvalho Chehab
2010-03-30 13:17     ` Laurent Pinchart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.