Janusz Krzysztofik
a0a3fb1e90
media: ov6650: Fix .get_fmt() V4L2_SUBDEV_FORMAT_TRY support
...
commit 39034bb0c2 upstream.
Commit da298c6d98 ("[media] v4l2: replace video op g_mbus_fmt by pad
op get_fmt") converted a former ov6650_g_fmt() video operation callback
to an ov6650_get_fmt() pad operation callback. However, the converted
function disregards a format->which flag that pad operations should
obey and always returns active frame format settings.
That can be fixed by always responding to V4L2_SUBDEV_FORMAT_TRY with
-EINVAL, or providing the response from a pad config argument, likely
updated by a former user call to V4L2_SUBDEV_FORMAT_TRY .set_fmt().
Since implementation of the latter is trivial, go for it.
Fixes: da298c6d98 ("[media] v4l2: replace video op g_mbus_fmt by pad op get_fmt")
Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com >
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com >
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-01-17 19:47:10 +01:00
..
2019-11-24 08:20:13 +01:00
2018-07-04 09:38:49 -04:00
2018-07-25 08:04:00 -04:00
2017-11-30 04:18:55 -05:00
2018-03-07 05:55:05 -05:00
2019-12-31 16:35:25 +01:00
2018-06-28 09:22:57 -04:00
2017-06-08 12:34:17 -03:00
2019-02-12 19:47:02 +01:00
2017-01-27 11:38:09 -02:00
2017-01-30 15:47:05 -02:00
2017-01-27 11:38:09 -02:00
2018-07-27 08:04:04 -04:00
2017-02-27 18:43:46 -08:00
2017-01-27 11:38:09 -02:00
2014-09-21 20:12:13 -03:00
2018-01-04 13:12:01 -05:00
2012-08-15 16:42:14 -03:00
2018-01-04 13:12:01 -05:00
2019-07-26 09:14:10 +02:00
2019-09-16 08:21:46 +02:00
2019-09-16 08:21:46 +02:00
2017-02-03 09:33:55 -02:00
2018-07-04 07:13:34 -04:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2016-12-24 11:46:01 -08:00
2017-01-27 11:38:09 -02:00
2016-09-06 16:21:24 -03:00
2017-01-27 11:38:09 -02:00
2019-11-24 08:20:39 +01:00
2019-11-24 08:20:40 +01:00
2018-06-27 09:49:11 -04:00
2019-01-09 17:38:47 +01:00
2018-05-04 08:22:36 -04:00
2019-09-16 08:22:10 +02:00
2018-01-04 13:15:05 -05:00
2017-01-27 11:38:09 -02:00
2018-06-28 07:10:01 -04:00
2016-01-11 12:19:03 -02:00
2017-01-27 11:38:09 -02:00
2019-07-26 09:14:10 +02:00
2018-06-15 18:10:41 -03:00
2017-06-20 07:02:43 -03:00
2017-02-03 09:34:43 -02:00
2017-01-27 11:38:09 -02:00
2017-11-02 11:10:55 +01:00
2018-03-26 11:13:09 +02:00
2018-07-25 08:04:00 -04:00
2019-04-05 22:33:14 +02:00
2018-07-25 08:04:00 -04:00
2018-07-25 08:04:00 -04:00
2018-03-21 15:29:07 -04:00
2018-02-22 12:27:35 -05:00
2018-07-25 08:04:00 -04:00
2018-09-12 06:44:01 -04:00
2017-02-03 09:23:19 -02:00
2019-11-20 18:45:46 +01:00
2018-05-17 06:22:08 -04:00
2019-12-31 16:34:51 +01:00
2019-11-20 18:47:53 +01:00
2019-11-20 18:45:46 +01:00
2019-11-24 08:20:25 +01:00
2019-10-05 13:09:42 +02:00
2017-11-30 04:19:03 -05:00
2019-11-20 18:45:46 +01:00
2019-11-20 18:45:46 +01:00
2020-01-17 19:47:10 +01:00
2018-05-17 06:22:08 -04:00
2017-01-27 11:38:09 -02:00
2019-05-08 07:21:55 +02:00
2019-11-20 18:45:46 +01:00
2019-10-05 13:09:50 +02:00
2019-12-01 09:17:18 +01:00
2018-06-28 07:27:11 -04:00
2016-09-06 16:21:24 -03:00
2018-06-12 16:19:22 -07:00
2017-11-30 04:18:57 -05:00
2017-11-30 04:18:58 -05:00
2018-05-04 06:21:06 -04:00
2018-01-04 13:15:05 -05:00
2018-02-15 13:11:48 -05:00
2018-01-04 13:15:05 -05:00
2017-01-27 11:38:09 -02:00
2018-05-04 06:21:06 -04:00
2018-01-04 13:15:05 -05:00
2017-01-27 11:38:09 -02:00
2016-10-21 15:15:06 -02:00
2014-12-23 11:29:01 -02:00
2017-01-27 11:38:09 -02:00
2018-03-06 08:20:22 -05:00
2018-02-14 13:16:31 -05:00
2019-09-16 08:21:46 +02:00
2018-02-22 12:53:32 -05:00
2018-07-25 07:49:28 -04:00
2018-05-04 06:21:06 -04:00
2018-03-23 07:48:08 -04:00
2015-08-11 13:00:15 -03:00
2017-11-02 11:10:55 +01:00
2015-08-11 13:00:15 -03:00
2017-11-02 11:10:55 +01:00
2018-01-04 13:15:05 -05:00
2013-06-17 09:52:31 -03:00
2019-02-12 19:47:02 +01:00
2017-01-27 11:38:09 -02:00
2018-03-23 06:54:32 -04:00
2017-01-27 11:38:09 -02:00
2018-07-25 07:52:42 -04:00
2018-05-04 06:21:06 -04:00
2019-10-01 08:26:05 +02:00
2018-05-04 06:21:06 -04:00
2018-07-25 07:52:42 -04:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2018-03-06 11:57:16 -05:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2019-02-12 19:47:01 +01:00
2017-01-27 11:38:09 -02:00
2018-01-04 13:15:05 -05:00
2017-01-27 11:38:09 -02:00
2018-07-27 08:11:57 -04:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00