diff options
author | Eugen Hristev <eugen.hristev@microchip.com> | 2019-11-25 09:32:54 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2019-12-16 10:16:25 +0100 |
commit | 374d968ac7440d128f93128e7f13f2ab035b0dcc (patch) | |
tree | c3f6bb75de3baeb0ba9d6215e7305d458ee08307 /drivers/media/platform/vimc/vimc-scaler.c | |
parent | da3a55b5a948e0226c2811d001df40c8ba6b4ac1 (diff) | |
download | linux-374d968ac7440d128f93128e7f13f2ab035b0dcc.tar.gz linux-374d968ac7440d128f93128e7f13f2ab035b0dcc.tar.bz2 linux-374d968ac7440d128f93128e7f13f2ab035b0dcc.zip |
media: atmel: atmel-isc-base: initialize the try_crop for the pads in try_fmt
When requesting format from sensor, some sensors call the
subdev_get_try_crop which for ISC was not properly initialized, and this
causes errors in determining proper image resolutions.
To accommodate for this, when trying a format (in try_fmt), first attempt
to obtain the framesize for this format from sensor.
In case this fails, use the maximum ISC width/height as try_crop, otherwise
provide the first size height/width from the sensor.
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
[hverkuil-cisco@xs4all.nl: changed {0} to {}]
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-scaler.c')
0 files changed, 0 insertions, 0 deletions