]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging: media: zoran: fix TRY_FMT handling
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 14 Dec 2021 16:16:34 +0000 (17:16 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 23 Jan 2022 20:18:40 +0000 (21:18 +0100)
commit29941fb4ad7f8222702183a13629e0e80c615192
tree7bad946488d14193ada4383b6dca839962f68049
parent187f86f5cd19c967f80ae36e90d9b6661a42a749
media: staging: media: zoran: fix TRY_FMT handling

TRY_FMT must not set actual capture values (zr->buffer_size in
this case), since it is a 'try' only.

zoran_try_fmt_vid_cap() also didn't fill in fmt->fmt.pix.bytesperline
and fmt->fmt.pix.sizeimage correctly.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/zoran/zoran_driver.c