To begin, the stock touchwiz configuration and AOSP-based rom configurations currently capture extremely distorted audio when you are in loud environment on the Galaxy S4, quite certain most all of the other Galaxy devices as well. In a quiet environment, the audio capture is awesome and in 2 channel stereo.
Digging into the audio configuration file, I've found many parameters that can be adjusted, changed, replaced, etc.
The file /system/etc/snd_soc_msm/snd_soc_msm_2x_Fusion3 is the audio configuration file.
It can be open and edited directly on the device using any text editor.
Here is the settings for the "camcorder" profile when recording video in the camera app:
SectionDevice Name "Camcorder Tx" Comment "Camcorder Tx device" EnableSequence 'SLIM_0_TX Channels':0:Two 'SLIM TX7 MUX':0:DEC3 'DEC3 MUX':0:ADC4 'ADC4 Volume':2:91.7% 'DEC3 Volume':2:84% 'SLIM TX8 MUX':0:DEC4 'DEC4 MUX':0:ADC3 'ADC3 Volume':2:91.7% 'DEC4 Volume':2:84% 'MICBIAS3 CAPLESS Switch':1:1 EndSequence DisableSequence 'SLIM TX7 MUX':0:ZERO 'DEC3 MUX':0:ZERO 'ADC4 Volume':1:0 'DEC3 Volume':1:67% 'SLIM TX8 MUX':0:ZERO 'DEC4 MUX':0:ZERO 'ADC3 Volume':1:0 'DEC4 Volume':1:67% 'MICBIAS3 CAPLESS Switch':1:0 EndSequence ACDBID 56:2 EndSection
Apps like Tapemachine (a very awesome audio recording and editing app https://play.google.com/store/apps/d...ee.tapemachine ) has an option for Auto-gain control. Is this app using a hardware based auto-gain control or is it rendering within the app? Either way, any information leading towards the development of auto-gain control in video/audio recording in AOSP android would be great help. I'm not much of a programmer but I'm willing to dig into putting work into the AOSP camera app to enable this feature.
Thanks for reading.