lkml.org 
[lkml]   [2019]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 5.4 149/350] media: ov5640: Make 2592x1944 mode only available at 15 fps
    Date
    From: Benoit Parrot <bparrot@ti.com>

    [ Upstream commit 981e445454531c9d5ac5d3fa8c0f1bd55262d001 ]

    The sensor data sheet clearly state that 2592x1944 only works at 15 fps
    make sure we don't try to miss configure the pll out of acceptable
    range.

    Signed-off-by: Benoit Parrot <bparrot@ti.com>
    Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
    Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/media/i2c/ov5640.c | 5 +++++
    1 file changed, 5 insertions(+)

    diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c
    index 500d9bbff10b5..18dd2d717088b 100644
    --- a/drivers/media/i2c/ov5640.c
    +++ b/drivers/media/i2c/ov5640.c
    @@ -1611,6 +1611,11 @@ ov5640_find_mode(struct ov5640_dev *sensor, enum ov5640_frame_rate fr,
    !(mode->hact == 640 && mode->vact == 480))
    return NULL;

    + /* 2592x1944 only works at 15fps max */
    + if ((mode->hact == 2592 && mode->vact == 1944) &&
    + fr > OV5640_15_FPS)
    + return NULL;
    +
    return mode;
    }

    --
    2.20.1
    \
     
     \ /
      Last update: 2019-12-10 22:31    [W:4.142 / U:0.768 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site