[media] v4l2-ctrls: add support for compound types
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 12 Jun 2014 10:54:16 +0000 (07:54 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 17 Jul 2014 13:38:44 +0000 (10:38 -0300)
commitd9a2547150245f34a050f744ea46542c44792652
treeb8d20d264d795e1bd8015fe84ce6402f87990e9b
parent5082c2417841e64df975789011e182ce99a9dacd
[media] v4l2-ctrls: add support for compound types

This patch implements initial support for compound types.

The changes are fairly obvious: basic support for is_ptr types, the
type_is_int function is replaced by a is_int bitfield, and
v4l2_query_ext_ctrl is added.

Note that this patch does not yet add support for N-dimensional
arrays, that comes later. So v4l2_query_ext_ctrl just sets elems to
1 and nr_of_dims and dims[] are all zero.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-ctrls.c
include/media/v4l2-ctrls.h