[MOD][ROOT] Stereo Audio Recording - Nexus 6 General

Flashable zip files kindly offered by @springer.music
Lollipop
Marshmallow
Nougat <= 7.1.1
Nougat 7.1.2
In spending a lot of quality time with audio on the Nexus 5, I found a way to enable stereo recording that, with only minor modifications, works
also on the Nexus 6. Let me preface the below by saying that I do not have access to a Nexus 6, but @springer.music was kind enough to work
with me throughout the testing phase. Thanks!
On to the details:
The Nexus 6 has three microphones. The main microphone sits behind the lower speaker grille. The other two have their ports open toward
the back of the phone, i.e. one of them near the USB port and the other one near the camera lens. For camcorder recordings, the Nexus 6 uses
the front microphone by default.
This mod changes two system files, i.e. /system/etc/media_profiles.xml and /system/etc/mixer_paths.xml.
While the changes in media_profiles.xml simply enable two-channel processing, the more interesting changes occur in mixer_paths.xml.
After some experimentation, we have found that the microphone close to the USB port is associated with ADC1 (channel one of the analog-to-digital
converter in the audio codec), the microphone close to the rear camera is associated with ADC4, and the main microphone is associated with ADC3.
The mixer file now contains a new audio device called camcorder-stereo (only called when the "camcorder" device is requested) that uses the
microphone by the camera lens as the left channel and the microphone close to the USB port as the right channel. The gains are kept at stock
camcorder levels, i.e. ADC1=ADC4=8. These gains are by no means set in stone. You can adjust them as you like, making the microphone more or
less sensitive in the process. Indeed, you may need/want to do that when you plan on recording, say, a club visit or rock concert.
Keep in mind, though, that you need to reboot your phone anytime you make changes to the mixer_paths.xml file as
the new values are read only upon a system boot.
Welcome side effect: In addition to the camcorder now being able to capture stereo audio, all audio recording apps that allow the microphone
to be changed to the "camcorder" microphone (provided the app itself offers stereo processing) can take advantage of this mod, too.
Apps that are capable of recording stereo audio with this mod are "Voice Recorder" and "Easy Voice Recorder Pro".

Any idea if Viper4Android makes any changes to these files that this mod will overwrite?

SolsticeZero said:
Any idea if Viper4Android makes any changes to these files that this mod will overwrite?
Click to expand...
Click to collapse
Possibly. I would install Viper4Android first and then consolidate the two mixer_paths.xml (and maybe media_profiles.xml) files manually.

chdloc said:
...
Installation:
make a backup of your stock media_profiles.xml and mixer_paths.xml files (attached in the "stock" archive for convenience)
manually push the two files in the "stereo_mod" archive to /system/etc/
adjust the permissions of the two files to 644 (rw-r--r--)
reboot
@springer.music will be providing a flashable zip soon for those of you who don't feel comfortable pushing system files manually.
Click to expand...
Click to collapse
Thanks for all the work @chdloc!
Here's a zip file that can be flashed through recovery (TWRP). It replaces both media_profiles.xml and mixer_paths.xml
https://drive.google.com/open?id=0B4ACjWKfxD7wSkNHeU5Rb0xSb1k&authuser=0
Here are flashable zip files for the stock media_profiles.xml and mixer_paths.xml files if you need to revert the mod.
https://drive.google.com/open?id=0B4ACjWKfxD7wWHlxcUZNVm8ydGs&authuser=0
https://drive.google.com/open?id=0B4ACjWKfxD7wVFBxTjNFb0dub28&authuser=0

