summaryrefslogtreecommitdiffstats
path: root/certs
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2018-06-07 17:20:47 +0200
committerMarco Felsch <m.felsch@pengutronix.de>2019-08-19 16:09:11 +0200
commitb6a14693c13cb77d63e38f6c40c4688e6b228841 (patch)
treed89f4711544dfaf0563d7005b5b1a34211d638c2 /certs
parente31f9c70de9a929f8de6dcaa79d65ef96cfb71f0 (diff)
downloadlinux-0-day-b6a14693c13cb77d63e38f6c40c4688e6b228841.tar.gz
linux-0-day-b6a14693c13cb77d63e38f6c40c4688e6b228841.tar.xz
media: tvp5150: add FORMAT_TRY support for get/set selection handlers
Since commit 10d5509c8d50 ("[media] v4l2: remove g/s_crop from video ops") the 'which' field for set/get_selection must be FORMAT_ACTIVE. There is no way to try different selections. The patch adds a helper function to select the correct selection memory space (sub-device file handle or driver state) which will be set/returned. The selection rectangle is updated if the format is FORMAT_ACTIVE and the rectangle position and/or size differs from the current set rectangle. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> --- Changelog: v8: - adapt commit message - remove wrong FORMAT_TRY handling for tvp5150_fill_fmt() handling - return 0 during set_selection if FORMAT_TRY was requested and CONFIG_VIDEO_V4L2_SUBDEV_API is disabled - return -EINVAL during get_selection if FORMAT_TRY was requested and CONFIG_VIDEO_V4L2_SUBDEV_API is disabled v7: - __tvp5150_get_pad_crop(): return error on default case - simplify __tvp5150_get_pad_crop() error handling - tvp5150_set_selection() squash __tvp5150_set_selection() execution conditions v6: nothing v5: - handle stub for v4l2_subdev_get_try_crop() internal since commit ("media: v4l2-subdev: add stubs for v4l2_subdev_get_try_*") isn't anymore part of this series. - add error handling of __tvp5150_get_pad_crop() v4: - fix merge conflict due to rebase on top of media-tree/master - __tvp5150_get_pad_crop(): cosmetic alignment fixes
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions