When I use v4l2-ctl to get list of available formats, it outputs wrong information.
It reports correct framesize but the framerate is from the first mode which has same framesize.
For above modes of imx185, v4l2-ctl will outputs 2 formats, (1920x1080 @30fps and 1920x1080 @30fps)
I looked into the related v4l2 api in camera_common.c and found that this behavior is expected from the code.
Although I cannot get formats list from v4l2 api, nvarguscamerasrc can get correct information.
Where does argus get information ? (device tree?)
we had also added use_sensor_mode_id control property in device tree.
you’ll need to update sensor driver by implement TEGRA_CAMERA_CID_SENSOR_MODE_ID controls.
hence, Argus can just send the mode-id to driver to set to specific mode without going through v4l2 framework’s mode selection logic.
thanks