Hans Verkuil
f1b572d346
media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer
...
commit b8c601e8af2d08f733d74defa8465303391bb930 upstream.
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-16 20:23:01 +01:00
..
2017-11-02 11:10:55 +01:00
2018-02-03 17:38:59 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:22 +01:00
2018-02-16 20:22:59 +01:00
2017-12-14 09:53:13 +01:00
2018-02-07 11:12:20 -08:00
2018-01-17 09:45:27 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:00 +01:00
2017-12-25 14:26:27 +01:00
2018-01-10 09:31:19 +01:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:49 +01:00
2017-12-29 17:53:48 +01:00
2017-12-10 13:40:41 +01:00
2018-02-16 20:22:43 +01:00
2017-12-25 14:26:30 +01:00
2018-02-16 20:23:00 +01:00
2017-12-20 10:10:34 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-16 20:22:43 +01:00
2017-12-10 13:40:44 +01:00
2017-12-10 13:40:41 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-16 20:22:56 +01:00
2017-11-02 11:10:55 +01:00
2018-02-07 11:12:26 -08:00
2018-02-03 17:38:52 +01:00
2018-02-16 20:22:45 +01:00
2018-02-03 17:38:51 +01:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:20 +01:00
2018-02-03 17:39:09 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:07 +01:00
2017-12-17 15:08:00 +01:00
2017-11-04 15:01:50 +01:00
2018-02-07 11:12:20 -08:00
2018-01-31 14:03:46 +01:00
2018-02-03 17:39:24 +01:00
2018-01-10 09:31:21 +01:00
2017-12-14 09:53:05 +01:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:27 +01:00
2017-12-20 10:10:38 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:53:12 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:01 +01:00
2018-02-16 20:23:01 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:46 +01:00
2018-02-03 17:39:22 +01:00
2018-01-23 19:58:13 +01:00
2018-02-16 20:22:57 +01:00
2018-01-17 09:45:27 +01:00
2018-02-13 10:19:48 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:49 +01:00
2018-02-03 17:39:10 +01:00
2017-11-02 11:10:55 +01:00
2018-02-13 10:19:46 +01:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:47 +01:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:47 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-23 19:58:16 +01:00
2018-02-07 11:12:20 -08:00
2018-01-17 09:45:18 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:38:51 +01:00
2017-09-08 18:26:51 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:53:08 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 10:04:46 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-20 10:10:29 +01:00
2018-01-05 15:48:59 +01:00
2018-02-03 17:38:59 +01:00
2017-11-02 11:10:55 +01:00
2018-02-13 10:19:49 +01:00
2017-11-02 11:10:55 +01:00
2017-12-20 10:10:34 +01:00
2018-02-03 17:39:23 +01:00
2017-11-02 11:10:55 +01:00
2018-02-16 20:23:00 +01:00
2018-01-02 20:31:05 +01:00
2017-12-25 14:26:24 +01:00
2017-12-25 14:26:31 +01:00
2017-12-20 10:10:24 +01:00
2018-02-07 11:12:26 -08:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:21 +01:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:29 +01:00
2018-02-13 10:19:47 +01:00
2017-12-25 14:26:24 +01:00
2017-12-14 09:52:48 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-16 20:22:44 +01:00
2017-11-02 10:04:46 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00