]> git.karo-electronics.de Git - linux-beck.git/commit
[media] v4l2-ctrls: arrays are also considered compound controls
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 21 Sep 2015 09:14:16 +0000 (06:14 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 1 Oct 2015 11:30:25 +0000 (08:30 -0300)
commit35204e2e84f2dae72012f8ca319659c12f428430
tree0c5187fb9613addffda6d3c539537583769ffea0
parent5ba0e2c3ad4c049b19f6cad7ec62e59424a55183
[media] v4l2-ctrls: arrays are also considered compound controls

Array controls weren't skipped when only V4L2_CTRL_FLAG_NEXT_CTRL was
provided (so no V4L2_CTRL_FLAG_NEXT_COMPOUND was set). This is wrong
since arrays are also considered compound controls (i.e. with more than
one value), and applications that do not know about arrays will not
be able to handle such controls.

Fix the test to include arrays.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Cc: <stable@vger.kernel.org> # for v3.17 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-ctrls.c