FIX: Crackling static noise in headphones on CM13 Kenzo - Xiaomi Redmi Note 3 Guides, News, & Discussion

Listening to music on my Redmi Note 3 Pro (Kenzo), I noticed a loud crackling static noise when I use my headphones on CM13 and related ROMs like Resurrection Remix. It's especially noticeable when a song starts to play. I didn't get this on MIUI 8.
To fix it, edit the following file: /system/etc/mixer_paths_wcd9326.xml. Please make a backup first.
Change these lines:
<ctl name="HPHL Volume" value="20" />
<ctl name="HPHR Volume" value="20" />
To this:
<ctl name="HPHL Volume" value="3" />
<ctl name="HPHR Volume" value="3" />
Delete these following lines:
<ctl name="COMP1 Switch" value="1" />
<ctl name="COMP2 Switch" value="1" />
<ctl name="COMP7 Switch" value="1" />
<ctl name="COMP8 Switch" value="1" />
Save the file and reboot. You'll need to increase headphone volume a lot more to match the same level as before but you'll get crystal clear sound. I'm using old Xiaomi Pistons and music sounds amazing now even using the basic CM AudioFX app.

There's a simpler fix. Open the same file (/etc/mixer_paths_wcd9326.xml and go to line 111. You'll see:
<ctl name="RX HPH Mode" value="CLS_H_HIFI" />
Replace CLS_H_HIFI with CLS_H_LP
Save, reboot and you're good.
Plus there doesn't seem to be a volume issue with this fix.

I tried that before and it didn't fix the issue. I could still hear hissing when using Xiaomi pistons. Maybe it's a problem with the amp gain set too high, you end up getting a lot of noise when nothing's playing.

oatcooky said:
I tried that before and it didn't fix the issue. I could still hear hissing when using Xiaomi pistons. Maybe it's a problem with the amp gain set too high, you end up getting a lot of noise when nothing's playing.
Click to expand...
Click to collapse
Weird, I have a set of Piston 3's and it fixed it for me.

Hi guys, I have cracking noise via Bluetooth when in the car making a phone call, is it a separate fix?

didnt work for me
still have this noise

