• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[MOD][Stereo][BiQuad][Audio] Stereo mod and enhanced bass using Qualcomms Biquads

Search This thread

louis-JYG4t

Senior Member
Mar 25, 2015
211
103
Code:
*** Disclamer
I made this mod for myself and I'm willing to share it with you. Install this at your own risk.

Introduction
This mod activates the earpeace speaker for playback of multimedia audio, to create a stereo sound.

Using Qualcomms biquads, which is a hardware filter (doesn't interfere with software equalizers) in the audio codec that isn't used by default, I have been able to increase the volume and bass of the audio without harming the speakers. For this, I designed the biquads like this:

Earpiece
Let's be clear about it: the earpiece speaker isn't physically designed to produce loud and rich music and doing so may be harmfull for it.
I filtered out the low-frequency tones for the earpiece speaker because these are the most harmfull for it. Doing so, I was also able to turn up the volume a tad without sacrificing on the quality of the audio.
This is the frequency response of the earpiece speaker:
X-AcT62JXUKRQkFhxuT5vncFZNQxZ7mhBdptLBl4tcJ49-4IsUfQrjc40x-iR5G831-rE-shmohnDQBy7bw6=w1920-h948-rw


Main speaker
Here I made 2 versions: 'balanced' and 'volume boosted'.
Balanced:
On this one I lowered the volume of the main speaker to match the volume of the earpiece speaker. But because the low-frequency tones are quite weak on the oneplus one, I decided to keep the basses on stock level. This way, the sound is nice balanced while basses are a bit boosted. This leads to a very nice audio experience while watching video's, however the max volume is quite low.
The frequency response of the main speaker for this case is like this:
Gs8cB-sWLH_go6KmQFFUYr9RSIXJg1VvzlkXL4cWh7I_zN516L0KRXh2UbKkDBSbgtJN44-ef7cNIAfkDMB6=w1920-h948-rw

Volume boosted
This is actually the same as the balanced, but the total volume is about the same as stock.
I lowered the main speaker volume until the point where the earpiece and main speaker together produce about the same volume as stock. The low-frequency tones of the main speaker are kept at max volume. This leads to music with about the same volume, but better bass than stock. The nice stereo effect of the music is still present, but not balanced anymore.
This is the frequency response of the main speaker:
lIIJkzA9MTawQpwC6bfdhKxmWhvd5OAXRcyOW9RnJ-bWHLHoFIPSJmIpJf_zuP_kpENQljMpGMpueMtFjxJQ=w1920-h948-rw

Features
  • Based on the latest mixer_paths.xml from sultanXDA's LineageOS 14.1
  • Stereo audio
  • Biquad filters
    - earpiece is louder by filtering out the basses (main speaker also louder)
    - A lot more bass out of main speaker
  • Perfect balance between left and right channel
  • Added some missing ULL cases and output paths

Download

Installation instructions
1) Download the balanced or the volume boosted stereo mod above
2) Flash the zip-file through a custom recovery
(The mod will check if my 'balanced' or 'volume boosted' mod has already been installed. In case it hasn't, it'll make a back-up of the original mixer_paths.xml)
3) Ready!

Uninstallation instructions
Just install the Uninstall.zip, you're back to stock.
(I also noticed that not every ROM uses the same mixer_paths.xml, so if you lost your sound after flashing this mod, don't wory, just flash the Uninstall.zip)

Remarks
I use (and thus developed) this mod together with a dolby atmos port to get a great audio experience while watching movies and listening music. Therefore it is also optimal in combination with dolby atmos.

This mod was a lot of work, give a "thanks" or consider a small donation if you like it please.

Thanks To
Code:
@abhi08638 for teaching me about the stereo part of this mod.
@chdloc for teaching me about biQuads.

XDA:DevDB Information
Audio Mod, Tool/Utility for the OnePlus One

Contributors
louis-JYG4t

Version Information
Status: Stable

Created 2018-03-12
Last Updated 2018-03-21
 
Last edited:

louis-JYG4t

Senior Member
Mar 25, 2015
211
103
Nice work, but try to actually edit your posts instead of flooding the forum. Please. The mods are doing enough work already.

I see so many duplicate threads on same name created by you. It will be confusing for the user. Please retain this thread and delete the remaining. Thanks.

Hi
I know.. I kept arriving at a a page "this page doesn't work" so I thought the thread failed to be created every time.
Then I saw all the duplications and tried to delete them all, but although they were removed from my projects they kept existing in One Android Development...
In the mean time a mod already deleted the other ones :) Sory for the confusing!
 
  • Like
Reactions: Thanhbat

louis-JYG4t

Senior Member
Mar 25, 2015
211
103
That's weird... On pc, the link take you straight to this page (see attachment), but in the android app it doesn't... I'll upload a Google drive mirror..

Edit: same for the pictures in the 'introduction' section, they show up on pc but not in the android app.
 

Attachments

  • Knipsel.PNG
    Knipsel.PNG
    53.6 KB · Views: 722
Last edited:
  • Like
Reactions: Thanhbat

louis-JYG4t

Senior Member
Mar 25, 2015
211
103


it works perfect.you can manual replace the mixer_paths.xml from /system/vendor/etc.great job.



