linux-stable/drivers/media
Janusz Krzysztofik 2e8029bd85 media: ov6650: Fix crop rectangle affected by set format
commit 985d2d7a48 upstream.

According to subdevice interface specification found in V4L2 API
documentation, set format pad operations should not affect image
geometry set in preceding image processing steps. Unfortunately, that
requirement is not respected by the driver implementation of set format
as it was not the case when that code was still implementing a pair of
now obsolete .s_mbus_fmt() / .try_mbus_fmt() video operations before
they have been merged and reused as an implementation of .set_fmt() pad
operation by commit 717fd5b490 ("[media] v4l2: replace try_mbus_fmt
by set_fmt").

Exclude non-compliant crop rectangle adjustments from set format try,
as well as a call to .set_selection() from set format active processing
path, so only frame scaling is applied as needed and crop rectangle is
no longer modified.

[Sakari Ailus: Rebase on subdev state patches]

Fixes: 717fd5b490 ("[media] v4l2: replace try_mbus_fmt by set_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@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-08 13:59:02 +02:00
..
cec bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
common media: saa7146: fix error logic at saa7146_vv_init() 2021-12-14 15:09:14 +01:00
dvb-core media: dvb-core: dvb_frontend: address some clang warnings 2021-11-29 10:15:04 +01:00
dvb-frontends media: media si2168: Fix spelling mistake "previsously" -> "previously" 2021-12-07 11:29:57 +01:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-09-30 10:07:54 +02:00
i2c media: ov6650: Fix crop rectangle affected by set format 2022-04-08 13:59:02 +02:00
mc bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
mmc
pci media: cx88-mpeg: clear interrupt status register before streaming video 2022-04-08 13:58:44 +02:00
platform media: imx-jpeg: fix a bug of accessing array out of bounds 2022-04-08 13:58:44 +02:00
radio media: si470x-i2c: fix possible memory leak in si470x_i2c_probe() 2021-11-30 12:00:53 +01:00
rc media: ir_toy: free before error exiting 2022-04-08 13:58:41 +02:00
spi media: cxd2880: Eliminate dead code 2021-12-07 11:29:57 +01:00
test-drivers media: vidtv: Check for null return of vzalloc 2022-04-08 13:57:51 +02:00
tuners media: si2157: add support for DVB-C Annex C 2022-01-10 15:56:50 +01:00
usb media: hdpvr: initialize dev->worker at hdpvr_register_videodev 2022-04-08 13:58:45 +02:00
v4l2-core media: v4l2-core: Initialize h264 scaling matrix 2022-04-08 13:57:48 +02:00
Kconfig media: correct MEDIA_TEST_SUPPORT help text 2021-11-15 08:12:06 +00:00
Makefile