I’ve been struggling to get images from a Sony IMX334 sensor in the 2 frame DOL-HDR mode. I am using the argus_camera app to test it out.
I’ve already looked at the sensor driver programming guide numerous times. I’ve also stumbled upon a similar topic, DOL HDR. However, this topic has no closure.
The 2 frame DOL-HDR diagram is as shown below.
The device tree for the above configuration is as follows.
mode1 {
mclk_khz = "24000";
num_lanes = "4";
tegra_sinterface = "serial_a";
phy_mode = "DPHY";
discontinuous_clk = "yes";
dpcm_enable = "false";
cil_settletime = "0";
dynamic_pixel_bit_depth = "10";
csi_pixel_bit_depth = "10";
mode_type = "bayer_wdr_dol";
pixel_phase = "rggb";
active_w = "3872";
active_h = "4524";
readout_orientation = "0";
line_length = "5500";
inherent_gain = "1";
pix_clk_hz = "742240215";
gain_factor = "10";
min_gain_val = "0"; /* 0dB */
max_gain_val = "720"; /* 72dB */
step_gain_val = "3"; /* 0.3 */
default_gain = "0";
min_hdr_ratio = "32";
max_hdr_ratio = "32";
framerate_factor = "1000000";
min_framerate = "3000000"; /* 3.0 */
max_framerate = "30000000"; /* 30 */
step_framerate = "1";
default_framerate = "30000000";
exposure_factor = "1000000";
min_exp_time = "641"; /* us */
max_exp_time = "32429"; /* us */
step_exp_time = "1";
default_exp_time = "16512";/* us */
embedded_metadata_height = "1";
/* DOL params */
num_of_exposure = "2";
num_of_ignored_lines = "23";
num_of_lines_offset_0 = "79";
num_of_ignored_pixels = "8";
num_of_left_margin_pixels = "12";
num_of_right_margin_pixels = "12";
};
With the above settings, I always end up getting the CHANSEL_SHORT_FRAME error.
I have noticed a difference in the embedded line (EBD) in the DOL-HDR diagram; the example used in the sensor driver programming guide seems to have one EBD for both long and short frame. However, the imx334 diagram shows that EBD is used for each long and short frame. Given this difference, is my device tree correct?