OSDN Git Service

media: atomisp: ov2680: Make setting the modes algorithm based
authorHans de Goede <hdegoede@redhat.com>
Sun, 1 Jan 2023 17:08:42 +0000 (18:08 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 07:24:33 +0000 (08:24 +0100)
commit0611888592df86c3f348146dc26d4b00f850e194
treec77beedaca150ca8b74ed1be3ac7bc0c2e757889
parent1c08b2faa88fbcf813a700120ffe89bc2c8c567c
media: atomisp: ov2680: Make setting the modes algorithm based

Instead of using a long fixed register settings list for each resolution,
calculate the register settings based on the requested width + height.

This will allow future enhancements like adding hblank and vblank controls
and adding selection support.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-ov2680.c
drivers/staging/media/atomisp/i2c/ov2680.h