2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 21:24:00 +08:00
linux-next/drivers/media
Hans Verkuil b8c601e8af media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer
ctrl_is_pointer just hardcoded two known string controls, but that
caused problems when using e.g. custom controls that use a pointer
for the payload.

Reimplement this function: it now finds the v4l2_ctrl (if the driver
uses the control framework) or it calls vidioc_query_ext_ctrl (if the
driver implements that directly).

In both cases it can now check if the control is a pointer control
or not.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: <stable@vger.kernel.org>      # for v4.15 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-01-30 07:31:33 -05:00
..
cec media: cec: move cec autorepeat handling to rc-core 2017-12-14 10:35:30 -05:00
common media: drivers/media/common/videobuf2: rename from videobuf 2018-01-23 08:05:02 -05:00
dvb-core media: dvb_demux: improve debug messages 2018-01-29 07:49:24 -05:00
dvb-frontends media: ts2020: avoid integer overflows on 32 bit machines 2018-01-29 07:46:46 -05:00
firewire media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
i2c media: i2c: ov7740: use gpio/consumer.h instead of gpio.h 2018-01-23 08:13:02 -05:00
mmc media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
pci media: intel-ipu3: cio2: fixup off-by-one bug in cio2_vb2_buf_init 2018-01-23 08:08:44 -05:00
platform media: vivid: fix module load error when enabling fb and no_error_inj=1 2018-01-30 07:18:22 -05:00
radio media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
rc media: rc: do not remove first bit if leader pulse is present 2018-01-23 07:32:38 -05:00
spi [media] gs1662: drop kfree for memory allocated with devm_kzalloc 2016-10-24 17:59:08 -02:00
tuners media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
usb media: cxusb, dib0700: ignore XC2028_I2C_FLUSH 2018-01-29 07:47:47 -05:00
v4l2-core media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer 2018-01-30 07:31:33 -05:00
Kconfig media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
media-device.c media: drop use of MEDIA_API_VERSION 2017-08-08 06:03:15 -04:00
media-devnode.c media: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
media-entity.c [media] media: Check for active and has_no_links overrun 2017-10-04 17:16:14 -03:00