Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,414 Members 53,809 Now Online
XDA Developers Android and Mobile Development Forum

How to increase speaker volume for CM11 Notifications

Tip us?
 
Forboding Angel
Old
#1  
Member - OP
Thanks Meter 48
Posts: 65
Join Date: Oct 2012
Default How to increase speaker volume for CM11 Notifications

Hey guys,

Every time I install CM on a phone, I always notice that notifications are always a lot more quiet compared to stock. I have to imagine that this is erring on the side of caution by the CM guys.

Anyway, so I did some digging today and found the setting that you can change to fix this.

The file is located at:
system/etc/mixer_paths.xml

You'll need to have ES File Explorer (doesn't have to be this particular one... basically you need a root browser). Make sure to enable root browser and set system to r/w.

Just navigate to the above file, and look for this section (line 737):

Quote:
<path name="speaker">
<ctl name="SLIM RX1 MUX" value="AIF1_PB" />
<ctl name="SLIM RX2 MUX" value="AIF1_PB" />
<ctl name="SLIM_0_RX Channels" value="Two" />
<ctl name="RX7 MIX1 INP1" value="RX1" />
<ctl name="RX7 MIX1 INP2" value="RX2" />
<!-- 67 % of 124 (range 0 - 124) Register: 0x2E7-->
<ctl name="RX7 Digital Volume" value="83" />
<!-- 100 % of 8 (range 0-8) Register: 0x1E0-->
<ctl name="SPK DRV Volume" value="8" />
</path>
The line you're going to want to focus on is this one:
<ctl name="RX7 Digital Volume" value="83" />

FWIW, <!-- This is a comment and usually I tell you things that are important... not code -->.

This line above: <!-- 67 % of 124 (range 0 - 124) Register: 0x2E7--> Shows you the min and max values (0 - 124), so don't set some stupidly high number here outside of those ranges.

I started at a value of 95 (which I knew was extremely high, but I did it because I was trying to find the upper limit). Long story short, a value of 90 is right about perfect for volume vs distortion.

Anyway, hopefully this helps someone else.
 
Pallavgarg10
Old
#2  
Member
Thanks Meter 0
Posts: 30
Join Date: Jul 2013
What is the line to change for earpiece volume?
Also will doing this hinder OTA updates
I am on stock gpe firmware
 
Forboding Angel
Old
#3  
Member - OP
Thanks Meter 48
Posts: 65
Join Date: Oct 2012
Quote:
Originally Posted by Pallavgarg10 View Post
What is the line to change for earpiece volume?
Also will doing this hinder OTA updates
I am on stock gpe firmware
I'm going to take a total guess and go for line 906:

Quote:
<path name="handset-voice-cfg" >
<ctl name="CLASS_H_DSM MUX" value="DSM_HPHL_RX1" />
<!-- 67 % of 124 (range 0 - 124) Register: 0x2B7 -->
<ctl name="RX1 Digital Volume" value="83" />
<ctl name="DAC1 Switch" value="1" />
<ctl name="EAR PA Gain" value="POS_6_DB" />
<!-- 62 % of 124 (range 0 - 124) Register: 0x356 -->
<ctl name="IIR2 INP1 Volume" value="77" />
</path>
Keep in mind, this is for cm11, no other rom (although many other roms use cm as a base, so this MAY apply to them as well. YMMV.).
Tags
cm11, notifications, volume
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes