media: ov08x40: Reduce start streaming time
authorJason Chen <jason.z.chen@intel.com>
Wed, 24 Jan 2024 14:43:01 +0000 (15:43 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 1 Feb 2024 12:45:19 +0000 (13:45 +0100)
commitfeb8831be9d468ee961289c6a275536a1ee0011c
tree59e1fea6649c62738ea9879de95eb808febdb402
parenteea8f730df15dd41341b2904748a89895f20032b
media: ov08x40: Reduce start streaming time

Because video duration involves calculating the streaming time, and i2c
communication incurs too many XTALK register settings every 4 bytes with
i2c START and STOP.

So we have opted switch to the i2c burst method.
This method involves writing the XTALK registers in the order of
the register block.

The start streaming time can be reduced from around 400ms to 150ms

[Sakari Ailus: Drop unneeded dev_dbg().]

Signed-off-by: Jason Chen <jason.z.chen@intel.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Documentation/devicetree/bindings/media/video-interfaces.yaml
arch/arm/boot/dts/ti/omap/omap3-n9.dts
drivers/media/i2c/ov08x40.c