Oh I see, the location of mixer_paths.xml has changed with android 8.1...
I'll update the installer to support android 8.1. In the mean time, you could indeed manually replace the mixer_paths.xml like zzyyi66 said, but take a backup of the original because the uninstaller won't work if the installer can't make a backup.
For the people who manually replaced it without making a backup: another way to return to stock would be dirty flashing your rom again.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 20
    Code:
    *** Disclamer
    I made this mod for myself and I'm willing to share it with you. Install this at your own risk.

    Introduction
    This mod activates the earpeace speaker for playback of multimedia audio, to create a stereo sound.

    Using Qualcomms biquads, which is a hardware filter (doesn't interfere with software equalizers) in the audio codec that isn't used by default, I have been able to increase the volume and bass of the audio without harming the speakers. For this, I designed the biquads like this:

    Earpiece
    Let's be clear about it: the earpiece speaker isn't physically designed to produce loud and rich music and doing so may be harmfull for it.
    I filtered out the low-frequency tones for the earpiece speaker because these are the most harmfull for it. Doing so, I was also able to turn up the volume a tad without sacrificing on the quality of the audio.
    This is the frequency response of the earpiece speaker:
    X-AcT62JXUKRQkFhxuT5vncFZNQxZ7mhBdptLBl4tcJ49-4IsUfQrjc40x-iR5G831-rE-shmohnDQBy7bw6=w1920-h948-rw


    Main speaker
    Here I made 2 versions: 'balanced' and 'volume boosted'.
    Balanced:
    On this one I lowered the volume of the main speaker to match the volume of the earpiece speaker. But because the low-frequency tones are quite weak on the oneplus one, I decided to keep the basses on stock level. This way, the sound is nice balanced while basses are a bit boosted. This leads to a very nice audio experience while watching video's, however the max volume is quite low.
    The frequency response of the main speaker for this case is like this:
    Gs8cB-sWLH_go6KmQFFUYr9RSIXJg1VvzlkXL4cWh7I_zN516L0KRXh2UbKkDBSbgtJN44-ef7cNIAfkDMB6=w1920-h948-rw

    Volume boosted
    This is actually the same as the balanced, but the total volume is about the same as stock.
    I lowered the main speaker volume until the point where the earpiece and main speaker together produce about the same volume as stock. The low-frequency tones of the main speaker are kept at max volume. This leads to music with about the same volume, but better bass than stock. The nice stereo effect of the music is still present, but not balanced anymore.
    This is the frequency response of the main speaker:
    lIIJkzA9MTawQpwC6bfdhKxmWhvd5OAXRcyOW9RnJ-bWHLHoFIPSJmIpJf_zuP_kpENQljMpGMpueMtFjxJQ=w1920-h948-rw

    Features
    • Based on the latest mixer_paths.xml from sultanXDA's LineageOS 14.1
    • Stereo audio
    • Biquad filters
      - earpiece is louder by filtering out the basses (main speaker also louder)
      - A lot more bass out of main speaker
    • Perfect balance between left and right channel
    • Added some missing ULL cases and output paths

    Download

    Installation instructions
    1) Download the balanced or the volume boosted stereo mod above
    2) Flash the zip-file through a custom recovery
    (The mod will check if my 'balanced' or 'volume boosted' mod has already been installed. In case it hasn't, it'll make a back-up of the original mixer_paths.xml)
    3) Ready!

    Uninstallation instructions
    Just install the Uninstall.zip, you're back to stock.
    (I also noticed that not every ROM uses the same mixer_paths.xml, so if you lost your sound after flashing this mod, don't wory, just flash the Uninstall.zip)

    Remarks
    I use (and thus developed) this mod together with a dolby atmos port to get a great audio experience while watching movies and listening music. Therefore it is also optimal in combination with dolby atmos.

    This mod was a lot of work, give a "thanks" or consider a small donation if you like it please.

    Thanks To
    Code:
    @abhi08638 for teaching me about the stereo part of this mod.
    @chdloc for teaching me about biQuads.

    XDA:DevDB Information
    Audio Mod, Tool/Utility for the OnePlus One

    Contributors
    louis-JYG4t

    Version Information
    Status: Stable

    Created 2018-03-12
    Last Updated 2018-03-21
    3
    Cần you port maxxaudio to oreo :D
    I'm not developing anymore for the oneplus one as I'll replace it. I bought xiaomi mi 8 today for wich I'll probably make a stereo mod again.
    My oneplus served me 3 years, but part of my touchscreen isn't working anymore after one drop too much.. ?
    3
    Holy **** man, this is awesome!
    The very very best implementation I have ever Seen of Earphone for stereo.
    Totally upgrades experience. Many thanks for keeping my OPO so relevant and alive.

    The bass is also way better than anything I achieved with Viper4Arise.


    Thank you very much for sharing !

    Working great , real upgrade .

    Great to hear!
    You could leave a thumbs-up on the first post to encourage me to make more developments ?
    3


    it works perfect.you can manual replace the mixer_paths.xml from /system/vendor/etc.great job.



    Oh I see, the location of mixer_paths.xml has changed with android 8.1...
    I'll update the installer to support android 8.1. In the mean time, you could indeed manually replace the mixer_paths.xml like zzyyi66 said, but take a backup of the original because the uninstaller won't work if the installer can't make a backup.
    For the people who manually replaced it without making a backup: another way to return to stock would be dirty flashing your rom again.
    2
    12/03/2018
    Initial publication.

    21/03/2018
    Added istaller support for android oreo.