Jetson argus_camera not affecting gain

Hi,

I am trying to use the argus_camera program to leverage both sensor settings and ISP settings for a video feed.
(I am using the Xavier AGX with the D3 ov10640 FPDlink rugged camera at the moment)

The video feed works, and I can modify the exposure settings inside argus_camera, and notice (from dyndbg prints of the ov10640 v4l driver) that this is actually modifying the relevant control

However, for the gain setting, this is NOT working. If I change the gain range (the same way as I did with the exposure) , I do not see any v4l control call, which is unexpected. (TEGRA_CAMERA_CID_GAIN is registered as control as int64).

What could be going wrong here? Is there a way to get more output from argus_camera to further debug why it is not setting this value?

(I am on jetpack 4.3)

Thanks for your reply

Did you try set the high and low as the same value? Like 1.0 to 1.0 ?

Yes of course. That way you could try and “force” a value. (This works for exposure). But as mentioned, this does not have any effect for gain (does not call the v4l control api for some reason)

It could be your driver problem. I can see the set_gain() be called for imx274 when I set the gain range to 44.400 to 44.400

[ 197.438088] imx274 30-001a: imx274_set_gain: val: 44400000
[ 197.438095] imx274 30-001a: imx274_set_gain: val:44400000, gain:44, again:(22, 1956), dgain:(2, 1)

Interesting.

