Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,888 Members 36,738 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 49
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.
The Following User Says Thank You to Forboding Angel For This Useful Post: [ Click to Expand ]
 
Pallavgarg10
Old
#2  
Member
Thanks Meter 1
Posts: 43
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 49
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.).
 
enaybee
Old
#4  
Senior Member
Thanks Meter 50
Posts: 220
Join Date: Oct 2008
Location: Not Too Far
This edit worked on Stock GPE 4.4.4 ROM with no issues. I tried 90 first but its was right at the edge of speaker limit, so I changed it to 88 and its great. Louder than before and no soft anymore. Thanks for the neat edit.
My cellphone journey:


Devices:
Phones-in use: Nexus 5
Phones-backup: HTC One X, iPhone 3G, HTC Fuze
Tablets: Galaxy Tab S 8.4, LG G Pad 8.3, Kindle HDX (8.9), Dell Venue 8, Archos 605 wifi [160gb]
Devices Sold or Broken or given away: AT&T LG G3 (Sold), S III (i747), GNex (i9250), S II (i9100), SGS Captivate, Nexus 7, iPhone 4, Apple iPad2, Nexus 7 FHD, Archos 80|G9


If my post has helped you, please hit "Thanks".
 
arthaz28
Old
#5  
Member
Thanks Meter 0
Posts: 34
Join Date: Sep 2012
Thanks!

Do you know how to increase the volume for call ringtones?

Again, thank you.
Tags
cm11, notifications, volume
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes