Gain range in nvarguscamerasrc limited to [1-16]

Hello,

I have not been able to prescribe gain values outside the range of [1-16] in nvarguscamerasrc even though the camera supports a much wider range. Whenever I try to set values beyond the [1-16] range, in the example below to [0-30], I get the following prompt and gain settings are ignored:
GST_ARGUS: NvArgusCameraSrc: Setting Exposure Time Range : 50000 1000000
GST_ARGUS: NvArgusCameraSrc: Setting Gain Range : 0 30
GST_ARGUS: Invalid Gain Range Input

The camera supports a gain range in the [0-72] range:
GST_ARGUS: 3840 x 2160 FR = 36.004002 fps Duration = 27774690 ; Analog Gain range min 0.000000, max 72.000000; Exposure Range min 50000, max 27685000;

Is [1-16] limit hardcoded into nvarguscamerasrc? If so, would it be possible to fix that?

Thanks.

What’s the version?
Please download the source code(L4T Driver Package (BSP) Sources). from below link to modify the gain limite for this issue.

Modify below

./gstnvarguscamerasrc.cpp:#define MAX_GAIN 16