Use All three MICs
Hi chdloc,
Thank you so much for your post! Really helpful!
Based on your work, I wanna make some change------using all three MICs(including camcorder, the mic near USB in the back, and the default mic in the front). I wanna keep your revised media_profiles file. Just make some changes in mixer_paths file.
Like this:
<path name="camcorder-stereo">
<ctl name="AIF3_CAP Mixer SLIM TX3" value="1" />
<ctl name="AIF3_CAP Mixer SLIM TX5" value="1" />
<ctl name="AIF1_CAP Mixer SLIM TX7" value="1" />
<ctl name="AIF1_CAP Mixer SLIM TX8" value="1" />
<ctl name="AIF2_CAP Mixer SLIM TX9" value="1" />
<ctl name="AIF2_CAP Mixer SLIM TX10" value="1" />
<ctl name="SLIM_0_TX Channels" value="Two" />
<ctl name="SLIM TX3 MUX" value="DEC4" />
<ctl name="SLIM TX5 MUX" value="DEC4" />
<ctl name="SLIM TX7 MUX" value="DEC3" />
<ctl name="SLIM TX8 MUX" value="DEC6" />
<ctl name="SLIM TX9 MUX" value="DEC3" />
<ctl name="SLIM TX10 MUX" value="DEC6" />
<ctl name="DEC6 MUX" value="ADC1" />
<ctl name="DEC4 MUX" value="ADC3" />
<ctl name="DEC3 MUX" value="ADC4" />
<ctl name="ADC1 Volume" value="8" />
<ctl name="ADC2 Volume" value="0" />
<ctl name="ADC3 Volume" value="8" />
<ctl name="ADC4 Volume" value="8" />
<ctl name="ADC5 Volume" value="0" />
<ctl name="ADC6 Volume" value="0" />
</path>
Is that ok to use all three MICs for recording in the same time?

sherlock1127 said:
Hi chdloc,
Thank you so much for your post! Really helpful!
Based on your work, I wanna make some change------using all three MICs(including camcorder, the mic near USB in the back, and the default mic in the front). I wanna keep your revised media_profiles file. Just make some changes in mixer_paths file.
Like this:
<path name="camcorder-stereo">
<ctl name="AIF3_CAP Mixer SLIM TX3" value="1" />
<ctl name="AIF3_CAP Mixer SLIM TX5" value="1" />
<ctl name="AIF1_CAP Mixer SLIM TX7" value="1" />
<ctl name="AIF1_CAP Mixer SLIM TX8" value="1" />
<ctl name="AIF2_CAP Mixer SLIM TX9" value="1" />
<ctl name="AIF2_CAP Mixer SLIM TX10" value="1" />
<ctl name="SLIM_0_TX Channels" value="Two" />
<ctl name="SLIM TX3 MUX" value="DEC4" />
<ctl name="SLIM TX5 MUX" value="DEC4" />
<ctl name="SLIM TX7 MUX" value="DEC3" />
<ctl name="SLIM TX8 MUX" value="DEC6" />
<ctl name="SLIM TX9 MUX" value="DEC3" />
<ctl name="SLIM TX10 MUX" value="DEC6" />
<ctl name="DEC6 MUX" value="ADC1" />
<ctl name="DEC4 MUX" value="ADC3" />
<ctl name="DEC3 MUX" value="ADC4" />
<ctl name="ADC1 Volume" value="8" />
<ctl name="ADC2 Volume" value="0" />
<ctl name="ADC3 Volume" value="8" />
<ctl name="ADC4 Volume" value="8" />
<ctl name="ADC5 Volume" value="0" />
<ctl name="ADC6 Volume" value="0" />
</path>
Is that ok to use all three MICs for recording in the same time?
Click to expand...
Click to collapse
I'm not sure what the (even theoretical) benefit would be to use three microphones simultaneously for camcorder recordings. Two of them are relatively close together, so there would be very little additional spatial information. As a use-case I can only come up with using the front microphone to pick up narration, but there will be a lot of cross-talk between the channels (if that use-case is desired then it may be better to attach a separate close-talking microphone to the headset port). Plus, in order to play back the recorded audio you would need to implement some sort of 3 ch->2 ch down-mix paradigm. (Unless you use the three microphones to design a steerable first-order or even second-order differential microphone array for a more flexible acoustic front-end capable of recording spatial sound)
Theory aside, in the "camcorder-stereo" device in mixer_paths.xml you would need to change
Code:
<ctl name="SLIM_0_TX Channels" value="Two" />
to
Code:
<ctl name="SLIM_0_TX Channels" value="Three" />
if that is even supported by your device. Also, you would need to update /system/etc/media_profiles.xml to support not two but three channels. Then the questions is whether Android (libaudioflinger) knows what to do with three channels. I don't have a Nexus 6, so I cannot test.

