vc_mipi_nvidia icon indicating copy to clipboard operation
vc_mipi_nvidia copied to clipboard

Initial values of V4L controls wrong

Open hesmar opened this issue 1 year ago • 0 comments

v4l2-ctl --list-ctrls displays wrong values after boot:

Camera Controls

                     group_hold 0x009a2003 (bool)   : default=0 value=0 flags=execute-on-write
                    sensor_mode 0x009a2008 (int64)  : min=0 max=1 step=1 default=0 value=0 flags=slider
                           gain 0x009a2009 (int64)  : min=0 max=51000 step=50 default=0 value=0 flags=slider
                       exposure 0x009a200a (int64)  : min=1 max=1000000 step=1 default=10000 value=1 flags=slider
                     frame_rate 0x009a200b (int64)  : min=1000 max=40000 step=100 default=40000 value=1000 flags=slider
                   trigger_mode 0x009a200e (int)    : min=0 max=7 step=1 default=0 value=0
                        io_mode 0x009a200f (int)    : min=0 max=5 step=1 default=0 value=0
                    black_level 0x009a2010 (int)    : min=0 max=2147483647 step=1 default=0 value=0 flags=slider
                 single_trigger 0x009a2011 (button) : flags=write-only, execute-on-write
                    bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=0
                override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=0
                   height_align 0x009a2066 (int)    : min=1 max=16 step=1 default=1 value=1
                     size_align 0x009a2067 (intmenu): min=0 max=2 default=0 value=0
               write_isp_format 0x009a2068 (bool)   : default=0 value=0
       sensor_signal_properties 0x009a2069 (u32)    : min=0 max=4294967295 step=1 default=0 [30][18] flags=read-only, has-payload
        sensor_image_properties 0x009a206a (u32)    : min=0 max=4294967295 step=1 default=0 [30][18] flags=read-only, has-payload
      sensor_control_properties 0x009a206b (u32)    : min=0 max=4294967295 step=1 default=0 [30][36] flags=read-only, has-payload
              sensor_dv_timings 0x009a206c (u32)    : min=0 max=4294967295 step=1 default=0 [30][16] flags=read-only, has-payload
               low_latency_mode 0x009a206d (bool)   : default=0 value=0
               preferred_stride 0x009a206e (int)    : min=0 max=65535 step=1 default=0 value=0
                   sensor_modes 0x009a2082 (int)    : min=0 max=30 step=1 default=30 value=1 flags=read-only

For example, the value of the exposure control is 1. The actual value in the sensor register seems to be 10000. We encountered wrong initial values also for other controls (e.g. black level).

hesmar avatar Jun 19 '23 10:06 hesmar