]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging: rkisp1: rsz: don't ignore set format in bayer mainpath
authorHelen Koike <helen.koike@collabora.com>
Thu, 6 Feb 2020 22:07:10 +0000 (23:07 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 24 Feb 2020 16:40:17 +0000 (17:40 +0100)
commit62d1df907926238431a0f709f0864395b3d4d325
treee0842a9d42f9607bf74d281d4e4462f8d974252a
parentf6f6c4b439c7910f4e719a4ee96ca62f96edb5e2
media: staging: rkisp1: rsz: don't ignore set format in bayer mainpath

Fix issue when, in case of raw bayer format in mainpath,
VIDIOC_SUBDEV_S_FMT ioctl didn't have any effect, is wasn't updating the
format of the pad.

There is no crop for mainpath bayer raw data. Remove leftover check in
set_format, since check is already done in crop rkisp1_rsz_set_sink_crop()
function.

Fixes: 8879e185670c ("media: staging: rkisp1: add Rockchip ISP1 base driver")
Signed-off-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/rkisp1/rkisp1-resizer.c