You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/10/25 19:57:37 UTC
[incubator-nuttx] 05/08: drivers/video/isx019: Increase waiting time for HW initialization
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit d57324473e12736f954abac1c318793fe6d28dc9
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Mon Oct 24 22:38:24 2022 +0900
drivers/video/isx019: Increase waiting time for HW initialization
---
drivers/video/isx019.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/video/isx019.c b/drivers/video/isx019.c
index 64a0b7e8c5..c6463d2b07 100644
--- a/drivers/video/isx019.c
+++ b/drivers/video/isx019.c
@@ -46,8 +46,9 @@
/* Wait time on power on sequence. */
-#define TRANSITION_TIME_TO_STARTUP (120 * USEC_PER_MSEC) /* unit : usec */
-#define TRANSITION_TIME_TO_STREAMING (30 * USEC_PER_MSEC) /* unit : usec */
+#define TRANSITION_TIME_TO_STARTUP (130 * USEC_PER_MSEC) /* unit : usec */
+#define TRANSITION_TIME_TO_STREAMING (40 * USEC_PER_MSEC) /* unit : usec */
+#define DELAY_TIME_JPEGDQT_SWAP (35 * USEC_PER_MSEC) /* unit : usec */
/* For get_supported_value() I/F */
@@ -2529,6 +2530,10 @@ static int set_jpg_quality(imgsensor_value_t val)
set_dqt(FPGA_DQT_CHROMA, FPGA_DQT_CALC_DATA, c_calc);
fpga_activate_setting();
+ /* Wait for swap of non-active side and active side. */
+
+ nxsig_usleep(DELAY_TIME_JPEGDQT_SWAP);
+
/* Update non-active side in preparation for other activation trigger. */
set_dqt(FPGA_DQT_LUMA, FPGA_DQT_DATA, y_head);