linux/drivers/media
Ricardo Ribalda Delgado 5a11b8458b media: v4l2-ctrl: Fix flags field on Control events
commit 9cac9d2fb2 upstream.

VIDIOC_DQEVENT and VIDIOC_QUERY_EXT_CTRL should give the same output for
the control flags field.

This patch creates a new function user_flags(), that calculates the user
exported flags value (which is different than the kernel internal flags
structure). This function is then used by all the code that exports the
internal flags to userspace.

Reported-by: Dimitrios Katsaros <patcherwork@gmail.com>
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-30 08:37:25 +00:00
..
common [media] saa7146: use swap() in sort_and_eliminate() 2015-07-06 08:25:49 -03:00
dvb-core media: dvb_ringbuffer: Add memory barriers 2016-08-20 18:09:18 +02:00
dvb-frontends dvb-frontends/cxd2841er: define symbol_rate_min/max in T/C fe-ops 2017-05-25 14:30:14 +02:00
firewire [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
i2c adv7604: Initialize drive strength to default when using DT 2017-11-15 17:13:09 +01:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci bt8xx: fix memory leak 2017-11-08 10:06:30 +01:00
platform exynos4-is: fimc-is: Unmap region obtained by of_iomap() 2017-11-08 10:06:30 +01:00
radio [media] radio: Drop owner assignment from i2c_driver 2015-08-11 13:01:08 -03:00
rc media: rc: check for integer overflow 2017-11-30 08:37:24 +00:00
tuners xc2028: Fix use-after-free bug properly 2017-05-25 14:30:15 +02:00
usb cx231xx-cards: fix NULL-deref on missing association descriptor 2017-11-30 08:37:25 +00:00
v4l2-core media: v4l2-ctrl: Fix flags field on Control events 2017-11-30 08:37:25 +00:00
Kconfig media updates for v4.2-rc1 2015-06-25 17:55:48 -07:00
Makefile [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal 2014-12-16 23:21:44 -02:00
media-device.c
media-devnode.c
media-entity.c [media] media-entity.c: get rid of var length arrays 2015-10-01 18:10:05 -03:00