diff options
| author | Janusz Krzysztofik <jmkrzyszt@gmail.com> | 2019-09-03 17:11:41 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-10-01 17:30:04 -0300 |
| commit | 39034bb0c26b76a2c3abc54aa28c185f18b40c2f (patch) | |
| tree | 0806d07e3b5c0c8fefbe68e83025b1a450c24efa /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 1c6a2b63095154bbf9e8f38d79487a728331bf65 (diff) | |
| download | linux-39034bb0c26b76a2c3abc54aa28c185f18b40c2f.tar.gz linux-39034bb0c26b76a2c3abc54aa28c185f18b40c2f.zip | |
media: ov6650: Fix .get_fmt() V4L2_SUBDEV_FORMAT_TRY support
Commit da298c6d98d5 ("[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: da298c6d98d5 ("[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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
