[Xperia Z2 Themes and Apps] raginginferno:
So comparing [MENTION=4084640]Hogyoku[/MENTION] original file against the stock cyanogen I managed to figure out which values to edit to make the changes. I had echo issues with Hogyoku mixer_path.xml so I had to do this manual to get it to what I want. Here is all of the modifications I managed to figure out in the mixer_path.xml.

(This can usually also apply to other Cyanogenmod / AOSP phones as well)

Make the ringtone use both speakers, change "Bottom" to "Both"

-<path name="ringtone-speaker">

<ctl value="Ringtone" name="TFA98XX_PARAM_TYPE"/>

<ctl value="Both" name="TFA98XX_CHANNEL"/>

<ctl value="1" name="TFA98XX_SPKR_AMP"/>

</path>

Adjust the speaker volume, change the "RX7 Digital Volume", (Also change "One" to "Both"... not sure if this make a difference since both speakers work anyways)

-<path name="speaker-protected">

<ctl value="AIF1_PB" name="SLIM RX1 MUX"/>

<ctl value="Both" name="SLIM_0_RX Channels"/>

<ctl value="RX1" name="RX7 MIX1 INP1"/>

<!-- 54 % of 124 (range 0 - 124) Register: 0x2E7 -->

<ctl value="85" name="RX7 Digital Volume"/>

<ctl value="1" name="COMP0 Switch"/>

</path>

Increase headphone volume, like mentioned above, max HPHL should be 20, and adjust RX1/RX2 Digital Volume for the rest. (Don't make it too high)

-<path name="headphones">

<ctl value="AIF1_PB" name="SLIM RX1 MUX"/>

<ctl value="AIF1_PB" name="SLIM RX2 MUX"/>

<ctl value="Two" name="SLIM_0_RX Channels"/>

<ctl value="RX1" name="RX1 MIX1 INP1"/>

<ctl value="RX2" name="RX2 MIX1 INP1"/>

<ctl value="DSM_HPHL_RX1" name="CLASS_H_DSM MUX"/>

<ctl value="1" name="HPHL DAC Switch"/>

<ctl value="0" name="COMP1 Switch"/>

<!--75 % of 20 register: 0x1AE-->

<ctl value="20" name="HPHL Volume"/>

<!--75 % of 20 register: 0x1B4-->

<ctl value="20" name="HPHR Volume"/>

<!--66 % of 124 (rounded) register: 0x2B7-->

<ctl value="83" name="RX1 Digital Volume"/>

<!--66 % of 124 (rounded) register: 0x2BF-->

<ctl value="83" name="RX2 Digital Volume"/>

</path>

Have speakerphone use both speakers. change "Bottom" to "Both"

-<path name="voice-speaker">

<ctl value="Speakerphone" name="TFA98XX_PARAM_TYPE"/>

<ctl value="Both" name="TFA98XX_CHANNEL"/>

<ctl value="1" name="TFA98XX_SPKR_AMP"/>

<ctl value="QUAT_MI2S_TX" name="VOC_EXT_EC MUX"/>

<ctl value="QUAT_MI2S_TX" name="AUDIO_EXT_EC MUX"/>

</path>

Change the sensitivity of the mic for voice calls, change the "DEC3 Volume" value. (I tried to drop this value when I had echo issues... worked... sorta... I would sound more muffled and the party on the other end can still hear something)

-<path name="handset-mic">

<path name="adc4"/>

<!-- 67 % of 124 (range 0 - 124) Register: 0x231 -->

<ctl value="83" name="DEC3 Volume"/>

<!-- 63 % of 19 (range 0 - 19) Register: 0x15F -->

<ctl value="12" name="ADC4 Volume"/>

</path>

Change volume of the handset speaker for voice call. Change "RX Digital Volume" value. I haven't confirmed this one personally on the Z2... I've done handset speaker for the Z1 because one of the mods was so loud that it was piercing my ears and I the volume couldn't be made any quieter. I think it's this parameter... I can't really remember. Someone will need to try it out.

-<path name="handset-voice-cfg">

<ctl value="DSM_HPHL_RX1" name="CLASS_H_DSM MUX"/>

<!-- 67 % of 124 (range 0 - 124) Register: 0x2B7 -->

<ctl value="83" name="RX1 Digital Volume"/>

<ctl value="1" name="DAC1 Switch"/>

<ctl value="POS_6_DB" name="EAR PA Gain"/>

<!-- 62 % of 124 (range 0 - 124) Register: 0x356 -->

<ctl value="77" name="IIR2 INP1 Volume"/>

</path>

Also this was added to the mixer_path.xml... I don't know what this does... I didn't add it because it might the cause of my echo issue. In any case everything seems to be fine without it. Maybe someone can explain it.

-<path name="mono-mic-split-stereo">

<ctl value="1" name="AIF1_CAP Mixer SLIM TX7"/>

<ctl value="1" name="AIF1_CAP Mixer SLIM TX8"/>

<ctl value="DEC3" name="SLIM TX7 MUX"/>

<ctl value="DEC3" name="SLIM TX8 MUX"/>

<ctl value="ADC4" name="DEC3 MUX"/>

<!-- 66 % of 124 (range 0 - 124) Register: 0x231 -->

<ctl value="82" name="DEC3 Volume"/>

<!-- 63 % of 19 (range 0 - 19) Register: 0x15F -->

<ctl value="12" name="ADC4 Volume"/>

<ctl value="Two" name="SLIM_0_TX Channels"/>

</path>