So there must be some difference indeed (but I don’t immediately see what). Is there a way to let the argus_daemon produce more verbose output perhaps, in order to see what it misses in the driver api? (who knows, could also be the DTS?) That could speed my search up alot. (Since I don’t see what is wrong at the moment, the only other option would be to fully work from the imx274 driver back to mine in terms of API iteratively, but this is a slow and stupid way. I’d love some error message from argus telling me why it thinks it should not propagate gain. (Note: I does parse the DTS correctly, and applies the bounds I set there. So I must “try” to set it I would guess).

Thanks

sudo su
kill the process of nvargus-daemon
export enableCamPclLogs=5
export enableCamScfLogs=5
/usr/sbin/nvargus-daemon

launch argus_camera in another console.

Thanks. I found those on other threads as well. Can you perhaps post your “correct” output, so I can compare mine?

What’s do you mean correct output?

Well, “your log”. As you can modify the gain, your debug output should be “correct”.

Should be like below

Thread 7 is working on CC 1127 session 0 globalID 1127 step 9
Session::updatePerfHints()
updatePerfHints(): guid=0ll, CaptureIntent=1
updatePerfHints(): NvCameraCoreUseCase_Preview
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000

NvPclSettingsUpdate: Sending Updated Settings through PCL
NvPclSettingsApply: Applying last settings through PCL
apply:+++++++++++++++++++++++
NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=15, m_value=0, m_timeout_ms=1000

exposureTime=0.002632 analogGain=44.400005 digitalGain=1.000000 commonGain=0.116847 expComp=1.000000

lux in Statsupdate: isAohdrEnable=0 currentSceneLux 137.089
Thread 5 is working on CC 1132 session 0 globalID 1132 step 0
CC 1132 session 0 completed step 0 in fiber 0x7f18001790
cc 1132(1032) session 0 runCount=1031 runIspOut=1026, latest ccId=1126
cc 1132(1032) session 0 waiting
apply:-----------------------Created fiber 0x7f18001790 for CC 1132 globalID 1132 session 0CC 1127 session 0 completed step 9 in fiber 0x7f18001930

Hi Shane,

Thanks for the reply
I picked up the subject again, and I am able to see the requests coming through to the driver, but for some reason argus fails to respect the range I am inputting (and is clipping to one end)

For example:

My DTS snippet:

		inherent_gain = "1";
		gain_factor = "1";
		min_gain_val = "1000000";
		max_gain_val = "8000000";
		step_gain_val = "1";
		default_gain = "1000000";
		//min_hdr_ratio = "1";
		//max_hdr_ratio = "1";
		framerate_factor = "1000000";
		min_framerate = "1500000";
		max_framerate = "60000000";
		step_framerate = "1";
		default_framerate= "60000000";
		exposure_factor = "1000000";
		//min_exp_time = "44";
		//max_exp_time = "478696";
		step_exp_time = "1";
		default_exp_time = "16667";/* us */

Argus-camera command:

		./argus_camera  --gainrange='3000000,3000000'

Argus output (snippet) ( from “/usr/sbin/nvargus-daemon 2>&1 | grep ain &”)

		OFDPropertyGetString: could not read property [delayed_gain]
		OFDPropertyCopyToFloat: could not read property [mode0.gain_step_pitch]
		writeGain:      INPUT gainCtrl:f4240 analogGain:1000000.000000
		updateOutputSettings:   OUTPUT analogGain:1000000.000000
		exposureTime=0.000020 analogGain=999999.687500 digitalGain=1.000000 commonGain=20.000011 expComp=7.835362
		exposureTime=0.000020 analogGain=999999.687500 digitalGain=1.000000 commonGain=20.000011 expComp=7.835362
		exposureTime=0.000020 analogGain=999999.687500 digitalGain=1.000000 commonGain=20.000011 expComp=7.835362
		exposureTime=0.000020 analogGain=999999.687500 digitalGain=1.000000 commonGain=20.000011 expComp=7.835362
		exposureTime=0.000020 analogGain=999999.687500 digitalGain=1.000000 commonGain=20.000011 expComp=7.835362
		exposureTime=0.000020 analogGain=999999.687500 digitalGain=1.000000 commonGain=20.000011 expComp=7.835362
		exposureTime=0.000023 analogGain=999999.687500 digitalGain=1.000000 commonGain=22.973962 expComp=7.835362
		exposureTime=0.000026 analogGain=999999.687500 digitalGain=1.000000 commonGain=26.390150 expComp=7.835362
		exposureTime=0.000030 analogGain=999999.687500 digitalGain=1.000000 commonGain=30.159533 expComp=7.835362
		exposureTime=0.000034 analogGain=999999.687500 digitalGain=1.000000 commonGain=34.010194 expComp=7.835362
		exposureTime=0.000038 analogGain=999999.687500 digitalGain=1.000000 commonGain=37.894398 expComp=7.835362
		exposureTime=0.000042 analogGain=999999.687500 digitalGain=1.000000 commonGain=42.351124 expComp=7.835362
		exposureTime=0.000047 analogGain=999999.687500 digitalGain=1.000000 commonGain=47.462053 expComp=7.835362
		exposureTime=0.000053 analogGain=999999.687500 digitalGain=1.000000 commonGain=53.294023 expComp=7.835362
		exposureTime=0.000060 analogGain=999999.687500 digitalGain=1.000000 commonGain=59.868081 expComp=7.835362
		exposureTime=0.000067 analogGain=999999.687500 digitalGain=1.000000 commonGain=67.198155 expComp=7.835362
		exposureTime=0.000075 analogGain=999999.687500 digitalGain=1.000000 commonGain=75.393144 expComp=7.835362
		exposureTime=0.000085 analogGain=999999.687500 digitalGain=1.000000 commonGain=84.577982 expComp=7.835362
		exposureTime=0.000095 analogGain=999999.687500 digitalGain=1.000000 commonGain=94.890674 expComp=7.835362
		exposureTime=0.000106 analogGain=999999.687500 digitalGain=1.000000 commonGain=106.474169 expComp=7.835362
		exposureTime=0.000119 analogGain=999999.687500 digitalGain=1.000000 commonGain=119.475727 expComp=7.835362
		exposureTime=0.000134 analogGain=999999.687500 digitalGain=1.000000 commonGain=134.062941 expComp=7.835362
		exposureTime=0.000150 analogGain=999999.687500 digitalGain=1.000000 commonGain=150.427685 expComp=7.835362
		exposureTime=0.000169 analogGain=999999.687500 digitalGain=1.000000 commonGain=168.787816 expComp=7.835362
		exposureTime=0.000189 analogGain=999999.687500 digitalGain=1.000000 commonGain=189.389334 expComp=7.835362
		exposureTime=0.000213 analogGain=999999.687500 digitalGain=1.000000 commonGain=212.506383 expComp=7.835362
		exposureTime=0.000244 analogGain=999999.687500 digitalGain=1.000000 commonGain=244.105537 expComp=7.835362
		exposureTime=0.000280 analogGain=999999.687500 digitalGain=1.000000 commonGain=280.403590 expComp=7.835362
		exposureTime=0.000322 analogGain=999999.687500 digitalGain=1.000000 commonGain=322.099296 expComp=7.835362
		exposureTime=0.000370 analogGain=999999.687500 digitalGain=1.000000 commonGain=369.994902 expComp=7.835362
		exposureTime=0.000425 analogGain=999999.687500 digitalGain=1.000000 commonGain=425.012475 expComp=7.835362
		exposureTime=0.000488 analogGain=999999.687500 digitalGain=1.000000 commonGain=488.211394 expComp=7.835362
		exposureTime=0.000561 analogGain=999999.687500 digitalGain=1.000000 commonGain=560.807529 expComp=7.835362
		exposureTime=0.000644 analogGain=999999.687500 digitalGain=1.000000 commonGain=644.198592 expComp=7.835362
		exposureTime=0.000740 analogGain=999999.687500 digitalGain=1.000000 commonGain=739.989804 expComp=7.835362
		exposureTime=0.000850 analogGain=999999.687500 digitalGain=1.000000 commonGain=850.024950 expComp=7.835362
		exposureTime=0.000976 analogGain=999999.687500 digitalGain=1.000000 commonGain=976.422788 expComp=7.835362
		exposureTime=0.001122 analogGain=999999.687500 digitalGain=1.000000 commonGain=1121.615058 expComp=7.835362
		exposureTime=0.001288 analogGain=999999.687500 digitalGain=1.000000 commonGain=1288.397184 expComp=7.835362
		exposureTime=0.001480 analogGain=999999.687500 digitalGain=1.000000 commonGain=1479.979608 expComp=7.835362
		exposureTime=0.001700 analogGain=999999.687500 digitalGain=1.000000 commonGain=1700.049899 expComp=7.835362
		exposureTime=0.001953 analogGain=999999.687500 digitalGain=1.000000 commonGain=1952.845575 expComp=7.835362
		exposureTime=0.002243 analogGain=999999.687500 digitalGain=1.000000 commonGain=2243.228720 expComp=7.835362
		exposureTime=0.002577 analogGain=999999.687500 digitalGain=1.000000 commonGain=2576.792739 expComp=7.835362
		exposureTime=0.002960 analogGain=999999.687500 digitalGain=1.000000 commonGain=2959.955257 expComp=7.835362
		exposureTime=0.003400 analogGain=999999.687500 digitalGain=1.000000 commonGain=3400.095374 expComp=7.835362
		exposureTime=0.003906 analogGain=999999.687500 digitalGain=1.000000 commonGain=3905.685795 expComp=7.835362
		exposureTime=0.004486 analogGain=999999.687500 digitalGain=1.000000 commonGain=4486.457440 expComp=7.835362
		exposureTime=0.005154 analogGain=999999.687500 digitalGain=1.000000 commonGain=5153.587340 expComp=7.835362
		exposureTime=0.005920 analogGain=999999.687500 digitalGain=1.000000 commonGain=5919.918431 expComp=7.835362
		exposureTime=0.006800 analogGain=999999.687500 digitalGain=1.000000 commonGain=6800.204253 expComp=7.835362
		writeGain:      INPUT gainCtrl:fba3f analogGain:1030719.062500
		updateOutputSettings:   OUTPUT analogGain:1030719.000000
		exposureTime=0.007811 analogGain=999999.687500 digitalGain=1.000000 commonGain=7811.387422 expComp=7.835362
		writeGain:      INPUT gainCtrl:1210f0 analogGain:1183984.375000
		updateOutputSettings:   OUTPUT analogGain:1183984.000000
		exposureTime=0.008973 analogGain=999999.687500 digitalGain=1.000000 commonGain=8972.929781 expComp=7.835362
		writeGain:      INPUT gainCtrl:14c0a7 analogGain:1360039.750000
		updateOutputSettings:   OUTPUT analogGain:1360039.000000
		exposureTime=0.010000 analogGain=1030719.062500 digitalGain=1.000000 commonGain=10307.190395 expComp=7.835362
		writeGain:      INPUT gainCtrl:17d6a4 analogGain:1562276.250000
		updateOutputSettings:   OUTPUT analogGain:1562276.000000
		exposureTime=0.010000 analogGain=1183984.375000 digitalGain=1.000000 commonGain=11839.843485 expComp=7.835362
		writeGain:      INPUT gainCtrl:1b6216 analogGain:1794582.750000
		updateOutputSettings:   OUTPUT analogGain:1794582.000000
		exposureTime=0.010000 analogGain=1360039.750000 digitalGain=1.000000 commonGain=13600.397196 expComp=7.835362
		writeGain:      INPUT gainCtrl:fba3c analogGain:1030716.312500
		updateOutputSettings:   OUTPUT analogGain:1030716.000000
		exposureTime=0.010000 analogGain=1562276.250000 digitalGain=1.000000 commonGain=15622.762151 expComp=7.835362
		writeGain:      INPUT gainCtrl:1210ee analogGain:1183982.750000
		updateOutputSettings:   OUTPUT analogGain:1183982.000000
		exposureTime=0.010000 analogGain=1794582.750000 digitalGain=1.000000 commonGain=17945.827099 expComp=7.835362
		writeGain:      INPUT gainCtrl:14c0a7 analogGain:1360039.750000
		updateOutputSettings:   OUTPUT analogGain:1360039.000000
		exposureTime=0.020000 analogGain=1030716.312500 digitalGain=1.000000 commonGain=20614.325789 expComp=7.835362
		writeGain:      INPUT gainCtrl:fe46d analogGain:1041517.312500
		updateOutputSettings:   OUTPUT analogGain:1041517.000000
		exposureTime=0.020000 analogGain=1183982.750000 digitalGain=1.000000 commonGain=23679.654471 expComp=7.835362
		writeGain:      INPUT gainCtrl:124165 analogGain:1196389.875000Created fiber 0x7f4c0199f0 for CC 165 globalID 338938 session 0
		updateOutputSettings:   OUTPUT analogGain:1196389.000000
		exposureTime=0.020000 analogGain=1360039.750000 digitalGain=1.000000 commonGain=27200.794392 expComp=7.835362
		writeGain:      INPUT gainCtrl:14f853 analogGain:1374291.750000
		updateOutputSettings:   OUTPUT analogGain:1374291.000000
		exposureTime=0.030000 analogGain=1041517.312500 digitalGain=1.000000 commonGain=31245.518677 expComp=7.835362
		writeGain:      INPUT gainCtrl:181697 analogGain:1578647.500000
		updateOutputSettings:   OUTPUT analogGain:1578647.000000
		exposureTime=0.030000 analogGain=1196389.875000 digitalGain=1.000000 commonGain=35891.695448 expComp=7.835362
		writeGain:      INPUT gainCtrl:1bab8e analogGain:1813390.750000
		updateOutputSettings:   OUTPUT analogGain:1813390.000000
		exposureTime=0.030000 analogGain=1374291.750000 digitalGain=1.000000 commonGain=41228.751578 expComp=7.835362
		writeGain:      INPUT gainCtrl:1fc8dd analogGain:2083037.375000
		updateOutputSettings:   OUTPUT analogGain:2083037.000000
		exposureTime=0.030000 analogGain=1578647.500000 digitalGain=1.000000 commonGain=47359.423941 expComp=7.835362
		writeGain:      INPUT gainCtrl:2482ce analogGain:2392782.750000
		updateOutputSettings:   OUTPUT analogGain:2392782.000000
		exposureTime=0.030000 analogGain=1813390.750000 digitalGain=1.000000 commonGain=54401.721284 expComp=7.835362
		writeGain:      INPUT gainCtrl:29ad28 analogGain:2731304.750000CC 171 session 0 completed step 0 in fiber 0x7f4c00e360
		updateOutputSettings:   OUTPUT analogGain:2731304.000000
		exposureTime=0.030000 analogGain=2083037.375000 digitalGain=1.000000 commonGain=62491.119853 expComp=7.835362
		writeGain:      INPUT gainCtrl:2ef283 analogGain:3076739.500000
		updateOutputSettings:   OUTPUT analogGain:3076739.000000
		exposureTime=0.030000 analogGain=2392782.750000 digitalGain=1.000000 commonGain=71783.480896 expComp=7.835362
		writeGain:      INPUT gainCtrl:34423f analogGain:3424831.500000
		updateOutputSettings:   OUTPUT analogGain:3424831.000000
		exposureTime=0.030000 analogGain=2731304.750000 digitalGain=1.000000 commonGain=81939.140669 expComp=7.835362
		writeGain:      INPUT gainCtrl:398d0a analogGain:3771658.000000
		updateOutputSettings:   OUTPUT analogGain:3771658.000000
		exposureTime=0.030000 analogGain=3076739.500000 digitalGain=1.000000 commonGain=92302.182937 expComp=7.835362
		writeGain:      INPUT gainCtrl:3ec546 analogGain:4113734.500000
		updateOutputSettings:   OUTPUT analogGain:4113734.000000
		exposureTime=0.030000 analogGain=3424831.500000 digitalGain=1.000000 commonGain=102744.942703 expComp=7.835362
		writeGain:      INPUT gainCtrl:43df32 analogGain:4448050.000000NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000
		updateOutputSettings:   OUTPUT analogGain:4448050.000000
		exposureTime=0.030000 analogGain=3771658.000000 digitalGain=1.000000 commonGain=113149.737471 expComp=7.835362
		writeGain:      INPUT gainCtrl:48d106 analogGain:4772102.000000Thread 4 is working on CC 177 session 0 globalID 338950 step 0
		updateOutputSettings:   OUTPUT analogGain:4772102.000000
		exposureTime=0.030000 analogGain=4113734.500000 digitalGain=1.000000 commonGain=123412.032242 expComp=7.835362
		writeGain:      INPUT gainCtrl:4d92ed analogGain:5083885.500000
		updateOutputSettings:   OUTPUT analogGain:5083885.000000
		exposureTime=0.030000 analogGain=4448050.000000 digitalGain=1.000000 commonGain=133441.497017 expComp=7.835362
		writeGain:      INPUT gainCtrl:521eef analogGain:5381871.000000
		updateOutputSettings:   OUTPUT analogGain:5381871.000000
		exposureTime=0.030000 analogGain=4772102.000000 digitalGain=1.000000 commonGain=143163.056800 expComp=7.835362
		writeGain:      INPUT gainCtrl:5670c5 analogGain:5664965.500000
		updateOutputSettings:   OUTPUT analogGain:5664965.000000
		exposureTime=0.030000 analogGain=5083885.500000 digitalGain=1.000000 commonGain=152516.561591 expComp=7.835362
		writeGain:      INPUT gainCtrl:5a85a9 analogGain:5932457.000000
		updateOutputSettings:   OUTPUT analogGain:5932457.000000
		exposureTime=0.030000 analogGain=5381871.000000 digitalGain=1.000000 commonGain=161456.126391 expComp=7.835362
		writeGain:      INPUT gainCtrl:5e5c2c analogGain:6183980.500000
		updateOutputSettings:   OUTPUT analogGain:6183980.000000
		exposureTime=0.030000 analogGain=5664965.500000 digitalGain=1.000000 commonGain=169948.961201 expComp=7.835362
		writeGain:      INPUT gainCtrl:61f407 analogGain:6419463.500000
		updateOutputSettings:   OUTPUT analogGain:6419463.000000
		exposureTime=0.030000 analogGain=5932457.000000 digitalGain=1.000000 commonGain=177973.706022 expComp=7.835362
		writeGain:      INPUT gainCtrl:654dcd analogGain:6639053.500000
		updateOutputSettings:   OUTPUT analogGain:6639053.000000
		exposureTime=0.030000 analogGain=6183980.500000 digitalGain=1.000000 commonGain=185519.410853 expComp=7.835362
		writeGain:      INPUT gainCtrl:686adc analogGain:6843100.500000NvPHSSendThroughputHints: sensorId=0, m_usecase=4, m_type=1, m_value=30, m_timeout_ms=1000
		updateOutputSettings:   OUTPUT analogGain:6843100.000000
		exposureTime=0.030000 analogGain=6419463.500000 digitalGain=1.000000 commonGain=192583.900695 expComp=7.835362
		writeGain:      INPUT gainCtrl:6b4d20 analogGain:7032096.500000
		updateOutputSettings:   OUTPUT analogGain:7032096.000000
		exposureTime=0.030000 analogGain=6639053.500000 digitalGain=1.000000 commonGain=199171.600548 expComp=7.835362
		writeGain:      INPUT gainCtrl:6df6f9 analogGain:7206649.000000
		updateOutputSettings:   OUTPUT analogGain:7206649.000000
		exposureTime=0.030000 analogGain=6843100.500000 digitalGain=1.000000 commonGain=205293.010411 expComp=7.835362
		writeGain:      INPUT gainCtrl:706b13 analogGain:7367443.500000
		updateOutputSettings:   OUTPUT analogGain:7367443.000000
		exposureTime=0.030000 analogGain=7032096.500000 digitalGain=1.000000 commonGain=210962.890285 expComp=7.835362
		writeGain:      INPUT gainCtrl:72ac63 analogGain:7515235.000000
		updateOutputSettings:   OUTPUT analogGain:7515235.000000
		exposureTime=0.030000 analogGain=7206649.000000 digitalGain=1.000000 commonGain=216199.465168 expComp=7.835362
		updatePerfHints(): NvCameraCoreUseCase_PreviewwriteGain:        INPUT gainCtrl:74bdd5 analogGain:7650773.500000
		updateOutputSettings:   OUTPUT analogGain:7650773.000000
		exposureTime=0.030000 analogGain=7367443.500000 digitalGain=1.000000 commonGain=221023.300060 expComp=7.835362
		writeGain:      INPUT gainCtrl:76a289 analogGain:7774857.000000
		updateOutputSettings:   OUTPUT analogGain:7774857.000000
		exposureTime=0.030000 analogGain=7515235.000000 digitalGain=1.000000 commonGain=225457.044961 expComp=7.835362
		writeGain:      INPUT gainCtrl:785d7a analogGain:7888250.500000
		updateOutputSettings:   OUTPUT analogGain:7888250.000000
		exposureTime=0.030000 analogGain=7650773.500000 digitalGain=1.000000 commonGain=229523.199870 expComp=7.835362
		writeGain:      INPUT gainCtrl:79f19e analogGain:7991710.000000
		updateOutputSettings:   OUTPUT analogGain:7991710.000000
		exposureTime=0.030000 analogGain=7774857.000000 digitalGain=1.000000 commonGain=233245.704787 expComp=7.835362
		writeGain:      INPUT gainCtrl:7a1200 analogGain:8000000.000000
		updateOutputSettings:   OUTPUT analogGain:8000000.000000
		exposureTime=0.030000 analogGain=7888250.500000 digitalGain=1.000000 commonGain=236647.509711 expComp=7.835362
		exposureTime=0.030000 analogGain=7991710.000000 digitalGain=1.000000 commonGain=239751.294641 expComp=7.835362
		exposureTime=0.030000 analogGain=8000000.000000 digitalGain=1.000000 commonGain=239999.994636 expComp=7.835362
		exposureTime=0.030000 analogGain=8000000.000000 digitalGain=1.000000 commonGain=239999.994636 expComp=7.835362
		exposureTime=0.030000 analogGain=8000000.000000 digitalGain=1.000000 commonGain=239999.994636 expComp=7.835362

In my driver, I can see the data coming in

		Apr 10 13:13:20 nvidia-desktop kernel: [11543.637184] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 1000000
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.473717] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 1030719
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.501893] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 1183984
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.535243] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 1360039
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.566375] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 1562276
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.599369] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 1794582
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.631442] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 1030716
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.663928] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 1183982
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.696352] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 1360039
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.729156] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 1041517
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.764666] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 1196389
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.795126] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 1374291
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.826054] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 1578647
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.858448] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 1813390
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.890864] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 2083037
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.923340] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 2392782
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.956833] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 2731304
		Apr 10 13:13:23 nvidia-desktop kernel: [11546.988648] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 3076739
		Apr 10 13:13:23 nvidia-desktop kernel: [11547.020230] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 3424831
		Apr 10 13:13:23 nvidia-desktop kernel: [11547.056271] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 3771658
		Apr 10 13:13:23 nvidia-desktop kernel: [11547.089508] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 4113734
		Apr 10 13:13:23 nvidia-desktop kernel: [11547.118872] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 4448050
		Apr 10 13:13:23 nvidia-desktop kernel: [11547.150768] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 4772102
		Apr 10 13:13:23 nvidia-desktop kernel: [11547.184277] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 5083885
		Apr 10 13:13:23 nvidia-desktop kernel: [11547.216222] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 5381871
		Apr 10 13:13:23 nvidia-desktop kernel: [11547.247523] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 5664965
		Apr 10 13:13:23 nvidia-desktop kernel: [11547.280525] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 5932457
		Apr 10 13:13:23 nvidia-desktop kernel: [11547.314877] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 6183980
		Apr 10 13:13:23 nvidia-desktop kernel: [11547.345552] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 6419463
		Apr 10 13:13:24 nvidia-desktop kernel: [11547.377442] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 6639053
		Apr 10 13:13:24 nvidia-desktop kernel: [11547.409838] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 6843100
		Apr 10 13:13:24 nvidia-desktop kernel: [11547.441774] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 7032096
		Apr 10 13:13:24 nvidia-desktop kernel: [11547.474918] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 7206649
		Apr 10 13:13:24 nvidia-desktop kernel: [11547.506868] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 7367443
		Apr 10 13:13:24 nvidia-desktop kernel: [11547.539550] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 7515235
		Apr 10 13:13:24 nvidia-desktop kernel: [11547.571705] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 7650773
		Apr 10 13:13:24 nvidia-desktop kernel: [11547.604502] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 7774857
		Apr 10 13:13:24 nvidia-desktop kernel: [11547.636835] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 7888250
		Apr 10 13:13:24 nvidia-desktop kernel: [11547.669002] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 7991710
		Apr 10 13:13:24 nvidia-desktop kernel: [11547.702739] [10410] ov10640 9-0048: ov10640_s_ctrl: Setting control (10100745) to 8000000

Note how it goes from the lower limit to the upper limit. It seems to be following some auto-tuning process, but given my limits in argus_camera, it should not do this? Also playing with the visual application, it just seems to ignore my inputs (but the GUI elements -are- limited to the DTS values, and the “autotuning” also never goes beyond these)

Any idea what is causing this?

Kind regards,
Arnout

Why do you comment out the min_exp_time/max_exp_time
The gainrange must in the range of min_exp_time - max_exp_timethe device tree report.

huh? There is min_gain_val and max_gain_val. I would assume it has to be between those two, and has nothing to do with exposure?
The exposure min and max were commented as a test, but as this question was regarding gain and not exposure, I figured it had no impact