linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC/PATCH 0/3] 64-bit integer menus
@ 2011-11-24 16:12 Sakari Ailus
  2011-11-24 16:12 ` [RFC/PATCH 1/3] v4l: Introduce integer menu controls Sakari Ailus
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Sakari Ailus @ 2011-11-24 16:12 UTC (permalink / raw)
  To: linux-media; +Cc: snjw23, laurent.pinchart, hverkuil

Hi all,

This patchset, which I'm sending as RFC since it has not been really tested
(including compiling the vivi patch), adds 64-bit integer menu controls. The
control items in the integer menu are just like in regular menus but they
are 64-bit integers instead of strings.

I'm also pondering whether to assign 1 to ctrl->step for menu type controls
as well but haven't checked what may have been the original reason to
implement it as it is now implemented.

The reason why I don't use a union for qmenu and qmenu_int in
v4l2_ctrl_config is that a lot of drivers use that field in the initialiser
and GCC < 4.6 does not support initialisers with anonymous unions.

Similar union is created in v4l2_querymenu but I do not see this as a
problem since I do not expect initialisers to be used with this field in the
user space code.

Comments and questions are welcome.

Kind regards,


-- 
Sakari Ailus
e-mail: sakari.ailus@iki.fi	jabber/XMPP/Gmail: sailus@retiisi.org.uk

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

end of thread, other threads:[~2011-11-28 14:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-24 16:12 [RFC/PATCH 0/3] 64-bit integer menus Sakari Ailus
2011-11-24 16:12 ` [RFC/PATCH 1/3] v4l: Introduce integer menu controls Sakari Ailus
2011-11-25 10:28   ` Laurent Pinchart
2011-11-25 12:02     ` Sakari Ailus
2011-11-25 12:43       ` Laurent Pinchart
2011-11-25 12:56         ` Sakari Ailus
2011-11-25 12:58           ` Laurent Pinchart
2011-11-28 14:31             ` Hans Verkuil
2011-11-24 16:12 ` [RFC/PATCH 2/3] v4l: Document " Sakari Ailus
2011-11-24 23:17   ` Sylwester Nawrocki
2011-11-25  7:09     ` Sakari Ailus
2011-11-25 10:30   ` Laurent Pinchart
2011-11-25 12:02     ` Sakari Ailus
2011-11-24 16:12 ` [RFC/PATCH 3/3] vivi: Add an integer menu test control Sakari Ailus
2011-11-24 23:09 ` [RFC/PATCH 0/3] 64-bit integer menus Sylwester Nawrocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).