ret = fimc_is_sensor_write16(client, 0x380e, frame_length_lines);
if (ret < 0)
goto p_err;
- ret = fimc_is_sensor_write8(client, 0x3826, ((frame_length_lines * 2 - 4) & 0xFF00) >> 8);
- if (ret < 0)
- goto p_err;
- ret = fimc_is_sensor_write8(client, 0x3827, (frame_length_lines * 2 - 4) & 0xFF);
- if (ret < 0)
- goto p_err;
+ if(cis_data->dual_sync_enable)
+ {
+ ret = fimc_is_sensor_write8(client, 0x3826, ((frame_length_lines * 2 - 4) & 0xFF00) >> 8);
+ if (ret < 0)
+ goto p_err;
+ ret = fimc_is_sensor_write8(client, 0x3827, (frame_length_lines * 2 - 4) & 0xFF);
+ if (ret < 0)
+ goto p_err;
+ }
cis_data->cur_frame_us_time = frame_duration;
cis_data->frame_length_lines = frame_length_lines;