gta4xl-common: Improve mic quality
* Remove Built-In Back Mic from inputs to avoid using *-2nd-mic
* Make main-mic use both mics so that 2 channels are present, reducing noise
* Increase mic volume
Change-Id: I9e10ee6563dd6e453e18677bbfe2c5020a196ba4
diff --git a/configs/audio/audio_policy_configuration.xml b/configs/audio/audio_policy_configuration.xml
index 5ecb176..2faca00 100644
--- a/configs/audio/audio_policy_configuration.xml
+++ b/configs/audio/audio_policy_configuration.xml
@@ -120,7 +120,7 @@
<route type="mix" sink="Bt Sco Car Kit"
sources="primary-out,fast"/>
<route type="mix" sink="primary-in"
- sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,Bt Sco Headset Mic,Aux Device In,Voice Call Mic,FM Mic"/>
+ sources="Built-In Mic,Wired Headset Mic,Bt Sco Headset Mic,Aux Device In,Voice Call Mic,FM Mic"/>
</routes>
</module>
diff --git a/configs/audio/mixer_paths.xml b/configs/audio/mixer_paths.xml
index ca13636..53fb5fb 100644
--- a/configs/audio/mixer_paths.xml
+++ b/configs/audio/mixer_paths.xml
@@ -1557,7 +1557,7 @@
<path name="media-mic">
<path name="route-ap-record" />
- <path name="dev-main-mic" />
+ <path name="dev-dual-mic" />
</path>
<path name="media-2nd-mic">
@@ -3687,8 +3687,9 @@
<!-- Input stage volume -->
<!-- media input volume -->
<path name="gain-media-mic">
- <ctl name="IN3 Boost Volume" value="34"/>
- <ctl name="STO1 ADC Capture Volume" value="38 38"/>
+ <ctl name="IN3 Boost Volume" value="55"/>
+ <ctl name="IN4 Boost Volume" value="55"/>
+ <ctl name="STO1 ADC Capture Volume" value="61 61"/>
</path>
<path name="gain-media-2nd-mic">
@@ -3839,13 +3840,11 @@
<!-- recognition input volume -->
<path name="gain-recognition-mic">
- <ctl name="IN3 Boost Volume" value="53"/>
- <ctl name="STO1 ADC Capture Volume" value="47 47"/>
+ <path name="gain-media-mic" />
</path>
<path name="gain-recognition-2nd-mic">
- <ctl name="IN4 Boost Volume" value="41"/>
- <ctl name="STO1 ADC Capture Volume" value="47 47"/>
+ <path name="gain-media-2nd-mic" />
</path>
<path name="gain-recognition-headset-mic">
diff --git a/configs/audio/mixer_paths_cs47l15.xml b/configs/audio/mixer_paths_cs47l15.xml
index 7b7d767..96b3183 100644
--- a/configs/audio/mixer_paths_cs47l15.xml
+++ b/configs/audio/mixer_paths_cs47l15.xml
@@ -1495,7 +1495,7 @@
<path name="media-mic">
<path name="route-ap-record" />
- <path name="dev-main-mic" />
+ <path name="dev-dual-mic" />
</path>
<path name="media-2nd-mic">
@@ -3658,8 +3658,10 @@
<!-- Input stage volume -->
<!-- media input volume -->
<path name="gain-media-mic">
- <ctl name="IN1L Volume" value="12" />
- <ctl name="IN1L Digital Volume" value="122" />
+ <ctl name="IN1L Volume" value="33" />
+ <ctl name="IN1R Volume" value="33" />
+ <ctl name="IN1L Digital Volume" value="139" />
+ <ctl name="IN1R Digital Volume" value="139" />
</path>
<path name="gain-media-2nd-mic">
@@ -3814,13 +3816,11 @@
<!-- recognition input volume -->
<path name="gain-recognition-mic">
- <ctl name="IN1L Volume" value="31" />
- <ctl name="IN1L Digital Volume" value="128" />
+ <path name="gain-media-mic" />
</path>
<path name="gain-recognition-2nd-mic">
- <ctl name="IN1R Volume" value="18" />
- <ctl name="IN1R Digital Volume" value="128" />
+ <path name="gain-media-2nd-mic" />
</path>
<path name="gain-recognition-headset-mic">