4.3-4.4 AOSP Camera app with Auto-gain audio
Anyone here used a Motorola device with stock camera app using "Concert" mode and been able to record crystal-clear audio in a noisy environment without distortion? Whether you have or not, it works very well an I am trying to figure out how to get similar results with my Qualcomm based AT&T branded Galaxy S4 running Cyanogenmod 11 latest nightlies. It'd be great to find out if any solutions will work for other devices as well. I know very well that iOS devices can record video in noisy environments flawlessly without having to change any microphone settings at all.
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:
Name "Camcorder Tx"
Comment "Camcorder Tx device"
'SLIM TX7 MUX':0:DEC3
'SLIM TX8 MUX':0:DEC4
'MICBIAS3 CAPLESS Switch':1:1
'SLIM TX7 MUX':0:ZERO
'SLIM TX8 MUX':0:ZERO
'MICBIAS3 CAPLESS Switch':1:0
Adjusting volume percentages does result in differences in recording levels of the left/right channel, but what I am really looking for is the possibility of using Auto-gain control
. I have read over and over that the audio hardware of these qualcomm processors do have auto-gain control in the audio processing. Does anyone know the perimeters here that enable it?
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.