summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/mt9v111.c
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2020-03-12 11:31:48 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-03-12 16:38:21 +0100
commit46fe6e7dcededcf4aba88163fee80f4f7df23deb (patch)
treeca7b5a38fed5ad5f8bcbd5df1b63510f47db47d2 /drivers/media/i2c/mt9v111.c
parentb4125e5b1bd70d3d9c22f8926e99c87967d71734 (diff)
downloadlinux-46fe6e7dcededcf4aba88163fee80f4f7df23deb.tar.gz
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> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/i2c/mt9v111.c')
0 files changed, 0 insertions, 0 deletions