2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 13:13:57 +08:00
linux-next/drivers/media/i2c/cx25840
Maciej S. Szmigiero 65efeca0a6 media: cx25840: set_fmt operation should clamp out-of-range picture sizes
According to V4L2 API set_fmt subdev operation should not return an error
on out-of-range picture sizes, the values should be clamped instead to the
supported range.

The cx25840 datasheet says that the chip is capable of scaling down the
picture width and height, respectively, 16 and 8 times.
These values agree with what the old implementation enforced.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-05-28 15:56:44 -04:00
..
cx25840-audio.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx25840-core.c media: cx25840: set_fmt operation should clamp out-of-range picture sizes 2019-05-28 15:56:44 -04:00
cx25840-core.h media: cx25840: add pin to pad mapping and output format configuration 2019-05-28 15:55:28 -04:00
cx25840-firmware.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx25840-ir.c media: i2c: fix several typos 2019-03-01 09:29:58 -05:00
cx25840-vbi.c media: cx25840: add pin to pad mapping and output format configuration 2019-05-28 15:55:28 -04:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00