]> git.baikalelectronics.ru Git - kernel.git/commit
media: ov5640: Remove frame rate check from find_mode()
authorJacopo Mondi <jacopo@jmondi.org>
Fri, 13 May 2022 14:14:06 +0000 (15:14 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 14:30:30 +0000 (15:30 +0100)
commit5e14c6a1dbc8c40f5621a80c7dc41ed36f9c4aaa
treeb39331544ecab037c05f41fb31250fb30370da28
parentdc779ac299a2b968935767549c6de633a06620ce
media: ov5640: Remove frame rate check from find_mode()

The current implementation of ov5640_find_mode() fails if the
frame rate programmed with s_frame_interval doesn't match the
maximum frame rate for the current mode.

This causes issues when moving from one mode with higher FPS to another
one which only supports a lower FPS range with tools like media-ctl.

It also forces users that do not use s_frame_interval(), but rather
configure blankings explicitly, to adjust the programmed FPS range to
avoid failures.

For this reason, remove the FPS check from ov5640_find_mode() and only
perform it at s_frame_interval() time.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov5640.c