summaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorBenoit Parrot <bparrot@ti.com>2015-09-21 18:03:21 +0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-10-01 13:43:41 +0200
commita8077734055f870ba630563868a6349671ca8dfc (patch)
tree0e52103a326681059e6def94881f381473658b46 /include/trace
parent[media] cx25821, cx88, tm6000: use SNDRV_DEFAULT_ENABLE_PNP (diff)
downloadlinux-a8077734055f870ba630563868a6349671ca8dfc.tar.xz
linux-a8077734055f870ba630563868a6349671ca8dfc.zip
[media] media: v4l2-ctrls: Fix 64bit support in get_ctrl()
When trying to use v4l2_ctrl_g_ctrl_int64() to retrieve a V4L2_CTRL_TYPE_INTEGER64 type value the internal helper function get_ctrl() would prematurely exit because for this control type the 'is_int' flag is not set. This would result in v4l2_ctrl_g_ctrl_int64 always returning 0. Also v4l2_ctrl_g_ctrl_int64() is reading and returning the 32bit value member instead of the 64bit version, so fixing that as well. This patch extends the condition check to allow the V4L2_CTRL_TYPE_INTEGER64 type to continue processing instead of exiting. Signed-off-by: Benoit Parrot <bparrot@ti.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: <stable@vger.kernel.org> # for v3.17 and up Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions