]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: imx274: fix frame interval handling
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 3 Jul 2020 09:20:32 +0000 (11:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:08:40 +0000 (11:08 +0100)
commit4550a7f409cbc13ce220f606440457f327ba6cd7
tree301a73d88d5f5a52cf90bef0717e488eac351940
parent7ed97d8cdad8ef27846b394ba0969c508cbc4cc7
media: imx274: fix frame interval handling

[ Upstream commit 49b20d981d723fae5a93843c617af2b2c23611ec ]

1) the numerator and/or denominator might be 0, in that case
   fall back to the default frame interval. This is per the spec
   and this caused a v4l2-compliance failure.

2) the updated frame interval wasn't returned in the s_frame_interval
   subdev op.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/imx274.c