To my knowledge, you can use the AudioUnitSetProperty function to set the kAUVoiceIOProperty_VoiceProcessingEnableAGC property to disable AGC in AUv2.
However there is no equivalent functionality available in AUv3. The closest option I found is the shouldBypassEffect property.
How to disable AGC using the AUv3 API ?