chdloc said:
I'm not sure what the (even theoretical) benefit would be to use three microphones simultaneously for camcorder recordings. Two of them are relatively close together, so there would be very little additional spatial information. As a use-case I can only come up with using the front microphone to pick up narration, but there will be a lot of cross-talk between the channels (if that use-case is desired then it may be better to attach a separate close-talking microphone to the headset port). Plus, in order to play back the recorded audio you would need to implement some sort of 3 ch->2 ch down-mix paradigm. (Unless you use the three microphones to design a steerable first-order or even second-order differential microphone array for a more flexible acoustic front-end capable of recording spatial sound)
Theory aside, in the "camcorder-stereo" device in mixer_paths.xml you would need to change
Code:
<ctl name="SLIM_0_TX Channels" value="Two" />
to
Code:
<ctl name="SLIM_0_TX Channels" value="Three" />
if that is even supported by your device. Also, you would need to update /system/etc/media_profiles.xml to support not two but three channels. Then the questions is whether Android (libaudioflinger) knows what to do with three channels. I don't have a Nexus 6, so I cannot test.
Click to expand...
Click to collapse
Firstly, many thanks for your reply!
Because we are working on speech enhancement algorithms, three MICs recording is much better than two MICs even though that two MICs are close to each other.
I used the revised mixer_paths.xml then tired
<ctl name="SLIM_0_TX Channels" value="Two" />
and
<ctl name="SLIM_0_TX Channels" value="Three" />
with camcorder stereo recording. But the results are the same as the normal two MICs recording instead of three MICs. Only the camcorder and the MIC on the back near the USB port working. My guess is that, there will be a file to state how to store recording data from two MICs into one buffer (Like two MICs stereo recording is left right left right...). So if we want to do three MICs recording we have to find that file and revise it to make it be able to store recording data from three MICs into one buffer.
Based on your experience, what do you think?
Thanks again and best regards!

sherlock1127 said:
Because we are working on speech enhancement algorithms, three MICs recording is much better than two MICs even though that two MICs are close to each other.
Click to expand...
Click to collapse
Interesting. Please do share some details on what exactly you would like to accomplish.
My guess is that, there will be a file to state how to store recording data from two MICs into one buffer (Like two MICs stereo recording is left right left right...). So if we want to do three MICs recording we have to find that file and revise it to make it be able to store recording data from three MICs into one buffer.
Click to expand...
Click to collapse
For camcorder recordings -- as I alluded to before -- in addition to modifying mixer_paths.xml as you did above, you also need to modify the file /system/etc/media_profiles.xml. In that file, change
Code:
<EncoderProfile quality="720p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="12000000"
width="1280"
height="720"
frameRate="30" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="17000000"
width="1920"
height="1080"
frameRate="30" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
to
Code:
<EncoderProfile quality="720p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="12000000"
width="1280"
height="720"
frameRate="30" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="[COLOR="red"]3[/COLOR]" />
</EncoderProfile>
<EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="17000000"
width="1920"
height="1080"
frameRate="30" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="[COLOR="Red"]3[/COLOR]" />
</EncoderProfile>
and change
Code:
<AudioEncoderCap name="aac" enabled="true"
minBitRate="758" maxBitRate="288000"
minSampleRate="8000" maxSampleRate="48000"
minChannels="1" maxChannels="1" />
to
Code:
<AudioEncoderCap name="aac" enabled="true"
minBitRate="758" maxBitRate="288000"
minSampleRate="8000" maxSampleRate="48000"
minChannels="1" maxChannels="[COLOR="red"]3[/COLOR]" />
followed by a reboot.
You may not need to modify media_profiles.xml if you find an DAW app (or write one yourself) that is designed to work with more than two channels and that uses the "CAMCORDER" device when setting up the audio subsystem. You could also look into using ALSA directly from the command line to try to capture all three audio channels simultaneously.

I've updated the file generously provided by springer.music to contain the modifications to Android M Preview 3 stock files to enable stereo recording. I've attached it.

Thanks zefie.
I've been playing around with with the input gain in mixer_paths.xml and after a numbers of tests I then changed the ADC1 and ADC4 values to "0" instead of "8" on my Note 6 (the zip file I posted in my previous post had the input gain set to "8").
I discussed this with chdloc some months ago and he told me that "8" should be the default value. However, with ADC1 and ADC4 set to 8, I used to get some unwanted audio clipping (it sounded like some sort of limiter kicked in, it was not distortion due to saturation) with high volume audio sources, such as live music and the like.
Setting ADC1 and ADC4 to "0" seems to provide more balanced results.
Here's a new/alternative zip file for Lollipop/5.1.1 with the ADC values set to 0 if anyone would like to try it.
https://drive.google.com/uc?export=download&id=0B4ACjWKfxD7wSkZfZDQ5cGdBM2M

