** Added Mono + Disable Camera NS
What is this?
This post is a collection of all the audio related mods I have created from the OnePlus 3. The mods so far are: Mono surround sound, Camcorder Mic Gain, Cam Mic Gain plus Mono Surround sound, and various Camera recording tests. The cam disable NS is the latest for fixing the noise suppression on video recordings. If you have a request, then make it here and I'll try to make it if I can.
Various Mod Explanations
What is it?***Mono Surround***
This mod will activate you front earpiece speaker in conjunction with the bottom main speaker any time Speaker mode is used for example playing music, watching movies, shows, you tube and so on, creating an almost surround sound type of effect. This will not effect notifications because that is a different setting that I don't really care about.
Mono Surround Sound
This version plays all audio through one channel. This basically means that you now have 2 mono speakers. Fair Warning, I find the sound very underwhelming. WARNING: MESSING WITH YOUR EQ WILL ALSO EFFECT THE EARPIECE. IT COULD POTENTIALLY BLOW IT OUT IF YOU INCREASE THE VOLUME OR BASS TOO MUCH
Camcorder Mic Gain
This version increases the microphone gain for the audio recorded through the camcorder only. I did this as a workaround for the way too aggressive noise cancellation that happens. This won't fix the problem but hopefully make it more bearable. If I find a better way to fix this, I will update this mod.
Camcorder Mic Fix Test 1
This version uses a different stereo microphone path to record audio for the camcorder. This is a test and I don't know if it's better than stock or not. Please test and use the poll so I can see if its working or not
Camcorder Disable NS v4
V1: This version attempts to disable the noise suppression for the camcorder in the audio_platform_info.xml.
V2: It also increases the mic gain by 12db for the camcorder only on CM
V3: switches to stereo recording for CM
V4: Increases gain for OOS by 12 db
Prerequisites and installation instructions
MUST be rooted
MUST be on CM (OOS is untested)
MUST have TWRP installed
Flash one of the zips below
reboot
This mod modifies the mixer_path_tasha.xml in the /system/etc folder. I have only tested this on CM13. I don't guarantee it will work for your rom, because this is based off Blisspop rom. Although the worst that'll happen is you'll lose sound and mic. If you do lose sound, flash the revert zip to restore your original file. In a worst case scenario where you messed up the permissions and are in a bootloop, dirty flash your rom.
DIY
Background:
OnePlus is using deep buffering for their audio processing to conserve battery life. If you want to disable deep buffering, go to your build.prop and edit this line to false
Note: Changing this will change the sound mapping in the mixer_paths_tasha
Code:
audio.deep_buffer.media=true
audio_platform_info.xml
Speaker is referenced as "quat_i2s" with the interface "SLIMBUS_0_RX"
mixer_paths_tasha.xml
Audio playback for music
Code:
<path name="deep-buffer-playback quat_i2s">
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia1" value="1" />
</path>
Audio playback for notifications
Code:
<path name="low-latency-playback quat_i2s">
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia5" value="1" />
</path>
Note: If deep buffering is enabled, all sound will go through the low latency playback path.
Mono Surround Sound
Code:
<path name="deep-buffer-playback quat_i2s">
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia1" value="1" />
<ctl name="SLIM RX0 MUX" value="AIF_MIX1_PB" />
<ctl name="SLIM_0_RX Channels" value="One" />
<ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
<ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT" />
<ctl name="EAR PA Gain" value="G_8_DB" />
<ctl name="RX0 Digital Volume" value="95" />
<ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia1" value="1" />
</path>
To change the volume of the earpiece for audio playback, change RX0 Digital Volume to a value from 1 to 128. Anything above 95 might be dangerous
To disable the speaker and only use the earpiece for audio playback, delete the line <ctl name="QUAT_MI2S_RX Audio Mixer MultiMedia1" value="1" />
Earpiece Volume
Code:
<path name="handset">
<ctl name="SLIM RX0 MUX" value="AIF_MIX1_PB" />
<ctl name="SLIM_0_RX Channels" value="One" />
<ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
<ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT" />
<ctl name="EAR PA Gain" value="G_6_DB" />
</path>
To modify the earpiece volume for anything that uses the earpiece for output add the line inside the path and modify the volume to your liking from 1 to 128
Code:
<ctl name="RX0 Digital Volume" value="95" />
to this path
Earpiece Mic
Code:
<path name="handset-mic">
<path name="adc4" />
</path>
Add the following line inside the path and change the value to your liking from 1 to 124 where 84 is the default. Each increase by 1 corresponds to 1db of gain.
Code:
<ctl name="DEC4 Volume" value="84" />
Headphones Volume
This might be the headphones path that is being used but I haven't tested it.
Code:
<path name="headphones">
<ctl name="SLIM RX5 MUX" value="AIF4_PB" />
<ctl name="SLIM RX6 MUX" value="AIF4_PB" />
<ctl name="SLIM_6_RX Channels" value="Two" />
<!-- #ifdef VENDOR_EDIT-->
<!-- [email protected],2016/4/7,use 24bits to get rid of 16bits innate noise -->
<ctl name="SLIM_0_RX Format" value="S24_LE" />
<!-- #endif VENDOR_EDIT-->
<ctl name="RX INT1_2 MUX" value="RX5" />
<ctl name="RX INT2_2 MUX" value="RX6" />
<ctl name="RX INT1 DEM MUX" value="CLSH_DSM_OUT" />
<ctl name="RX INT2 DEM MUX" value="CLSH_DSM_OUT" />
<!-- #ifdef VENDOR_EDIT -->
<!-- /*[email protected] , 2016/02/19, add for hw require*/ -->
<ctl name="HPHL Volume" value="19" />
<ctl name="HPHR Volume" value="19" />
<!-- #endif -->
</path>
Feel free to play around with the volume values
Adjusting Camera Mic Volume
This is only if you have flashed the disable NS Camera Fix
Code:
<path name="speaker-stereo-dmic-ef">
<path name="speaker-dmic-endfire" />
<!-- #ifdef VENDOR_EDIT -->
<!-- /*[email protected] , 2016/04/19, mic power high level mode and add adc volume*/ -->
<ctl name="ADC4 Volume" value="11" />
<ctl name="ADC5 Volume" value="11" />
<ctl name="AMIC_3_4 PWR MODE" value="HIGH_PERF" />
<ctl name="AMIC_5_6 PWR MODE" value="HIGH_PERF" />
<ctl name="DEC4 Volume" value="96" />
<ctl name="DEC5 Volume" value="96" />
<!-- #endif -->
</path>
DEC4 and DEC5 correspond to different channels. If you want to increase the gain equally, adjust DEC4 and DEC5 volume to whatever you like. 84 is the default value which means 0db gain. Each increment by 1 indicates a 1db gain for the corresponding channel. DEC volume ranges from 1 to 124.
Credits
All credits go to @chdloc for disabling the noise suppression and @mhoppi for testing
Flashable Zips are below
@abhi08638 I request your help to find out the handset mic values and handset speaker values (not earpiece), as I couldn't find them similar to many others mixer_paths.XML files which I have been modifying for several of my Android devices like OPO, OPT, Mi3 etc. Basically I want to increase the speaker and mic volumes of the phone. Can you just point me in the right direction? Already checked the mixer_path_tasha.xml but couldn't find anything! TIA.
@abhi08638 well nice to see you on op3 development
I will test ur mods on OOS and report u asap.
@abhi08638 is there a way to turn DOWN overall volume? I work in an office and even the lowest volume is quite high... Thanks!
Can u make Dolby atmos mod for op3
HatRiGt said:
Can u make Dolby atmos mod for op3
Click to expand...
Click to collapse
did you try the latest test zip from dolby atmos thread in android software development forum?
I can confirm that mono mod is working perfectly on my OP3 with Viper and extremebeats...!!
Thanks a lot for this mod..!!
Joyo-rocker said:
I can confirm that mono mod is working perfectly on my OP3 with Viper and extremebeats...!!
Thanks a lot for this mod..!!
Click to expand...
Click to collapse
which viper package did you use? i tried to install but i causes my OP3 won't boot up
The zips work fine on oxygen os. Thanks abhi!
Works great wit op3lite rom 3.1.3...awsome effort bro..thnks..?
lowest speaker volume too loud
kristofpetho said:
@abhi08638 is there a way to turn DOWN overall volume? I work in an office and even the lowest volume is quite high... Thanks!
Click to expand...
Click to collapse
I would appreciate more choices in lower speaker volumes as well. The lowest speaker volume is too loud for 90% of the environments/situations I operate in. thanks for considering it,
mweis said:
which viper package did you use? i tried to install but i causes my OP3 won't boot up
Click to expand...
Click to collapse
Just flash the zip from xtrememusic audio mod.
Google it or search on XDA.
The viper package comes along it...!
http://forum.xda-developers.com/android/software/mod-beatsaudio-e-xloud-installer-t3029951
There's the link..!
srvoleti said:
@abhi08638 I request your help to find out the handset mic values and handset speaker values (not earpiece), as I couldn't find them similar to many others mixer_paths.XML files which I have been modifying for several of my Android devices like OPO, OPT, Mi3 etc. Basically I want to increase the speaker and mic volumes of the phone. Can you just point me in the right direction? Already checked the mixer_path_tasha.xml but couldn't find anything! TIA.
Click to expand...
Click to collapse
This mixer paths is very odd, I don't know how to change the speaker volume since there is only an enable/disable option for speaker sounds. Ex: there's a different value for speaker notifications than audio playback because onePlus is using deep buffering to increase battery life. I'll look more into it and update the OP detailing the values and what they correspond to later today.
As for the handset, the handset is defined as the earpiece and there is conflict with the handset and speaker paths since they both use slimbus 0 for the path. The mic values are always tx values since they stand for transmit. The handset uses adc4 and if you want to control the mic gain you would have to do something like adc4 volume=20 inside the path of the handset mic or the mix part itself. I usually only make new paths and replace the old ones with the new paths just so I have a reference point.
kristofpetho said:
@abhi08638 is there a way to turn DOWN overall volume? I work in an office and even the lowest volume is quite high... Thanks!
Click to expand...
Click to collapse
HorstDCC said:
I would appreciate more choices in lower speaker volumes as well. The lowest speaker volume is too loud for 90% of the environments/situations I operate in. thanks for considering it,
Click to expand...
Click to collapse
Sorry guys but I don't know how yet, I'll keep trying though. The only thing I would be able to do at this point is to route all audio to the earpiece since its Max volume is lower and configurable.
On a side note I tried getting stereo sound to work but this is extremely difficult since it is not a normal mixer file. I'll keep trying it have no guarantees
Many thanks for your explanation @abhi08638.
abhi08638 said:
Sorry guys but I don't know how yet, I'll keep trying though. The only thing I would be able to do at this point is to route all audio to the earpiece since its Max volume is lower and configurable.
Click to expand...
Click to collapse
So turning down the earpiece volume is possible? How can i do that? Its to loud for me on the lowest level in stock.
bencozzy said:
Looks like the are using multiple mixed paths to control audio outputs have you tried changed volume in mixer path i2s?
Click to expand...
Click to collapse
I don't know if that would work since I don't even have that file on CM. I only have mixer_paths_tasha.xml, if you post it ill try seeing if I can get CM to load it and see if that works
Kreet said:
So turning down the earpiece volume is possible? How can i do that? Its to loud for me on the lowest level in stock.
Click to expand...
Click to collapse
I'll be posting a diy guide this week, Max 3 to 4 days because I'm very busy atm
abhi08638 said:
Camcorder Mic Gain
This version increases the microphone gain for the audio recorded through the camcorder only. I did this as a workaround for the way too aggressive noise cancellation that happens. This won't fix the problem but hopefully make it more bearable. If I find a better way to fix this, I will update this mod.
Click to expand...
Click to collapse
I have not been able to locate a sample of the camcorder audio produced by the Oneplus 3, but it sounds like it suffers from the same problem as the Nexus 5, for which I've come up with an effective workaround. I'm guessing the same can be done for the Oneplus 3.
As a first step, I suggest you try this.
Edit: Depending on what software you are running you may need to play around with another device, i.e. SND_DEVICE_IN_SPEAKER_STEREO_DMIC (produces a stereo recording), instead of SND_DEVICE_IN_CAMCORDER_MIC (produces a mono recording) and assign different numbers to acdb_id. Note that I found the acdb_id for the Nexus 5 by looking at the audio HAL sources (hardware/qcom/audio/hal/msm8974/platform.c, see here for the Oneplus 3) and trial-and-error.
chdloc said:
I have not been able to locate a sample of the camcorder audio produced by the Oneplus 3, but it sounds like it suffers from the same problem as the Nexus 5, for which I've come up with an effective workaround. I'm guessing the same can be done for the Oneplus 3.
As a first step, I suggest you try this.
Click to expand...
Click to collapse
Thanks ill be sure to look into this
abhi08638 said:
I don't know if that would work since I don't even have that file on CM. I only have mixer_paths_tasha.xml, if you post it ill try seeing if I can get CM to load it and see if that works
I'll be posting a diy guide this week, Max 3 to 4 days because I'm very busy atm
Click to expand...
Click to collapse
That would be great, thank you.
DeeZZ_NuuZZ said:
did you try the latest test zip from dolby atmos thread in android software development forum?
Click to expand...
Click to collapse
I just flashed the latest Dolby Atmos I released, but it isnt working. Also i found the deep buffer zip puts us in a boot loop.
Related
I modified the mixer paths file to make my speakerphone louder but now my caller can barely hear me talk. How do I fix this?
Sent from my Oneplus One using XDA Free mobile app.
Could someone help me? Maybe if I replace mixer paths file with stock unmodified file it will fix this? But then my speaker volume will be low....
Sent from my Oneplus One using XDA Free mobile app.
Could be a serious problem. Check if these solutions work. Otherwise contact oneplus for rma
http://forum.xda-developers.com/oneplus-one/help/mic-call-t2860668
I have the same low mic volume when in speakerphone mode, i tryed the mic mod here:
http://forum.xda-developers.com/oneplus-one/development/mod-oneplus-one-stereo-mod-t2967925
And now the speakerphone mod is loud and clear but loosed a little the volume in normal calls mode.
I'll try to make another mod to resolve this issue. Keep an eye in development here:
http://forum.xda-developers.com/showthread.php?t=2967925
Edit: try the zip in this post and report back please.
http://forum.xda-developers.com/showthread.php?p=57803498
sent from my amazingly awesome OnePlus One with Stereo Mod
Don't forget to hit thanks!
My upper microphone doesn't work properly. When I use the telephone with the handsfree function, the other part doesn't hear me.
I have to talk with my lips touching the hole where this microphone is. If I speak only to five centimeters far away this microphone, they don't hear anything at all.
I have tried with several roms, so it has to be a hardware issue.
I would like to know if I can set up any parameter to use the normal microphone even with the hands free function.
I have improved it modifing the file mixer_paths.xml as shown below, but it is not enough
<!-- Analog input devices -->
<path name="hph-mic">
<ctl name="DEC5 MUX" value="ADC2" />
<ctl name="IIR1 INP1 MUX" value="DEC5" />
<ctl name="DEC5 Volume" value="40" />
</path>
<path name="main-mic">
<ctl name="AIF1_CAP Mixer SLIM TX7" value="1"/>
<ctl name="SLIM TX7 MUX" value="DEC4" />
<ctl name="DEC4 MUX" value="ADC3" />
<ctl name="DEC4 Volume" value="84" />
</path>
<path name="anc-mic">
<ctl name="DEC2 MUX" value="ADC5" />
<ctl name="DEC2 Volume" value="100" />
</path>
I'm going to try some of your mods.
---------- Post added at 01:20 PM ---------- Previous post was at 12:45 PM ----------
abhi08638 said:
I'll try to make another mod to resolve this issue. Keep an eye in development here:
http://forum.xda-developers.com/showthread.php?t=2967925
Edit: try the zip in this post and report back please.
http://forum.xda-developers.com/showthread.php?p=57803498
sent from my amazingly awesome OnePlus One with Stereo Mod
Don't forget to hit thanks!
Click to expand...
Click to collapse
Yes, it worked.
I have modified a little bit the sensibility but it has fixed my issue.
I'm still without understan well how works each microphone, but at least I can use my opo as handsfree too.
I would like to increase earpiece sound and loudspeaker sound, which lines must I edit in the mixer paths file?
Thanks.
Info
kanej2006 said:
I would like to increase earpiece sound and loudspeaker sound, which lines must I edit in the mixer paths file?
Thanks.
Click to expand...
Click to collapse
thr s lots of mods to do that for u.
search for Boost Sound, Tweak Sound Xperia Z3 to find lots of result and project
:good:
Geeks Empire said:
thr s lots of mods to do that for u.
search for Boost Sound, Tweak Sound Xperia Z3 to find lots of result and project
:good:
Click to expand...
Click to collapse
I did indeed run a sound mod. However, the loudspeaker and in-call sound is still low. Do you happen to know which lines I can manually increase in the mixer paths? Thanks.
Geeks Empire said:
thr s lots of mods to do that for u.
search for Boost Sound, Tweak Sound Xperia Z3 to find lots of result and project
:good:
Click to expand...
Click to collapse
It's necessary root?
Enviado desde mi D6603 mediante Tapatalk
Root is necessary with 99% mods available on xda
I believe this is what I used on the Z1 to make the earpiece louder on the mixer_path.xml. it should be the same setting. Don't make it to loud though . I found that if it's too loud it seems to create an echo for the for the other person. That's with the Z1 anyway . Plus you don't want to blow out the speaker either.
-<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>
raginginferno said:
I believe this is what I used on the Z1 to make the earpiece louder on the mixer_path.xml. it should be the same setting. Don't make it to loud though . I found that if it's too loud it seems to create an echo for the for the other person. That's with the Z1 anyway . Plus you don't want to blow out the speaker either.
-<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>
Click to expand...
Click to collapse
Thanks, will give this a try. Having previously having the Xperia Z Ultra, it was far easier!
In the Z3, there are many more lines of code to go through...
^ @ raginginferno, I changed many settings yet no difference. Strange since my previous Z Ultra made a difference.
Many settings including headphones, earpiece, voice calls and digital volume was increased to 91/92. Saved and rebooted but sound is the same.
Hi there,
Whenever I record a message on WhatsApp (e.g. audio message to record a song) or when I simply record a video (doesn't matter where), the sound is very... strange. It's just not clear and the volume changes every time etc. I was thinking that the phone is using the wrong microphone to record the audio (the phone has two mics). Looks to me as if it's using the noise cancellation mic instead of the normal one.
Does anyone face this problem as well and does anyone have any idea on how to change this (possibly how to disable the noise cancellation mic)?
Thanks for reading
Hi, Are you using the stock rom ?
AzizKhb said:
Hi, Are you using the stock rom ?
Click to expand...
Click to collapse
Sorry forgot to mention, yes I am using the stock rom. Didn't do any modifications or whatsoever.
Hi and sorry for the late reply, i'm having the same problem with viber, it can access only one mic whatever the position of the phone, i think it's a system bugs, and alcatel must correct them with more OTA updates.
If you think the problem is not a system bug and it's happening only to you you can use the mobile upgrade software from alcatel and flash you phone with the last firmware, because sometimes OTA updates can do weird things to you phone.
It is a software problem. I did a little playing around with the "mixer_paths.xml" and it got better. Unfortunately, I have not yet found the right values.
jegi0605 said:
It is a software problem. I did a little playing around with the "mixer_paths.xml" and it got better. Unfortunately, I have not yet found the right values.
Click to expand...
Click to collapse
I suppose root is required for that? If yes, I'll root and try what you did. Every improvement is better than the current state..
Could you tell what did you change exactly?
Hi ,
Yes you need root for edit "mixer_paths.xml"
Line 686 - 690
OLD
Code (Text):
<path name="speaker-mic">
<path name="adc3" />
<ctl name="IIR1 INP1 MUX" value="DEC1" />
</path>
NEW
Code (Text):
<path name="speaker-mic">
<path name="adc3" />
<ctl name="IIR1 INP1 MUX" value="DEC1" /> if you delete the line is scratching away. But the microphone is very quiet
<ctl name="DEC1 Volume" value="106" />
</path>
Line 702 - 706
OLD
Code (Text):
<path name="handset-mic">
<path name="adc1" />
<ctl name="IIR1 INP1 MUX" value="DEC1" />
</path>
NEW
Code (Text):
<path name="handset-mic">
<path name="adc1" />
<ctl name="IIR1 INP1 MUX" value="DEC1" /> if you delete the line is scratching away. But the microphone is very quiet
<ctl name="DEC1 Volume" value="106" />
</path>
Line 708 - 712
OLD
Code (Text):
<path name="handset-mic-second">
<path name="adc1" />
<ctl name="IIR1 INP1 MUX" value="DEC1" />
</path>
NEW
Code (Text):
<path name="handset-mic-second">[/B]
<path name="adc1" />
<ctl name="IIR1 INP1 MUX" value="DEC1" /> if you delete the line is scratching away. But the microphone is very quiet
<ctl name="DEC1 Volume" value="106" />
</path>
I'm interested in buying the Idol 3 4.7" but have been put off by the poor audio recording quality; I tried it for myself in a shop and video clips had weird-sounding audio. To me it sounded as if noise cancellation has been enabled, meaning that it attempts to eliminate all background sounds in preference to loud speech (normally a person's voice would be very close to one of the microphones when making or receiving a phone call), but in other circumstances it would get confused because any voices (if present) would often not be much louder than other sounds.
Some phones have an option to disable noise cancelling (perhaps under "Call settings"?), though of course you would have to re-enable this feature if you wish to make/receive calls in noisy environments. I had a quick look in the Idol 3's settings (stock ROM obviously) and couldn't find anything that obviously related to noise cancellation. Reducing microphone levels might help as previously suggested since it's then less likely to detect 'background' sounds (and compensate accordingly) but that still won't eliminate the effect altogether.
If not in the settings, perhaps there's some other method of disabling noise cancellation? Would a custom ROM have this feature?
I'm also having sound quality issues, with awesome player there is audio microcuts and recording quality is a mess. However, with nu player microcuts are solved but not poor audio quality when recording. Even though i updated from 010 06 to 010 07 it persists, performing a clean upgrade (not through OTA).
People are reporting the same in reddit https://m.reddit.com/r/idol3/comments/3im55s/is_alcatel_going_to_fix_the_idol_3s_horrible/
Any new info on this? Was thinking of buying this phone. Did anyone test with CM?
microphone got only problems with recording when the subject is too far away. no problems during the call. i think this is hardware problem because we got much updates and no result
and is only one defect from this phone.
I find all of these statements kinda odd because I haven't had any issues with stock rom at all with recording, but on custom roms I had issues with apps other then actual camera apps, facebook messenger being an example, it sounded like it was under water. I assumed it was using the mics wrong, but going back to stock I haven't had any problems at all again.
Did anyone try turning off the JBL audio effects out of curiosity? Im not sure if that could actually effect the mics but you never know.
Sent from my 6045I using XDA-Developers mobile app
tbkrazeey said:
I find all of these statements kinda odd because I haven't had any issues with stock rom at all with recording, but on custom roms I had issues with apps other then actual camera apps, facebook messenger being an example, it sounded like it was under water. I assumed it was using the mics wrong, but going back to stock I haven't had any problems at all again.
Did anyone try turning off the JBL audio effects out of curiosity? Im not sure if that could actually effect the mics but you never know.
Sent from my 6045I using XDA-Developers mobile app
Click to expand...
Click to collapse
In 010 08 firmware version, still facing this problem while recording audio. Tried to disable JBL audio without success.
Any new info about fixing this issue ?
If I use built in microphones it sounds dreadful. However, using jbl earphones the sound recorded is very good (clear and with no cuts).
So, my point is that is a hardware problem or maybe noise cancelling or a mix of both. At least i figured how to "solve" the problem but is unpleasant wearing all the time the earphones.
For those that just want more headphone volume without the hassle of installing Viper4Android, this is an easy mod that takes literally a minute. The stock S7 (and edge) headphone volume output is very low, especially if you are trying to power larger studio type headphones.
1: Root your device (I used the Chainfire method)
2: You must have a file explorer with root folder access (I used Solid Explorer)
3: Navigate to System > Etc > mixer_gains.xml
4: Important .... take a backup or copy of mixer_gains.xml in case something gets screwed up or you wish to go back to stock volume in the future
5: Edit the following lines in the file under <path name="gain-media-headset"> as below (note, I have changed these values from the original post as these work better)
<ctl name="HPOUT1L Impedance Volume" value="110" />
<ctl name="HPOUT1R Impedance Volume" value="110" />
<ctl name="HPOUT1L Input 1 Volume" value="95" />
<ctl name="HPOUT1R Input 1 Volume" value="95" />
6: Save file and reboot.
This significantly increases headphone output without distortion, although if you do push it too high it will naturally overload the DAC. You can decrease the numbers in the lines above if you think it is too loud. I have tested this on Poweramp, MX Video Player and Spotify and it works perfectly. This does not affect the operation of system EQ's like sound alive.
Please leave thanks if you found this useful to you.
Keith
works great with poweramp, thanks for the this!!
Sent from my SM-G930F using Tapatalk
hey keith
kradcliffe said:
For those that just want more headphone volume without the hassle of installing Viper4Android, this is an easy mod that takes literally a minute. The stock S7 (and edge) headphone volume output is very low, especially if you are trying to power larger studio type headphones.
1: Root your device (I used the Chainfire method)
2: You must have a file explorer with root folder access (I used Solid Explorer)
3: Navigate to System > Etc > mixer_gains.xml
4: Important .... take a backup or copy of mixer_gains.xml in case something gets screwed up or you wish to go back to stock volume in the future
5: Edit the following lines in the file under <path name="gain-media-headset"> as below
<ctl name="HPOUT1L Impedance Volume" value="120" />
<ctl name="HPOUT1R Impedance Volume" value="120" />
<ctl name="HPOUT1L Input 1 Volume" value="55" />
<ctl name="HPOUT1R Input 1 Volume" value="55" />
6: Save file and reboot.
This significantly increases headphone output without distortion, although if you do push it too high it will naturally overload the DAC. You can decrease the numbers in the lines above if you think it is too loud. I have tested this on Poweramp, MX Video Player and Spotify and it works perfectly. This does not affect the operation of system EQ's like sound alive.
Please leave thanks if you found this useful to you.
Keith
Click to expand...
Click to collapse
Hey keith thanks brother. I will giv that a shot in the am.. i do really appreciate it homeboy. I'lllet you know how it sounds. specially if I screwed up. lol thanks
Thats look great
Do u have same method for bluetooth headset sound increase volume ?
abunhyan said:
Thats look great
Do u have same method for bluetooth headset sound increase volume ?
Click to expand...
Click to collapse
I haven't any BT devices so I haven't had a look. You could try increasing these values and see what happens.
<path name="gain-media-bt-sco-headset">
<ctl name="AIF3TX1 Input 1 Volume" value="32" />
<ctl name="AIF3TX2 Input 1 Volume" value="32" />
</path>
<path name="gain-media-speaker-bt-sco-headset">
<ctl name="AIF4TX1 Input 1 Volume" value="32" />
<ctl name="AIF4TX2 Input 1 Volume" value="32" />
<ctl name="AIF3TX1 Input 1 Volume" value="32" />
<ctl name="AIF3TX2 Input 1 Volume" value="32" />
</path>
kradcliffe said:
For those that just want more headphone volume without the hassle of installing Viper4Android, this is an easy mod that takes literally a minute. The stock S7 (and edge) headphone volume output is very low, especially if you are trying to power larger studio type headphones.
1: Root your device (I used the Chainfire method)
2: You must have a file explorer with root folder access (I used Solid Explorer)
3: Navigate to System > Etc > mixer_gains.xml
4: Important .... take a backup or copy of mixer_gains.xml in case something gets screwed up or you wish to go back to stock volume in the future
5: Edit the following lines in the file under <path name="gain-media-headset"> as below
<ctl name="HPOUT1L Impedance Volume" value="120" />
<ctl name="HPOUT1R Impedance Volume" value="120" />
<ctl name="HPOUT1L Input 1 Volume" value="55" />
<ctl name="HPOUT1R Input 1 Volume" value="55" />
6: Save file and reboot.
This significantly increases headphone output without distortion, although if you do push it too high it will naturally overload the DAC. You can decrease the numbers in the lines above if you think it is too loud. I have tested this on Poweramp, MX Video Player and Spotify and it works perfectly. This does not affect the operation of system EQ's like sound alive.
Please leave thanks if you found this useful to you.
Keith
Click to expand...
Click to collapse
Hi. Thanks for this I been looking everywhere
Good job :good::good::good:. I'm really happy, thank you.
Nice
Works perfectly thank you so much!
Is there a difference between this and Sound MOD by ZuBi182?
Deadeye* said:
Is there a difference between this and Sound MOD by ZuBi182?
Click to expand...
Click to collapse
This is purely for the headphone volume. The other one changes many other settings as well and you have to push it with TWRP. This can be done with root only.
The XML files from ZuBi's thread can be extacted and copied in the same way. No need for TWRP.
Be careful with that. I tried exactly the same thing. Device wouldn't boot and was stuck on Samsung logo.
Had to flash the unmodified files with TWRP to get the device back.
kradcliffe said:
Be careful with that. I tried exactly the same thing. Device wouldn't boot and was stuck on Samsung logo.
Had to flash the unmodified files with TWRP to get the device back.
Click to expand...
Click to collapse
When you extract the files and copy is necessary to change the permissions or you have this problem.
Do you edit the files in the phone or on the computer? Which program are you using to edit the XML files directly in the phone?
As stated above, I used Solid Explorer text editor on the phone, although any text editor will work. You can also copy the file to your PC, modify there then put back to the phone.
Just make sure the permissions are the same for the returned file or the device won't boot. They should be -rw-r-r
Keith
thanks
Work greet thanks!
kradcliffe said:
4: Important .... take a backup or copy of mixer_gains.xml in case something gets screwed up or you wish to go back to stock volume in the future
5: Edit the following lines in the file under <path name="gain-media-headset"> as below
<ctl name="HPOUT1L Impedance Volume" value="120" />
<ctl name="HPOUT1R Impedance Volume" value="120" />
<ctl name="HPOUT1L Input 1 Volume" value="55" />
<ctl name="HPOUT1R Input 1 Volume" value="55" />
Click to expand...
Click to collapse
Great info. However I'd like to add a bit of further information:
1) For easy reference, the default values on my phone are 105,105,32,32.
2) The second pair of numbers ("Input 1 Volume") appear to be the digital volume control, i.e. sets the output level of the DAC. It accepts values up to 95. Any value above 95 is ignored and treated as 1. The settings appear to be linear (i.e. 64 is twice as loud as 32).
3) The first pair of numbers ("Impedance Volume") appear to be the analogue gain control, i.e. sets the analogue amplification applied after the DAC output. The values are highly non-linear (115 is more than twice as loud as 105).
4) Adjusting the digital control (Input 1 volume) does not cause any appreciable change in distortion or noise and I would recommend increasing this to maximum (95)
5) Adjusting the analogue control (Impedance volume) drastically increases noise, background hiss, and distortion. Even increasing this a tiny bit (e.g. from 105 to 108) causes there to be a constantly audible background hiss. I would recommend against changing this at all if it can be avoided, unless you have particularly insensitive cans.
Personally, mine's set to 105,105,95,95. That's just below the level needed to max out the DAC and the analogue amp, without the huge increase in noise you get from the 120 setting in the OP.
Wish I knew how to do it
it works well on my phone no problem I edit everything correctly
---------- Post added at 01:47 PM ---------- Previous post was at 01:16 PM ----------
ime95mos said:
Do you edit the files in the phone or on the computer? Which program are you using to edit the XML files directly in the phone?
Click to expand...
Click to collapse
on the phone use Soild Explorer and set 95,95,80,80 that works for me great great
So what are the values to enable dual speakers?
hi, my pixel's main microphone is not working.. but the rear mic can be used.. can someone help me on how to edit mixer_path.xml, to change from bottom mic to rear mic.. thanks..
Good idea, tried to understand the file mixer_paths.xml located in /vendor/etc but i couldn't (unfortunately).
Mine doesn't have this issue but hope i can help, will continue trying.
Edit1:
Try changing:
<!-- Phone SPK TX 3rdEC5 16dB, 2ndEC6 16dB, 1stEC7 16dB,-->
<path name="voice-speaker-mic">
<path name="triple-mic" />
<ctl name="DEC5 Volume" value="100" />
<ctl name="DEC6 Volume" value="100" />
<ctl name="DEC7 Volume" value="100" />
</path>
Click to expand...
Click to collapse
To
<!-- Phone SPK TX 3rdEC5 16dB, 2ndEC6 16dB, 1stEC7 16dB,-->
<path name="voice-speaker-mic">
<path name="dmic1" />
<ctl name="DEC7 Volume" value="100" />
</path>
Click to expand...
Click to collapse
(I didn't test, please report)
Edit2:
I am new with the Pixel, and i don't know how to edit files inside /vendor, tried with TWRP, making a Magisk module and manually with no success, don't know how u usually edit system files here (stock rom).
But if you figure out how to do so these changes will "theorically" swap the call mic to the voice recording mic.
moonlightdrive said:
Good idea, tried to understand the file mixer_paths.xml located in /vendor/etc but i couldn't (unfortunately).
Mine doesn't have this issue but hope i can help, will continue trying.
Edit1:
Try changing:
To
(I didn't test, please report)
Edit2:
I am new with the Pixel, and i don't know how to edit files inside /vendor, tried with TWRP, making a Magisk module and manually with no success, don't know how u usually edit system files here (stock rom).
But if you figure out how to do so these changes will "theorically" swap the call mic to the voice recording mic.
Click to expand...
Click to collapse
on oreo and pie, editing file in /vendor/etc will result the value to revert back to its default.. so, i stay on nougat for the time being and not use any tasker or create my own magisk module.. i found the line to swap bottom mic to use top mic but it causes other caller to hear themselves while calling..
so, in short;
1. microphone works but it only use rear mic (if you use voice recording app with multiple sources for recording, select main mic as source, it will use rear mic because its already swapped as main mic)
2. whatsapp voice message and audio recording works but you may have to talk to rear mic or talk louder
3. call works but other caller may heard themselves..
here are the line in mixer_path.xml in /system/etc/
find these codes and change dmic1 to dmic3 and DEC7 to DEC6
Code:
<!-- TX Main-mic D:4 dB -->
<path name="handset-mic">
<path name="dmic1" />
<ctl name="DEC7 Volume" value="88" />
</path>
<!-- VR MIC 1st D:22 dB -->
<path name="voice-rec-mic">
<path name="dmic1" />
<ctl name="DEC7 Volume" value="106" />
</path>
<!-- Unprocessed MIC 1st D:2 dB -->
<path name="unprocessed-mic">
<path name="dmic1" />
<ctl name="DEC7 Volume" value="86" />
</path>
and find this line in build.prop, change it from fluence or fluence pro to none;
Code:
ro.qc.sdk.audio.fluencetype=none
Great you could solve it!!, It will be helpful for lot of people.
Did you try to apply some air pressure with compressed air inside the mic "hole / notch" near the charging port? Some users reported it works, because the mic's diaphragm gets stuck and doing this will release it.
moonlightdrive said:
Great you could solve it!!, It will be helpful for lot of people.
Did you try to apply some air pressure with compressed air inside the mic "hole / notch" near the charging port? Some users reported it works, because the mic's diaphragm gets stuck and doing this will release it.
Click to expand...
Click to collapse
Did that but no luck.. my first pixel got same problem.. then i returned it and get another one, it also has same problem.. luckily, experimenting with mixer_path succeeded..