media: ov08x40: Reduce start streaming time
authorJason Chen <jason.z.chen@intel.com>
Wed, 24 Jan 2024 14:43:01 +0000 (15:43 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 6 Feb 2024 13:01:38 +0000 (14:01 +0100)
commit8f667d2023844f3a2631c686f970b2f04c7fe7ec
tree949d6b38733d8da51c8ed47e680bfc193fb9344c
parentb83e2a91426ae4ee545e93a7dd61f03c3b5a417c
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: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ov08x40.c