You might want to try this too.
gman88667733 said:
... In a kernel editor app or the one provided with the kernel, go into sound settings and reduce the gain level of the headphones from the stock level of around 20 to -20, this will reduce the maximum volume a bit, but it gets rid of 100% of the white noise....
Click to expand...
Click to collapse
A reddit post (can't find it right now) suggested that -12db is the optimal value.
Good luck

I do not find the line ''<ctl name="RX HPH Mode" value="CLS_H_HIFI" />'' with miui9 on android 6 for the Kate
I tried the tips in the OP but this fails too.
I already changed the speaker materially.
---------- Post added at 04:52 PM ---------- Previous post was at 04:36 PM ----------
what kernel app can change the settings about the sound ?

Related

Easy headphone volume hack

After doing a similar thing on my Note II it was worth trying the Nexus 7 and it works!
Rooted of course, go to System> Etc and open mixer_paths.xml
Modify the following lines in the first section to the below:
<ctl name="HPHL Volume" value="12" />
<ctl name="HPHR Volume" value="12" />
<ctl name="RX1 Digital Volume" value="92" />
<ctl name="RX2 Digital Volume" value="92" />
Reboot and it's loud as hell.
I use ES file explorer, open it with ES Note Editor and remember in ES root explorer settings to select Mount R/W
Hope this helps!
Keith
The RX1 & RX2 change seems to boost the speaker as well. Will have to play about a bit to see what we can achieve.
Keith
kradcliffe said:
After doing a similar thing on my Note II it was worth trying the Nexus 7 and it works!
Rooted of course, go to System> Etc and open mixer_paths.xml
Modify the following lines in the first section to the below:
<ctl name="HPHL Volume" value="12" />
<ctl name="HPHR Volume" value="12" />
<ctl name="RX1 Digital Volume" value="92" />
<ctl name="RX2 Digital Volume" value="92" />
Reboot and it's loud as hell.
I use ES file explorer, open it with ES Note Editor and remember in ES root explorer settings to select Mount R/W
Hope this helps!
Keith
Click to expand...
Click to collapse
is there an external sound speaker mod? im using fauxsound app and its loud as hell too but it distorts the sound, the louder i go up
does that make the sound quality worse if u have it louder
Not sure but if you play about with the settings in that file you will find out. (always keep a backup of the original)
Keith
sound quality
Does anyone else notice sound quality using headphone is not as good as sound from nexus 10 from samsung? cheap vs expensive/quality.
androidfanforever said:
Does anyone else notice sound quality using headphone is not as good as sound from nexus 10 from samsung? cheap vs expensive/quality.
Click to expand...
Click to collapse
Used as line out, the quality is actually very good. Some measurements are here:
http://www.gsmarena.com/asus_google_nexus_7_2_2013-review-964p6.php
However, with headphones connected you get some distortions. Even worse, I measured the output impedance and it's a whopping 38 Ohms. This will cause substantial frequency shifts with quite a few headphones.
There also is a noticeable noise floor, so if your volume control is not close to max, you should lower the headphone amp gain (the HPHL/HPHR mentioned in the first post).
I like it! Thanks!
I have bluetooth headphones I was wondering if this hack only works for headphones hooked directly into the jack? I made a backup copied file and saved it to SD and changed code but don't notice a difference. I realize this might be a stupid question.
I've had another look in the file and can't see an obvious way of increasing the BT volume. Leave it with me ,.......
Can anyone confirm this is actually working and not just placebo effect?
It definitely works.
You need to reboot the tablet for it to take effect.
Also make sure the file has write permissions and saves properly.
Keith
CouttsPhotog said:
Can anyone confirm this is actually working and not just placebo effect?
Click to expand...
Click to collapse
It works. This stuff is initializing ALSA mixer settings, using something like the 'AlsaMixer' app, you can set it at runtime.
Realy usefull, thanks
Brilliant, thanks for posting this, made a massive difference to mine.
I made a small typo and it refused to play any music, but a quick correction and a reboot solved that
works :good::good::good:
tried the mod but it didn't really blow me away with loudness, im also using viper4android( fauxsound NOT installed)
maybe only works with earphones? im using it with speakers right now
i found fauxsound app to be the LOUDEST sound mod when installed by itself, but it distorts at max settings
edit: yes its loud as FCUK now using headphones aux port at MAX volume, i have BT speaker bar hooked up and its loud!!! too bad it doesn't raise the n7 speakers volume much
As stated previously this hack is for headphone volume only.
The speakers are pretty crap and distort above the preset volume so that is why I have left that alone in case they get blown with excessive volume.
Keith
Thank you very much for the simple hack.
One of the reasons that I preferred my iPhone 4 over Nexus 7 2013 was the higher headphone volume even after using viper4android with gain but now loudness is very good.
I've only changed the first 2 lines though and only to 10 not 12 because 12 was too loud and distorted
<ctl name="HPHL Volume" value="10" />
<ctl name="HPHR Volume" value="10" />
These tweak doesnt increase speaker volume the RX line is for the earpiece
kradcliffe said:
As stated previously this hack is for headphone volume only.
The speakers are pretty crap and distort above the preset volume so that is why I have left that alone in case they get blown with excessive volume.
Keith
Click to expand...
Click to collapse
lol yup, i used fauxsound alot and i had to RMA mine cuz one of the speakers was messed up! paid like 14 bucks shipping to get it fixed

(Tweak) Customize your Headphones and Speaker loudness output! (5.1.1, 5.0.2, 4.4.4)

Hey XDA Developers,
I am a huge fan of all your work and follow all your stuff since I got my Neo V in 2011. Now I upgraded to a Z3 and reeeally love it .
Like always with all the Handsets and Ipods, the headphone output is not as loud as you want it, so I was looking for some tweaks to find here and there and was able to get some stuff in the post with the Audio Mod zohaib0001 thanks for that.
But if you dont want to flash a whole mod and just want to increase the output a little bit you can edit the mixer_paths.xml in the etc folder on 5.1.1 or in etc\media on 4.4.4.
First of all, you need Root on your phone and enable R\W on the Device. Second, BACKUP the mixer_paths.xml to somewhere else. If you change a bit more that wanted, just copy it back and be happy to be back again with the normal setings.
If you open it in any Root Explorer you have, go till the lines:
<path name="sidetone-headphones"> a bit over the middle of the whole code.
In the following lines you can see some clt values, all the values with 38, 82, 77... will increase or decrease the output. You just need to set it a little higher for a result, for example +5 on everything, so play a bit with it and you will find out. I changed it till the USB Headphones setting came up, if you use one of these, maybe if will affect too. After you done it, chech if the permision is still set to rw-r--r-- and restart your Phone
Here is my configurated file for litte louder Headphones on 5.1.1. I dont know if it works on 4.4.4, you can test it and tell me. If it wont work, an alert will come up, that the audio stoped working, like on my, when I forgot so set the right permissions.
http://www.mediafire.com/download/f0o9teky5yw10ax/mixer_paths.xml
Its my first post, so be kind and if I can do something better just write it here . And also, I hope my english is good enought to understand everything. Just some thanks will make me happy
Cheers Kamyhra
Then you know me also from the old Neo V days ^^
I jumped from Neo V to Xperia P and From Xperia P to Xperia Z and from Xperia Z to Z2 and now Z3 ^^
“Sent From MWE V8.0.0 On My Z3”
do you know which ones are just for the speakers?
Cow07 said:
do you know which ones are just for the speakers?
Click to expand...
Click to collapse
+1
Sent from my D6603 using Tapatalk
Kamyhra said:
Hey XDA Developers,
I am a huge fan of all your work and follow all your stuff since I got my Neo V in 2011. Now I upgraded to a Z3 and reeeally love it .
Like always with all the Handsets and Ipods, the headphone output is not as loud as you want it, so I was looking for some tweaks to find here and there and was able to get some stuff in the post with the Audio Mod zohaib0001 thanks for that.
But if you dont want to flash a whole mod and just want to increase the output a little bit you can edit the mixer_paths.xml in the etc folder on 5.1.1 or in etc\media on 4.4.4.
First of all, you need Root on your phone and enable R\W on the Device. Second, BACKUP the mixer_paths.xml to somewhere else. If you change a bit more that wanted, just copy it back and be happy to be back again with the normal setings.
If you open it in any Root Explorer you have, go till the lines:
<path name="sidetone-headphones"> a bit over the middle of the whole code.
In the following lines you can see some clt values, all the values with 38, 82, 77... will increase or decrease the output. You just need to set it a little higher for a result, for example +5 on everything, so play a bit with it and you will find out. I changed it till the USB Headphones setting came up, if you use one of these, maybe if will affect too. After you done it, chech if the permision is still set to rw-r--r-- and restart your Phone
Here is my configurated file for litte louder Headphones on 5.1.1. I dont know if it works on 4.4.4, you can test it and tell me. If it wont work, an alert will come up, that the audio stoped working, like on my, when I forgot so set the right permissions.
http://www.mediafire.com/download/f0o9teky5yw10ax/mixer_paths.xml
Its my first post, so be kind and if I can do something better just write it here . And also, I hope my english is good enought to understand everything. Just some thanks will make me happy
Cheers Kamyhra
Click to expand...
Click to collapse
Thanks a ton buddy.
I just bought the sony MDR V6 headphones but due to its higher impedance it wasn't loud enough at max volume on my z3.
I was searching everywhere on how to increase the headphone outputs and you saved me on the first day!
Hey guys,
sorry for the late response I will check today what is for the headphone and what is for the speaker only.
Utsav911 you are welcome, thats what i am here to help a bit with my little knowlagde.
Cheers
hello
i follow this instruction but there isnt any change in vol headphone.
plz tell us which lines and numbers we must edit for boost headphone exactly? plz take screenshots and share .
Sent from my iPhone using Tapatalk
bradgh said:
hello
i follow this instruction but there isnt any change in vol headphone.
plz tell us which lines and numbers we must edit for boost headphone exactly? plz take screenshots and share .
Sent from my iPhone using Tapatalk
Click to expand...
Click to collapse
who is know?
Sent from my iPhone using Tapatalk
bradgh said:
who is know?
Sent from my iPhone using Tapatalk
Click to expand...
Click to collapse
try replacing the file with the one in OP. I edited the file myself as stated in the first post and it worked.
Are you on android 5.1.1?
utsav911 said:
try replacing the file with the one in OP. I edited the file myself as stated in the first post and it worked.
Are you on android 5.1.1?
Click to expand...
Click to collapse
yes im on 5.1.1, i need more headphone vol and i want know which line.
Sent from my iPhone using Tapatalk
what about increase sound of earpiece call volume ? i mean when iam on a call i can hardly hear the other person calling.. i am on 5.1 moonwalker 6653 model..pls pls help ..this is driving me nuts
I've compared the stock one vs the version from OP, and boosted pretty much everything a bit more, I believe headphones are now a fair bit louder, yet to test the rest!
I believe this is the aux port for media:
<path name="sidetone-headphones">
<path name="sidetone-iir" />
<!-- 45 % of 124 (range 0 - 124) Register: 0x340 -->
<ctl name="IIR1 INP1 Volume" value="45" /> (originally 37) (r1983)
And:
<path name="headphones-regulation"> ( from R2233), the RX1 and RX2 values, I changed them to 86 from 76.
then R2349:
path name="speaker-and-headphones">
<path name="speaker" />
<path name="headphones" />
<ctl name="RX1 Digital Volume" value="80" />
<ctl name="RX2 Digital Volume" value="80" />
</path>
(was 70)
<path name="speaker-and-anc-headphones">
Then: R2513 and R2515:
<ctl name="RX1 Digital Volume" value="96" />
<!--68 % of 124 (rounded) register: 0x2BF-->
<ctl name="RX2 Digital Volume" value="96" />
Phone calls have their own ''volume'' settings, I didn't touch those and left the values from OP (so slightly boosted from stock).
Needs a phone restart too!
EDIT:
Tested a bit more on some songs that were way to silent before, and I certainly got a significant boost.
Does anyone know what the max values are? 100 ?
I wish to boost the 3.5mm jack port even more, can regulate the volume with the button anyhow (to get it lower if needed), so I want my XML file with the media settings on max, at least for the 3.5mm port.
I gave it a try, but no differences in the volume with headphones, just a little bit with clearaudio+ disabled, but not much
thesplitter said:
I gave it a try, but no differences in the volume with headphones, just a little bit with clearaudio+ disabled, but not much
Click to expand...
Click to collapse
Afaik you need that disabled anyhow as that reduces your volume, I certainly got a noticeable change with my values.
Did you reboot the phone ?
Clear cache and try again.
Enviado desde mi D6603 mediante Tapatalk
Hello Sir, thanks for the tutorial as I were able to boost my headphone volume to my liking. But, what is the settings to tweak for a louder in-call volume please?
snovvdog said:
I've compared the stock one vs the version from OP, and boosted pretty much everything a bit more, I believe headphones are now a fair bit louder, yet to test the rest!
I believe this is the aux port for media:
<path name="sidetone-headphones">
<path name="sidetone-iir" />
<!-- 45 % of 124 (range 0 - 124) Register: 0x340 -->
<ctl name="IIR1 INP1 Volume" value="45" /> (originally 37) (r1983)
And:
<path name="headphones-regulation"> ( from R2233), the RX1 and RX2 values, I changed them to 86 from 76.
then R2349:
path name="speaker-and-headphones">
<path name="speaker" />
<path name="headphones" />
<ctl name="RX1 Digital Volume" value="80" />
<ctl name="RX2 Digital Volume" value="80" />
</path>
(was 70)
<path name="speaker-and-anc-headphones">
Then: R2513 and R2515:
<ctl name="RX1 Digital Volume" value="96" />
<!--68 % of 124 (rounded) register: 0x2BF-->
<ctl name="RX2 Digital Volume" value="96" />
Phone calls have their own ''volume'' settings, I didn't touch those and left the values from OP (so slightly boosted from stock).
Needs a phone restart too!
EDIT:
Tested a bit more on some songs that were way to silent before, and I certainly got a significant boost.
Does anyone know what the max values are? 100 ?
I wish to boost the 3.5mm jack port even more, can regulate the volume with the button anyhow (to get it lower if needed), so I want my XML file with the media settings on max, at least for the 3.5mm port.
Click to expand...
Click to collapse
Hey, did you try increasing the loudspeaker volume?
Plz help me
guys i tried to change the values.. i made a back up of that file too.. but all of a sudden my sound just went off.. then what i did was that i delete the file and replaced the original one.. but still i dont have sound.. i tried to wipe delvick cache and the cache .. yet i dont have sound. plz help me :/
sylaw said:
guys i tried to change the values.. i made a back up of that file too.. but all of a sudden my sound just went off.. then what i did was that i delete the file and replaced the original one.. but still i dont have sound.. i tried to wipe delvick cache and the cache .. yet i dont have sound. plz help me :/
Click to expand...
Click to collapse
ookay i managed to restore my backup and then tweak the settings again... Thank you for your step by step guide @snovvdog
Did anyone successfully test this in MM .291? Would this interfere with Viper4X configuration?

Sound mixer_paths.xml android

Hi.
I wonder if there is anyone who tried mixer_paths.xml to change sound input paths and output paths with a streaming music.
Following is my case.
Phone A <----> Phone B <------ Phone C
Above A, B has a existing phone call going on. And phone C is streaming music to Phone B, and Phone A can hear the music on his end. It is not necessary to play music on Phone B's side, the ultimate goal here is to transfer music from phone C to Phone A.
I tried to chang mixer_paths.xml, like following.
<path name="voice-speaker">
<ctl name="SLIM_0_RX Channels" value="Two" />//
<ctl name="RX2 MIX1 INP1" value="RX1" />//
<ctl name="RDAC4 MUX" value="DEM2" />//
</path>
but, it the sound from Phone C still doesn't go to Phone A. I would appreciate if someone can give me a pointer. As a matter of fact, I am not sure what <ctl name="SLIM_0_RX Channels" value="Two" /> or <ctl name="RX2 MIX1 INP1" value="RX1" /> or <ctl name="RDAC4 MUX" value="DEM2" /> means that much.
If this is not the right place please redirect me to a right place.
Thank you.
I'm not sure exactly what you're trying to do, your explanation makes no sense to me.
As to what all of those channels mean - those are the channel designators for Qualcomm's audio interface circuitry. What they mean varies from device to device depending on how the device manufacturer set things up.
In general, working with that file is a nightmare and no developer willingly touches it unless they HAVE to.
https://github.com/omnirom/android_hardware_qcom_audio-caf-msm8974 is the source code for the stuff that processes this file on 8974 devices

Best method to increase max call volume? (Lineage 14.1)

Hello,
After an amateur screen repair, my proximity sensor messed up and I can't hear anyone during a phone call except in a quiet room.
I've disabled the proximity sensor by installing a recompiled Dialer APK, but I need a solution for the handset ear speaker.
I am using the LineageOS kernel & OS 14.1.1
I have edited the mixer_paths.xml according to the following:
Code:
-<path name="voice-handset">
<path name="handset"/>
<ctl value="[COLOR="Red"]66[/COLOR]" name="RX1 Digital Volume"/>
<ctl value="POS_6_DB" name="EAR PA Gain"/>
</path>
... where 66 was originally 62. But the in-call volume is still too low. Am I editing the right setting? Or am I putting too low a figure (I notice other devices have figures in the upper 80s).
I have same question

Headphone volume

Hi guys,
I have a rooted Nokia 6 and would like to boost the volume of the headphone jack. I always did edit 'mixer_paths.xml' on my other phones (HPHL and HPHR volume). It always worked.
But Nokia 6 has 21 different mixer_paths files and I'm stuck here.
The stock volume is okay for in ear buds, but not for big headphones unfortunately.
Was anyone successful with boosting the volume?
Thanks
Bad news. I modified alle 21 files and indeed, it raised the volume. BUT: the amplifier is really weak and has almost no more headroom. Maybe 10% louder that without modification. HTC A9 and Sony Z3 which I do not longer own have been a lot louder.
After tweaking some more I'm now happy with these values:
The file to edit: mixer_paths_ple.xml (/system/vendor/etc/..)
Line 52-56:
<ctl name="HPHL Volume" value="20" />
<ctl name="HPHR Volume" value="20" />
<ctl name="RX1 Digital Volume" value="86" />
<ctl name="RX2 Digital Volume" value="86" />
<ctl name="RX3 Digital Volume" value="86" />
Line 64-65:
<ctl name="DEC1 Volume" value="86" />
<ctl name="DEC2 Volume" value="86" />
Line 1224 (not sure, if necessary):
<ctl name="RX1 Digital Volume" value="86" />
If my amp dies, I will tell you xD
drophex said:
Bad news. I modified alle 21 files and indeed, it raised the volume. BUT: the amplifier is really weak and has almost no more headroom. Maybe 10% louder that without modification. HTC A9 and Sony Z3 which I do not longer own have been a lot louder.
After tweaking some more I'm now happy with these values:
The file to edit: mixer_paths_ple.xml (/system/vendor/etc/..)
Line 52-56:
<ctl name="HPHL Volume" value="20" />
<ctl name="HPHR Volume" value="20" />
<ctl name="RX1 Digital Volume" value="86" />
<ctl name="RX2 Digital Volume" value="86" />
<ctl name="RX3 Digital Volume" value="86" />
Line 64-65:
<ctl name="DEC1 Volume" value="86" />
<ctl name="DEC2 Volume" value="86" />
Line 1224 (not sure, if necessary):
<ctl name="RX1 Digital Volume" value="86" />
If my amp dies, I will tell you xD
Click to expand...
Click to collapse
I have a Nokia 5 and I'm also trying to make the headphone volume louder. But if I change the HPHL volume from 9 to 20 on all the mixer paths files my phone has no volume. But if I only change the mixer_paths.xml my volume stays the same. Can you help me?
Cheers
---------- Post added at 10:03 AM ---------- Previous post was at 09:59 AM ----------
drophex said:
Hi guys,
I have a rooted Nokia 6 and would like to boost the volume of the headphone jack. I always did edit 'mixer_paths.xml' on my other phones (HPHL and HPHR volume). It always worked.
But Nokia 6 has 21 different mixer_paths files and I'm stuck here.
The stock volume is okay for in ear buds, but not for big headphones unfortunately.
Was anyone successful with boosting the volume?
Thanks
Click to expand...
Click to collapse
Did you manage to boost the volume? If so, could you please tell me how?

Categories

Resources