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:
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/details?id=com.samalyse.free.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.
-Steve
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:
Code:
[B][COLOR="DarkRed"]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[/COLOR][/B]
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/details?id=com.samalyse.free.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.
-Steve
Last edited: