j7elte: Fixup audio mixer paths
authorDanny Wood <danwood76@gmail.com>
Tue, 19 Oct 2021 11:37:33 +0000 (12:37 +0100)
committerDanny Wood <danwood76@gmail.com>
Tue, 19 Oct 2021 16:37:08 +0000 (17:37 +0100)
* Headset mic gains set to stock values
* Speaker volumes increased
* Some missing parameters copied from stock

Change-Id: Iab368111b93d46c48dbeea5fbff1e557d7e85bdd

configs/audio/mixer_paths.xml

index ff844c2ad6eaa9476f30fe8aba4cff2bedf218f4..4dd0c4e25995b7134c79d68ed0962c21d22e4170 100644 (file)
        </path>
 
        <path name="dev-speaker">
+               <path name="dev-codec-disable-analog-bypass" />
                <ctl name="HP HP On" value="0" />
                <ctl name="EP EP On" value="0" />
                <ctl name="SPK SPK On" value="1" />
        </path>
 
        <path name="dev-handset">
+               <path name="dev-codec-disable-analog-bypass" />
                <ctl name="HP HP On" value="0" />
                <ctl name="SPK SPK On" value="0" />
                <ctl name="EP EP On" value="1" />
        </path>
 
        <path name="dev-headset">
+               <path name="dev-codec-disable-analog-bypass" />
                <ctl name="EP EP On" value="0" />
                <ctl name="SPK SPK On" value="0" />
                <ctl name="HP HP On" value="1" />
        </path>
 
        <path name="dev-speaker-headset">
+               <path name="dev-codec-disable-analog-bypass" />
                <ctl name="EP EP On" value="0" />
                <ctl name="HP HP On" value="1" />
                <ctl name="SPK SPK On" value="1" />
        </path>
 
        <path name="dev-codec-out-disable">
+               <path name="dev-codec-disable-analog-bypass" />
                <ctl name="HP HP On" value="0" />
                <ctl name="EP EP On" value="0" />
                <ctl name="SPK SPK On" value="0" />
 
        <path name="media-headset">
                <path name="route-ap-tx" />
-               <ctl name="Chargepump Mode" value="VDD" />
-               <ctl name="DNC Max Gain" value="6" />
                <path name="dev-headset" />
        </path>
 
 
        <path name="incall_nb-headphone">
                <path name="incall_nb-headset" />
-               <ctl name="Chargepump Mode" value="VDD" />
-               <ctl name="DNC Max Gain" value="9" />
        </path>
 
        <path name="incall_nb-bt-sco-headset">
 
        <path name="incall_wb-headset">
                <path name="incall_nb-headset" />
-               <ctl name="Chargepump Mode" value="VDD" />
-               <ctl name="DNC Max Gain" value="9" />
        </path>
 
        <path name="incall_wb-headphone">
                <path name="incall_nb-headphone" />
-               <ctl name="Chargepump Mode" value="VDD" />
-               <ctl name="DNC Max Gain" value="9" />
        </path>
 
        <path name="incall_wb-bt-sco-headset">
        <path name="gain-media-speaker">
                <ctl name="S2801 MIX1_LVL" value="0" />
                <ctl name="DAC Gain" value="132" />
-               <ctl name="Speaker Volume" value="0" />
+               <ctl name="Speaker Volume" value="6" />
        </path>
 
        <path name="gain-media-headset">
                <ctl name="S2801 MIX1_LVL" value="0" />
                <ctl name="DAC Gain" value="122" />
+               <ctl name="Headphone Volume" value="36" />
        </path>
 
        <path name="gain-media-speaker-headset">
                <ctl name="S2801 MIX1_LVL" value="0" />
                <ctl name="DAC Gain" value="132" />
-               <ctl name="Speaker Volume" value="0" />
-               <ctl name="Headphone Volume" value="23" />
+               <ctl name="Speaker Volume" value="6" />
+               <ctl name="Headphone Volume" value="36" />
        </path>
 
        <path name="gain-media-bt-sco-headset">
 
        <path name="gain-media-speaker-bt-sco-headset">
                <ctl name="S2801 MIX1_LVL" value="0" />
-               <ctl name="DAC Gain" value="127" />
-               <ctl name="Speaker Volume" value="3" />
+               <ctl name="DAC Gain" value="132" />
+               <ctl name="Speaker Volume" value="6" />
        </path>
 
        <!-- Ringtone playback volume -->
 
        <path name="gain-ringtone-headset">
                <ctl name="S2801 MIX1_LVL" value="0" />
-               <ctl name="DAC Gain" value="127" />
+               <ctl name="DAC Gain" value="105" />
+               <ctl name="Headphone Volume" value="36" />
        </path>
 
        <path name="gain-ringtone-speaker-headset">
                <ctl name="S2801 MIX1_LVL" value="0" />
                <ctl name="DAC Gain" value="127" />
-               <ctl name="Speaker Volume" value="0" />
-               <ctl name="Headphone Volume" value="21" />
+               <ctl name="Speaker Volume" value="6" />
+               <ctl name="Headphone Volume" value="36" />
        </path>
 
        <path name="gain-ringtone-bt-sco-headset">
        <path name="gain-incall_nb-speaker">
                <ctl name="S2801 MIX1_LVL" value="0" />
                <ctl name="S2801 MIX2_LVL" value="0" />
-               <ctl name="DAC Gain" value="118" />
+               <ctl name="DAC Gain" value="127" />
                <ctl name="Speaker Volume" value="6" />
        </path>
 
                <ctl name="S2801 MIX1_LVL" value="0" />
                <ctl name="S2801 MIX2_LVL" value="0" />
                <ctl name="DAC Gain" value="127" />
+               <ctl name="Headphone Volume" value="36" />
        </path>
 
        <path name="gain-incall_nb-headphone">
                <ctl name="S2801 MIX1_LVL" value="0" />
                <ctl name="S2801 MIX2_LVL" value="0" />
                <ctl name="DAC Gain" value="127" />
+               <ctl name="Headphone Volume" value="36" />
        </path>
 
        <path name="gain-incall_nb-bt-sco-headset">
        <path name="gain-incall_wb-speaker">
                <ctl name="S2801 MIX1_LVL" value="0" />
                <ctl name="S2801 MIX2_LVL" value="0" />
-               <ctl name="DAC Gain" value="118" />
+               <ctl name="DAC Gain" value="127" />
                <ctl name="Speaker Volume" value="6" />
        </path>
 
                <ctl name="S2801 MIX1_LVL" value="0" />
                <ctl name="S2801 MIX2_LVL" value="0" />
                <ctl name="DAC Gain" value="127" />
+               <ctl name="Headphone Volume" value="36" />
        </path>
 
        <path name="gain-incall_wb-headphone">
                <ctl name="S2801 MIX1_LVL" value="0" />
                <ctl name="S2801 MIX2_LVL" value="0" />
                <ctl name="DAC Gain" value="127" />
+               <ctl name="Headphone Volume" value="36" />
        </path>
 
        <path name="gain-incall_wb-bt-sco-headset">
        </path>
 
        <path name="gain-media-headset-mic">
-               <ctl name="MIC2 Volume" value="4" />
+               <ctl name="MIC2 Volume" value="11" />
                <ctl name="MIC2 Boost Volume" value="2" />
                <ctl name="ADC Left Gain" value="127" />
                <ctl name="ADC Right Gain" value="127" />
 
        <!-- camcorder input volume -->
        <path name="gain-camcorder-mic-oe">
-               <ctl name="MIC1 Volume" value="12" />
-               <ctl name="MIC1 Boost Volume" value="1" />
--              <ctl name="Line-in Volume" value="4" />
-               <ctl name="ADC Left Gain" value="137" />
-               <ctl name="ADC Right Gain" value="137" />
+               <ctl name="MIC1 Volume" value="14" />
+               <ctl name="MIC1 Boost Volume" value="0" />
+               <ctl name="ADC Left Gain" value="150" />
+               <ctl name="ADC Right Gain" value="150" />
        </path>
 
        <path name="gain-camcorder-headset-mic">
-               <ctl name="MIC2 Volume" value="7" />
+               <ctl name="MIC2 Volume" value="11" />
                <ctl name="MIC2 Boost Volume" value="2" />
-               <ctl name="ADC Left Gain" value="136" />
-               <ctl name="ADC Right Gain" value="136" />
+               <ctl name="ADC Left Gain" value="127" />
+               <ctl name="ADC Right Gain" value="127" />
        </path>
 
        <path name="gain-camcorder-headphone-mic">
-               <ctl name="MIC1 Volume" value="10" />
-               <ctl name="MIC1 Boost Volume" value="1" />
-               <ctl name="Line-in Volume" value="4" />
-               <ctl name="ADC Left Gain" value="136" />
-               <ctl name="ADC Right Gain" value="136" />
+               <ctl name="MIC1 Volume" value="14" />
+               <ctl name="MIC1 Boost Volume" value="0" />
+               <ctl name="ADC Left Gain" value="150" />
+               <ctl name="ADC Right Gain" value="150" />
        </path>
 
        <!-- voice recording input volume -->
 
        <path name="gain-recording-mic">
-               <ctl name="MIC1 Volume" value="10" />
-               <ctl name="MIC1 Boost Volume" value="1" />
-               <ctl name="ADC Left Gain" value="138" />
-               <ctl name="ADC Right Gain" value="138" />
-
+               <ctl name="MIC1 Volume" value="14" />
+               <ctl name="MIC1 Boost Volume" value="0" />
+               <ctl name="ADC Left Gain" value="150" />
+               <ctl name="ADC Right Gain" value="150" />
        </path>
 
        <path name="gain-recording-headset-mic">
-               <ctl name="MIC2 Volume" value="7" />
+               <ctl name="MIC2 Volume" value="11" />
                <ctl name="MIC2 Boost Volume" value="2" />