springer.music said:
I discussed this with chdloc some months ago and he told me that "8" should be the default value. However, with ADC1 and ADC4 set to 8, I used to get some unwanted audio clipping (it sounded like some sort of limiter kicked in, it was not distortion due to saturation) with high volume audio sources, such as live music and the like.
Click to expand...
Click to collapse
Unfortunately, without having access to the codec's documentation, only experimentation and measurements can determine what the default value "should" be. Without having access to a Nexus 6, all I can say is that "8" was the (default) value chosen by the Google and/or Motorola guys.

chdloc said:
Unfortunately, without having access to the codec's documentation, only experimentation and measurements can determine what the default value "should" be. Without having access to a Nexus 6, all I can say is that "8" was the (default) value chosen by the Google and/or Motorola guys.
Click to expand...
Click to collapse
You're right, the trial and error method can quite often be the best solution.
Still, I don't understand why stereo audio recording is not a standard feature on the Nexus 6. The mics are there and they seem to work decently. Go figure...

Working really well on the m preview rom , thanks!
Sent from my Nexus 6 using Tapatalk

Just wanted to report that this works like a charm on the official 6.0 release :good:

@springer.music @chdloc
Which one of these files work good on 6.0.0 ?

kryddan said:
@springer.music @chdloc
Which one of these files work good on 6.0.0 ?
Click to expand...
Click to collapse
Here's a version for Android 6/Marshmallow:
https://drive.google.com/uc?export=download&id=0Byg2gRuMx9SFdnJmYm5HanBvWDA

springer.music said:
Here's a version for Android 6/Marshmallow:
https://drive.google.com/uc?export=download&id=0Byg2gRuMx9SFdnJmYm5HanBvWDA
Click to expand...
Click to collapse
Thank you, you saved my evening. Going to a Danko Jones concert tonight
Ok, ofcourse I will have other equipment to bring, but still

springer.music said:
Here's a version for Android 6/Marshmallow:
https://drive.google.com/uc?export=download&id=0Byg2gRuMx9SFdnJmYm5HanBvWDA
Click to expand...
Click to collapse
Flashable zip??

bmakk2055 said:
Flashable zip??
Click to expand...
Click to collapse
Yes

springer.music said:
Yes
Click to expand...
Click to collapse
thanks
---------- Post added at 05:40 PM ---------- Previous post was at 04:52 PM ----------
springer.music said:
Yes
Click to expand...
Click to collapse
One more thing, will this work on my Nexus 7 2013?

Related

[Mod] Stereo + Sound Boost for Lollipop (.242)

