media: staging: rkisp1: rsz: fix resolution limitation on sink pad
authorHelen Koike <helen.koike@collabora.com>
Wed, 17 Jun 2020 18:08:01 +0000 (20:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:51 +0000 (08:23 +0200)
commite6a4c993ec1a941918761dc6ee322a0944d706f6
tree5b6bb0b876a55d08579e0d160135dbc9f8a497f6
parentb64c2dbbd72e3a3a8eb2620b9eded1a28ca1df5f
media: staging: rkisp1: rsz: fix resolution limitation on sink pad

[ Upstream commit 906dceb48dfa1e7c99c32e6b25878d47023e916b ]

Resizer sink pad is limited by what the ISP can generate.
The configurations describes what the resizer can produce.

This was tested on a Scarlet device with ChromiumOs, where the selfpath
receives 2592x1944 and produces 1600x1200 (which isn't possible without
this fix).

Fixes: 56e3b29f9f6b2 ("media: staging: rkisp1: add streaming paths")
Signed-off-by: Helen Koike <helen.koike@collabora.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/rkisp1/rkisp1-resizer.c