Issue in userAutoExposure

I’m trying to run the userAutoExposure sample under tegra_multimedia_api/argus/ using the OV camera. When I put my hand over the camera to block it, it does seem to want to turn up the gain on the camera, but the setGainRange does not seem to be taking affect. The following output shows that it does try to increase the gain, but the reported gain that comes back stays at 1.0.

PREVIEW CONSUMER: Acquired frame 52. Rendering.
Frame metadata ExposureTime 19999999, Analog Gain 1.000000
Exposure level at 0.031, increasing analog gain to 5.760000
PREVIEW CONSUMER: Acquired frame 53. Rendering.
Frame metadata ExposureTime 19999999, Analog Gain 1.000000
Exposure level at 0.031, increasing analog gain to 5.760000
PREVIEW CONSUMER: Acquired frame 54. Rendering.
Frame metadata ExposureTime 19999999, Analog Gain 1.000000
Exposure level at 0.027, increasing analog gain to 6.582858
PREVIEW CONSUMER: Acquired frame 55. Rendering.
Frame metadata ExposureTime 19999999, Analog Gain 1.000000
Exposure level at 0.023, increasing analog gain to 7.680000
PREVIEW CONSUMER: Acquired frame 56. Rendering.
Frame metadata ExposureTime 19999999, Analog Gain 1.000000
Exposure level at 0.020, increasing analog gain to 9.216001
PREVIEW CONSUMER: Acquired frame 57. Rendering.
Frame metadata ExposureTime 19999999, Analog Gain 1.000000
Exposure level at 0.020, increasing analog gain to 9.216001
PREVIEW CONSUMER: Acquired frame 58. Rendering.
Frame metadata ExposureTime 19999999, Analog Gain 1.000000
Exposure level at 0.016, increasing analog gain to 11.520000
PREVIEW CONSUMER: Acquired frame 59. Rendering.
Frame metadata ExposureTime 19999999, Analog Gain 1.000000
Exposure level at 0.016, increasing analog gain to 11.520000

hotpeppers
From below message we can see the gain is increased to 11.52x, the 1.0000 should be the metadata report error. You can also modify the kernel sensor to dump the gain reg to check.

Exposure level at 0.016, increasing analog gain to 11.520000

That log message is just what it calculates and tries to set as the gain. Shouldn’t the return from the metadata tell us what it’s actually being set to? When I run this on a TX1 that’s what I see it doing.

@hotpeppers
This problem was fixed by next release.