As far as I understand, the sound level of any file containing audio, such as music or video files, is defined in the file itself. Thus, setting the sound level effectively changes the percentage of the max sound pressure defined in the file. (Please do correct me if I'm wrong)
My question: Is it possible to set an "absolute" sound level so that the media files being played actually follow that setting? This way there won't be media files which are louder or quieter than others at the same sound level setting.
Related
I have been researching and playing around with mixer_paths.xml file in an effort to increase the volume of my phone as well as the gain of the mic.
I would like to share what I have found and open it up to the community.
Location
Code:
/system/etc/mixer_paths.xml
Purpose
The mixer_paths file acts as a audio routing map of sorts. It controls the routing of audio to the various registers on the DAC (Digital-to-Analog Converter). It assigns the registers as well as digital volume levels, digital gain, and analog gain.
Additional Info/References
The Nexus 5 is equipped with the WCD9320 DAC.
Codec source code
Sound Control (faux/flar2)
I am keeping my work and notes here on Github.
Comparing Flar2's implementation of Sound Control (which is based on Faux's Sound Control) it appears that we can accomplish the same volume and gain modifications using mixer_paths.
Does anyone have the datasheet for the WCD9320 DAC?
I've recently made a mod for my device managing to enable the earpiece/speakerphone during media playback and turning my phone into a stereo capable device. However, as expected, the earpiece won't sound as loud as the main speaker. I tweaked the gains but it's not enough.
What i am trying to create is a modification that will make a point of intersection where both the earpiece and the main speaker have the same loudness. After that point, the phonespeaker will remain at its maximum volume and the main speaker will keep up with the media volume slider.
There would be one simple way to double the earpiece gain or triple it or finding a certain level that matches the loudness of the main speaker until a certain point but the main issue is that the media volume slider will keep adjusting the loudness of the earpiece, making a lot of distortion afterwards.
I need someone to explain me how to disable media volume control for the earpiece after a certain media volume level, thank you.
Yet another way to satisfy my needs is setting the default volume level of the earpiece to maximum, or at least creating only 2 levels, first which is mute, and the second which is max, no matter the media volume level, i don't know how to do that either.
Bump
This is a simple modification to the MTK Settings
It's tested in the following roms: (might work on 6.0 but not sure)
- Stock Rom
- Eragon V1
What it does, it enhances the headphone's sound to its full potential
All you have to do is:
1: Enable Debug Options (settings, about phone, press build version several times, go back to settings and there should be a new option there, open it and close settings).
2: Download MTK Engineering Mode from playstore.
3: After Installing it, Open it and select MTK Settings.
4: Go on Hardware Testing - Audio - Volume - Audio Playback.
5: On 3/4-pole Headset set the Headset PGA to 160 and save.
6: Test and see the differences ?
It's a really simple modification, but if you have any questions, feel free to ask ?
hi, I did that but volume is still too low for me (I'm hard on hearing).
do you know which file contains those values, I would like to set it higher than 160 (I'm rooted)?
nidjo83 said:
hi, I did that but volume is still too low for me (I'm hard on hearing).
do you know which file contains those values, I would like to set it higher than 160 (I'm rooted)?
Click to expand...
Click to collapse
you cant set to higher than that, and even if it could it would just degrade the speakers even more, causing to either malfunction or lose eveb more volume to a point of no returb... This is a modification to the earphones only, you can mess with the speakers and put on the max that the app allows, but thats it, anything above the limits will degrade the speakers.
Ruben Craveiro said:
you cant set to higher than that, and even if it could it would just degrade the speakers even more, causing to either malfunction or lose eveb more volume to a point of no returb... This is a modification to the earphones only, you can mess with the speakers and put on the max that the app allows, but thats it, anything above the limits will degrade the speakers.
Click to expand...
Click to collapse
thank you for your response!
sorry if I didn't make it clear; I was talking about earphones, not phone speaker. I want louder sound on my earphones!
I edited some volume file in vendor\etc folder, made headset PGA value to 250, but it didn't do anything...
nidjo83 said:
thank you for your response!
sorry if I didn't make it clear; I was talking about earphones, not phone speaker. I want louder sound on my earphones!
I edited some volume file in vendor\etc folder, made headset PGA value to 250, but it didn't do anything...
Click to expand...
Click to collapse
The 160 is the max volume.
So, if instead of applying for 3/4 pole Headset I apply it for Speaker label it will improve the sound on my Elephone speaker?
Mikystars said:
So, if instead of applying for 3/4 pole Headset I apply it for Speaker label it will improve the sound on my Elephone speaker?
Click to expand...
Click to collapse
it might enhance, but the sound quality is already bad.. enhancing it even more will mostlikelly cause even more distortion
Hi,
Does anybody here have the knowledge of editing mixerpath.xml for inceasing in-call volume and mic gain and increasing call CLARITY ???
I see that there are multiple mixerpath xmls in system/vendor/etc and also there are multiple "volumes" default value for all is 84.
I wen ahead and cahnged all 84 to 92 but i think thats not how it works.,
Some value is for top mic sensivity for noise cancellation and one is for real bottom mic sensitivity and one if for speaker voilume and one for earpiece volume.
If somebody with the knowledge can be kind enough to let me know what values are what?
TIA
I am months same question to this, a unique way to get and change the custom kernel that has the volume control configurable via the application kernel manager. I wanted to do the same manually in the file mixer xml as well, but it seems that nobody got it, or hides how to do it.
Hi!
I used to modify mixer_paths file to decrease in-call volume, because for me the lowest setting is still too high in many cases.
Under <path name="headset">, I would find a Digital Volume setting and substitute its number with a lower one.
However, I can't figure out how to achieve the same thing with XZ1. Under System/Vendor/Etc, there are two files: mixer_paths.xml and mixer_paths_tasha.xml. The first does not seem to do anything (the sounds of the phone did not change even after I renamed it). The second is being used by the phone, but in it under <path name="headset">, there is no Digital Volume variable. My attempts to guess which other values could be responsible for call volume thus far have been fruitless.
Do you have any ideas about how this setting could be altered in XZ1?
avamalka said:
Hi!
I used to modify mixer_paths file to decrease in-call volume, because for me the lowest setting is still too high in many cases.
Under <path name="headset">, I would find a Digital Volume setting and substitute its number with a lower one.
However, I can't figure out how to achieve the same thing with XZ1. Under System/Vendor/Etc, there are two files: mixer_paths.xml and mixer_paths_tasha.xml. The first does not seem to do anything (the sounds of the phone did not change even after I renamed it). The second is being used by the phone, but in it under <path name="headset">, there is no Digital Volume variable. My attempts to guess which other values could be responsible for call volume thus far have been fruitless.
Do you have any ideas about how this setting could be altered in XZ1?
Click to expand...
Click to collapse
Bro, just flash an audio module from magisk. Faster solution.
@Tux111 Thank you for the suggestion! Which audio module is capable of decreasing in-call volume?
avamalka said:
@Tux111 Thank you for the suggestion! Which audio module is capable of decreasing in-call volume?
Click to expand...
Click to collapse
Its more of like "wich audio module modifes mixer path etc". Every module. Try sound enhanchement xperia 10 module or others.
Took a look at Sound Enhancement Sony Xperia 10 Magisk Module. It says:
Sound Enhancement FX can only be applied with Music apps that has external EQ option such as Xperia Music, Youtube Music, and Spotify. Not working with SoundCloud or Youtube app.
Click to expand...
Click to collapse
It appears to be aimed at enhancing music playback. Am I missing something?
avamalka said:
Took a look at Sound Enhancement Sony Xperia 10 Magisk Module. It says:
It appears to be aimed at enhancing music playback. Am I missing something?
Click to expand...
Click to collapse
Everything aimed at enhanching is aimed to modifying.