-               <ctl name="ADC Left Gain" value="136" />
-               <ctl name="ADC Right Gain" value="136" />
+               <ctl name="ADC Left Gain" value="127" />
+               <ctl name="ADC Right Gain" value="127" />
        </path>
 
        <path name="gain-recording-headphone-mic">
-               <ctl name="MIC1 Volume" value="10" />
-               <ctl name="MIC1 Boost Volume" value="1" />
-               <ctl name="ADC Left Gain" value="138" />
-               <ctl name="ADC Right Gain" value="138" />
+               <ctl name="MIC1 Volume" value="14" />
+               <ctl name="MIC1 Boost Volume" value="0" />
+               <ctl name="ADC Left Gain" value="150" />
+               <ctl name="ADC Right Gain" value="150" />
        </path>
 
        <path name="gain-recording-bt-sco-headset-in">
        <path name="gain-incall_nb-handset-mic">
                <ctl name="S2801 RMIX1_LVL" value="0" />
                <ctl name="S2801 RMIX2_LVL" value="0" />
-               <ctl name="MIC1 Volume" value="17" />
-               <ctl name="MIC1 Boost Volume" value="1" />
-               <ctl name="Line-in Volume" value="6" />
+               <ctl name="MIC1 Volume" value="11" />
+               <ctl name="MIC1 Boost Volume" value="2" />
                <ctl name="ADC Left Gain" value="127" />
                <ctl name="ADC Right Gain" value="127" />
        </path>
        <path name="gain-incall_nb-speaker-mic">
                <ctl name="S2801 RMIX1_LVL" value="0" />
                <ctl name="S2801 RMIX2_LVL" value="0" />
-               <ctl name="MIC1 Volume" value="13" />
-               <ctl name="MIC1 Boost Volume" value="0" />
-               <ctl name="Line-in Volume" value="6" />
-               <ctl name="ADC Left Gain" value="129" />
-               <ctl name="ADC Right Gain" value="129" />
+               <ctl name="MIC1 Volume" value="11" />
+               <ctl name="MIC1 Boost Volume" value="1" />
+               <ctl name="ADC Left Gain" value="135" />
+               <ctl name="ADC Right Gain" value="135" />
        </path>
 
        <path name="gain-incall_nb-headset-mic">
                <ctl name="S2801 RMIX2_LVL" value="0" />
                <ctl name="MIC2 Volume" value="11" />
                <ctl name="MIC2 Boost Volume" value="1" />
-               <ctl name="ADC Left Gain" value="127" />
-               <ctl name="ADC Right Gain" value="127" />
+               <ctl name="ADC Left Gain" value="139" />
+               <ctl name="ADC Right Gain" value="139" />
        </path>
 
        <path name="gain-incall_nb-headphone-mic">
                <ctl name="S2801 RMIX1_LVL" value="0" />
                <ctl name="S2801 RMIX2_LVL" value="0" />
-               <ctl name="MIC1 Volume" value="17" />
-               <ctl name="MIC1 Boost Volume" value="1" />
+               <ctl name="MIC1 Volume" value="11" />
+               <ctl name="MIC1 Boost Volume" value="2" />
                <ctl name="ADC Left Gain" value="127" />
                <ctl name="ADC Right Gain" value="127" />
        </path>
        <path name="gain-incall_wb-handset-mic">
                <ctl name="S2801 RMIX1_LVL" value="0" />
                <ctl name="S2801 RMIX2_LVL" value="0" />
-               <ctl name="MIC1 Volume" value="17" />
-               <ctl name="MIC1 Boost Volume" value="1" />
-               <ctl name="Line-in Volume" value="6" />
+               <ctl name="MIC1 Volume" value="11" />
+               <ctl name="MIC1 Boost Volume" value="2" />
                <ctl name="ADC Left Gain" value="127" />
                <ctl name="ADC Right Gain" value="127" />
        </path>
        <path name="gain-incall_wb-speaker-mic">
                <ctl name="S2801 RMIX1_LVL" value="0" />
                <ctl name="S2801 RMIX2_LVL" value="0" />
-               <ctl name="MIC1 Volume" value="13" />
-               <ctl name="MIC1 Boost Volume" value="0" />
-               <ctl name="Line-in Volume" value="6" />
+               <ctl name="MIC1 Volume" value="11" />
+               <ctl name="MIC1 Boost Volume" value="2" />
                <ctl name="ADC Left Gain" value="127" />
                <ctl name="ADC Right Gain" value="127" />
        </path>
        <path name="gain-incall_wb-headphone-mic">
                <ctl name="S2801 RMIX1_LVL" value="0" />
                <ctl name="S2801 RMIX2_LVL" value="0" />
-               <ctl name="MIC1 Volume" value="17" />
-               <ctl name="MIC1 Boost Volume" value="1" />
+               <ctl name="MIC1 Volume" value="11" />
+               <ctl name="MIC1 Boost Volume" value="2" />
                <ctl name="ADC Left Gain" value="127" />
                <ctl name="ADC Right Gain" value="127" />
        </path>