Note: This mod only works on Z1C & Thanks to @dontbelive & modified xml by @Lessismooore (http://forum.xda-developers.com/showpost.php?p=60209727&postcount=14)
Instructions:
Goto "system/etc/"
Backup mixer_path.xml
Move the newer mixer_path.xml and change the permissions to "644" (rw-r-r)
Reboot and Done!
I use the RU.242 Version and its not working
This mod kills audio, I get an Unfortunately Audio settings has stopped, I also can't get jetaudio and some other apps to run.
I removed the mod and everything works again
Soldat0815 said:
I use the RU.242 Version and its not working
Click to expand...
Click to collapse
dazjp71 said:
This mod kills audio, I get an Unfortunately Audio settings has stopped, I also can't get jetaudio and some other apps to run.
I removed the mod and everything works again
Click to expand...
Click to collapse
I am on the same firmware, works fine. You sure you did the permissions? This is not a flashable zip.
No sound after this mod..
SpiritBreak3r said:
I am on the same firmware, works fine. You sure you did the permissions? This is not a flashable zip.
Click to expand...
Click to collapse
I did exactly what the instructions stated, it just didn't work no sound and some apps stopped working
papzi57 said:
No sound after this mod..
Click to expand...
Click to collapse
dazjp71 said:
I did exactly what the instructions stated, it just didn't work no sound and some apps stopped working
Click to expand...
Click to collapse
Could you guys try the mixer_path from the YKG v15's zip?
SpiritBreak3r said:
Could you guys try the mixer_path from the YKG v15's zip?
Click to expand...
Click to collapse
Yes, I tryed:
There are stereo sound, but very, very distorted!
papzi57 said:
Yes, I tryed:
There are stereo sound, but very, very distorted!
Click to expand...
Click to collapse
But it sounds the same as the kitkat mod.
This mixer path not working for me too
m!k3 said:
This mixer path not working for me too
Click to expand...
Click to collapse
I re-uploaded the working mixer_path.xml. It seems to have been corrupted while I pushed it from my phone. Try it again.
SpiritBreak3r said:
But it sounds the same as the kitkat mod.
Click to expand...
Click to collapse
Its not.. The sound from the eat speaker is very muffled..
Changed back to original mixer
Sent from my D5503 using XDA Free mobile app
SpiritBreak3r said:
I re-uploaded the working mixer_path.xml. It seems to have been corrupted while I pushed it from my phone. Try it again.
Click to expand...
Click to collapse
Now the Mod works but the sound on the headspeaker is not good.
It´s a effekt like the speaker overmodulate but didn´t stop if you turn down the volume.
Thanks for the mod, it's working but the sound is very distorted and the headphone is extremely loud that despite it may damage your headset, it can seriously cause some problems to your ears.
anyway I edited the original file "mixer_paths.xml" from the official lollipop in my z1 compact and adjusted the values for a high volume with clear sound without distortion...
I changed the values under these tags:
<path name="speaker">
<path name="speaker-mic">
<path name="headphones">
<path name="headset-mic">
- and for more information here is what I've done in details:
-Original speaker values:
<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>
-Edited speaker values:
<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="91" />
<!-- 100 % of 8 (range 0-8) Register: 0x1E0-->
<ctl name="SPK DRV Volume" value="8" />
</path>
------------
-Original speaker-mic values:
<path name="speaker-mic">
<path name="adc4" />
<!-- 63 % of 19 (range 0 - 19) Register: 0x15F -->
<ctl name="ADC4 Volume" value="12" />
<!-- 66 % of 124 (range 0 - 124) Register: 0x231 -->
<ctl name="DEC3 Volume" value="82" />
</path>
-Edited speaker-mic values:
<path name="speaker-mic">
<path name="adc4" />
<!-- 63 % of 19 (range 0 - 19) Register: 0x15F -->
<ctl name="ADC4 Volume" value="14" />
<!-- 66 % of 124 (range 0 - 124) Register: 0x231 -->
<ctl name="DEC3 Volume" value="82" />
</path>
------------
-Original headphones values:
<path name="headphones">
<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="RX1 MIX1 INP1" value="RX1" />
<ctl name="RX2 MIX1 INP1" value="RX2" />
<ctl name="CLASS_H_DSM MUX" value="DSM_HPHL_RX1" />
<ctl name="HPHL DAC Switch" value="1" />
<!--70 % of 20 register: 0x1AE-->
<ctl name="HPHL Volume" value="14" />
<!--70 % of 20 register: 0x1B4-->
<ctl name="HPHR Volume" value="14" />
<!--66 % of 124 (rounded) register: 0x2B7-->
<ctl name="RX1 Digital Volume" value="82" />
<!--66 % of 124 (rounded) register: 0x2BF-->
<ctl name="RX2 Digital Volume" value="82" />
</path>
-Edited headphones values:
<path name="headphones">
<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="RX1 MIX1 INP1" value="RX1" />
<ctl name="RX2 MIX1 INP1" value="RX2" />
<ctl name="CLASS_H_DSM MUX" value="DSM_HPHL_RX1" />
<ctl name="HPHL DAC Switch" value="1" />
<!--70 % of 20 register: 0x1AE-->
<ctl name="HPHL Volume" value="16" />
<!--70 % of 20 register: 0x1B4-->
<ctl name="HPHR Volume" value="16" />
<!--66 % of 124 (rounded) register: 0x2B7-->
<ctl name="RX1 Digital Volume" value="84" />
<!--66 % of 124 (rounded) register: 0x2BF-->
<ctl name="RX2 Digital Volume" value="84" />
</path>
------------
-Original headset-mic values:
<path name="headset-mic">
<path name="adc2" />
<!--42 % of 19 (rounded) register: 0x155-->
<ctl name="ADC2 Volume" value="8" />
<!--80 % of 124 (rounded) register: 0x241-->
<ctl name="DEC5 Volume" value="99" />
</path>
-Edited headset-mic values:
<path name="headset-mic">
<path name="adc2" />
<!--42 % of 19 (rounded) register: 0x155-->
<ctl name="ADC2 Volume" value="10" />
<!--80 % of 124 (rounded) register: 0x241-->
<ctl name="DEC5 Volume" value="99" />
</path>
The adjusted file in the attachments.
Use the same instructions provided by SpiritBreak3r in the original post.
And enjoy your z1c with high clear sound :good:
Thanks &
Best Regards,
Lessismooore said:
The adjusted file in the attachments.
Use the same instructions provided by SpiritBreak3r in the original post.
And enjoy your z1c with high clear sound :good:
Thanks &
Best Regards,
Click to expand...
Click to collapse
Thanks for sharing,no cracking sound anymore. but speaker voice is still too low even turn on almost max volume.
nutdevza said:
Thanks for sharing,no cracking sound anymore. but speaker voice is still too low even turn on almost max volume.
Click to expand...
Click to collapse
I agree with you, comparing to the other devices still low volume even after boosting it..
but comparing to its original sound I found this more better than never, and I am not going to say I am very satisfied but at least satisfied right now comparing to its real low original sound.
by the way I tried different values and when I tried to go higher or trying the mod in the OP, regardless the distortion of the sound in both experiences, when I play a song with maximum volume and touching the screen I felt like the screen is gonna explode because of the impact of the extreme high sound is somehow going into the device more than coming out of it, I don't know but maybe it's because of the waterproof thing this is why we're not getting the most out of the speakers.
If someone has any modifications, adjustments, additions will be more than welcome...
Thanks for sharing your feedback,
Best Regards..
The adjusted file in the attachments.
Use the same instructions provided by [URL="http://forum.xda-developers.com/member.php?u=5891919" said:
SpiritBreak3r[/URL] in the original post.
And enjoy your z1c with high clear sound :good:
Thanks &
Best Regards,
Click to expand...
Click to collapse
Thx!
Tried only with earphones, sounds good..?
I'll check it later with speakers..
Update : I checked the speakers and it is louder .. Of course, the quality is pretty lame, but its only because we are taking our z1 compact to the limit .. Waterproof price..
Sent from my D5503 using XDA Free mobile app
Here is stock lollipop mixer_part.XML I think stock speaker volume is louder than your mod. Analyze it if there would be another better way for mod.
In a nutshell.
Stock = loud speaker, low headphones volume .
Mod files = low speaker volume but loud headphones.
nutdevza said:
Here is stock lollipop mixer_part.XML I think stock speaker volume is louder than your mod.
In a nutshell.
Stock = loud speaker, low headphones volume .
Mod files = low speaker volume but loud headphones.
Click to expand...
Click to collapse
I agree with you, but i'm happy with this mod. Because i only hear music with headphones.
Great mod!
after using the mod for a while, i appreciate the increase of quality in headphones, but the speaker volume "croaks" a little bit.
i noticed that with the clear audio+ enabled, the quality is little better
do you have tried other combinations of the equalizer? Opinions?

Mixer_paths.xml "RX7 Digital Volume" missing

I boosted sound on my other phone by changing "RX7 Digital Volume" value.
But it seems like "RX7 Digital Volume" is missing.
Anyone know why?
i also wanted to boost speaker of my moto x play ...
Please tell me too if you got solution
which area we need to edit in mixer_path to boost speaker volume only.
No solution yet :/
ctl name="IN1L Digital Volume" value="0" />
<ctl name="IN1R Digital Volume" value="142" />
<ctl name="IN2L Digital Volume" value="128" />
<ctl name="IN2R Digital Volume" value="128" />
<ctl name="IN3L Digital Volume" value="128" />
<ctl name="IN3R Digital Volume" value="128" />
do u think we need to change above 128 value ??
---------- Post added at 11:37 AM ---------- Previous post was at 11:36 AM ----------
Niether Mixer_path has speaker word nor have RX DIGITAL VOlume ?
where to go for edit
btw Viper4android is **** .. it just produce disturbing sound loudly
<path name="speaker-and-headphones">
<path name="speaker" />
<ctl name="SLIM_0_RX Channels" value="Two" />
<ctl name="HPOUT1L Input 1" value="SLIMRX1" />
<ctl name="HPOUT1R Input 1" value="SLIMRX2" />
<ctl name="HPOUT1 Digital Volume" id="0" value="138" />
<ctl name="HPOUT1 Digital Volume" id="1" value="138" />
<ctl name="HPOUT1 Digital Switch" id="0" value="1" />
<ctl name="HPOUT1 Digital Switch" id="1" value="1" />
</path>
Try changing value of digital volume.
PSxplay said:
<path name="speaker-and-headphones">
<path name="speaker" />
<ctl name="SLIM_0_RX Channels" value="Two" />
<ctl name="HPOUT1L Input 1" value="SLIMRX1" />
<ctl name="HPOUT1R Input 1" value="SLIMRX2" />
<ctl name="HPOUT1 Digital Volume" id="0" value="138" />
<ctl name="HPOUT1 Digital Volume" id="1" value="138" />
<ctl name="HPOUT1 Digital Switch" id="0" value="1" />
<ctl name="HPOUT1 Digital Switch" id="1" value="1" />
</path>
Try changing value of digital volume.
Click to expand...
Click to collapse
so did your speaker volume was boosted by changing above values ???
---------- Post added at 11:51 AM ---------- Previous post was at 11:49 AM ----------
i have following in mixer_path .. do i need to change 110 value to 138 ???
<path name="speaker-and-headphones">
<path name="speaker" />
<ctl name="SLIM_0_RX Channels" value="Two" />
<ctl name="HPOUT1L Input 1" value="SLIMRX1" />
<ctl name="HPOUT1R Input 1" value="SLIMRX2" />
<ctl name="HPOUT1 Digital Volume" id="0" value="110" />
<ctl name="HPOUT1 Digital Volume" id="1" value="110" />
<ctl name="HPOUT1 Digital Switch" id="0" value="1" />
<ctl name="HPOUT1 Digital Switch" id="1" value="1" />
Nope nothing happened :/
so what should we do now ?
should we try viper4android
no one is here to help us !!!!
Rx7 is speaker volume; I need to lower volume in speaker. I have distort in speaker, sounds too loud.
Sent from my Nexus 6P using XDA-Developers mobile app
info[]box1 said:
Rx7 is speaker volume; lower or bump up
Sent from my Nexus 6P using XDA-Developers mobile app
Click to expand...
Click to collapse
I would only increase the volume of the headphones. You know what line I should change?
lvints said:
i would only increase the volume of the headphones. You know what line i should change?
Click to expand...
Click to collapse
rx1 & rx2 are headphones
Xperi l mixer_path file
any one xperia l user can give me his mixer_paths.xml file please. I have delete it accidentally

Microphone sizzling on cm 13

Hey everyone, i have a problem about the microphone on my Lg G2 D802 running cm13 (latest snapshot) let me explain :
-recording ONLY audio makes absurd sounds, sizzling and distortion
-doesn't happen in calls
-whatsapp & any recording apps have that problem
-somehow it works fine recording videos
-tried an app called smart voice recorder & disabled AGC, set the factor to 1 and disabled silence skipping mode and it sounds fine
And here's the part necessary from mixer_paths file :
<ctl name="RX1 Digital Volume" value="62" />
<ctl name="RX2 Digital Volume" value="62" />
<ctl name="RX3 Digital Volume" value="84" />
<ctl name="RX4 Digital Volume" value="84" />
<ctl name="RX5 Digital Volume" value="84" />
<ctl name="RX6 Digital Volume" value="84" />
<ctl name="RX7 Digital Volume" value="84" />
It'd be great if someone would help. Thanks for your help in advance guys.
/system/build.prop
ro.qc.sdk.audio.fluencetype=fluence
to
ro.qc.sdk.audio.fluencetype=none
Change that value and it should be all fixed
jl10101 said:
/system/build.prop
ro.qc.sdk.audio.fluencetype=fluence
to
ro.qc.sdk.audio.fluencetype=none
Change that value and it should be all fixed
Click to expand...
Click to collapse
It kinda did but the problem is it records all outside sounds too much, so can't we change the fluence type or fluence effect range or something? I appreciate the effort though
Sorry for necroposting but i still have the problem, any suggestions?

Bad microphone

Hi, i like very much aosp extended, and other similar roms (for example RR), but i'm a pianist, so i need to record my stuff, and i can't do it with those roms because the sound it's horrible.
The same problem appears when i record whatsapp audio, but if i take a video from the camera app (aosp), the sound it's OK.
What can i do?
Thank you and sorry for my bad english.
Normally it's the video sound that turns out unusable, for recording mostly in crowded places. Can't say anything about simple audio recording.
Luvo2001 said:
Hi, i like very much aosp extended, and other similar roms (for example RR), but i'm a pianist, so i need to record my stuff, and i can't do it with those roms because the sound it's horrible.
The same problem appears when i record whatsapp audio, but if i take a video from the camera app (aosp), the sound it's OK.
What can i do?
Thank you and sorry for my bad english.
Click to expand...
Click to collapse
If you're on Android 6.0.1 like me, you can edit two files:
1. /system/etc/audio_platform_info.xml
...
<acdb_ids>
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED" acdb_id="136"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED" acdb_id="136"/>
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED_VBAT" acdb_id="136"/>
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED_VBAT" acdb_id="136"/>
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK" acdb_id="137"/>
<device name="SND_DEVICE_IN_VOICE_REC_MIC" acdb_id="1"/>
<device name="SND_DEVICE_IN_HANDSET_STEREO_DMIC" acdb_id="1"/>
<device name="SND_DEVICE_IN_HEADSET_MIC" acdb_id="1"/>
</acdb_ids>
...
2. /system/etc/mixer_paths_mtp.xml
...
<path name="audio-record">
<ctl name="DEC1 Volume" value="108" />
<ctl name="DEC2 Volume" value="108" />
<ctl name="MultiMedia1 Mixer TERT_MI2S_TX" value="1" />
</path>
...
<path name="low-latency-record">
<ctl name="DEC1 Volume" value="108" />
<ctl name="DEC2 Volume" value="108" />
<ctl name="MultiMedia5 Mixer TERT_MI2S_TX" value="1" />
</path>
...
note: You can replace 108 with a value that suits you most. The range is 84-120.

Increase Volume via mixer_paths.xml

Hey guys, so after rooting, no matter how much I edit these values in the mixer_paths.xml (in systems/etc) my phones headphone volume remains the same:
<ctl name="HPHL Volume" value="20" /> (originally 9)
<ctl name="HPHR Volume" value="20" /> (originally 9)
<ctl name="RX1 Digital Volume" value="85" /> (originally 84)
<ctl name="RX2 Digital Volume" value="85" /> (originally 84)
Has anyone had any luck with increasing their volume on a Nokia 5?
Cheers
I am just looking into it myself. First thing I didn't like is that there are over 20 files named "Mixer_paths_*something*.xml", unlike my last KK phone. Clearly the settings for various things have been spread through various files. There is a lot of crap in Nougat that is worse than what it was in KK, and this is just one of those things they insist on calling "progress".
Anyway, the section you post isn't the right part of the file to change settings for this, at least it wasn't in KK days. That's "initial mixer settings" section, and we need "headphones" or "speaker" section. But the problem is this:
<path name="speaker">
<ctl name="RX3 MIX1 INP1" value="RX1" />
<ctl name="SPK" value="Switch" />
</path>
That "Switch" value was a NUMBER, which we used to change and therefore obtain louder sound. I have no idea what value is given to "Switch" variable and where to find it, but that's what needs to be changed. Maybe.
Unless the right setting is in one of the other files, in which case we have to edit 30-odd files... which I'll try if I have to, when I have the time.
There are actually 20 variously named "mixer_paths" files, and editing ALL OF THEM makes no difference. Viper4Arise installs and runs, but makes no change to the sound at all.
I suspect that another equalizer is running and preventing us from getting a higher volume. Some people mention "MusicFX" and Dolby, but neither of them show up in my dock or list of apps.
I tried uninstalling Dolby through Titanium, but it says it can't find the apk file. Renaming 17 or so files with "Dolby" in the name causes the bootloop.
So I don't know. I don't have much hope for a solution, this isn't a very popular phone at all.

Categories

Resources