You came from...?

  • from a dead soundmod Thread...

    Votes: 124 13.0%
  • from your posts...

    Votes: 96 10.1%
  • from the link in your signature...

    Votes: 62 6.5%
  • from Google Search...

    Votes: 399 41.9%
  • from XDA Search...

    Votes: 361 37.9%
  • from Facebook...

    Votes: 8 0.8%

  • Total voters
    952
Search This thread
Yea I did. Where do I het the latest template?

I've got another question, is it possible to set a maximum volume for the earpiece? Like for example, when my main speaker is at 40% the earpiece is 40%, but when my main speaker is 100%, the earpiece is still at 40% or limited to a certain volume. Because I'm happy with the volume balance between the earpiece and the speaker so I don't want to turn down the earpiece value in mixer_gains.xml, but the earpiece is dangerously loud when the volume is >80%. At least by limiting the earpiece volume, I still get a balanced sound between the two drivers at lower volumes.

Or if it's not possible, then how do I lower the maximum overall volume? It would lower the main speaker's max volume, but it still would have louder total volume if you add up the earpiece.

Thanks in advance!👍I'll send you the mod for my phone after I've perfected it so that others could use it too.



Edit: I've attached the mixer files I've edited so far
You can search github:
Find a template and use it as a reference or use it itself...

Or create it yourself
https://github.com/topjohnwu/magisk-module-installer
as @topjohnwu has made it DIY...

As for your question, you can set the earpiece volume to safe level without affecting the speaker volume, but lowering the speaker volume will affect the sound quality, wouldn't make sense, you could try combining it with another sound mod but first, make sure your module is working, after that test different sound mods with yours till you find what you need...
 
  • Like
Reactions: drnightshadow

delfanasa

New member
Feb 6, 2021
3
0
hello, sorry I'm new here. My android is broken with the audio ic but I can still use the earpiece speakers. can the main speaker be disabled and only use the earpiece? because if the cellphone tries to sound through the main speaker, the mainboard gets hot. I use bluetooth for daily use, but bluetooth causes a ping jump on the wifi signal.

sorry I used translate.

details of the phone that I use:
Xiaomi Redmi Note 5a Prime (ugg)
snapdragon 435
Android: 11 Havoc OS v4.16 aosp
twrp installed
 
hello, sorry I'm new here. My android is broken with the audio ic but I can still use the earpiece speakers. can the main speaker be disabled and only use the earpiece? because if the cellphone tries to sound through the main speaker, the mainboard gets hot. I use bluetooth for daily use, but bluetooth causes a ping jump on the wifi signal.

sorry I used translate.

details of the phone that I use:
Xiaomi Redmi Note 5a Prime (ugg)
snapdragon 435
Android: 11 Havoc OS v4.16 aosp
twrp installed
You should be able to do that by either deleting lines related to speaker or setting the volume to 0
 
  • Like
Reactions: Diepie
Hi Dante,
thank you for your efforts, and for making a tutorial, I think this method became outdated and will not work with 2020+ phones anymore, my device as example don't have EAR PA Gain value, and instead it got EAR SPKR PA Gain with G_Default

I heard that your're no longer make this, can you refer us to a someone who has a knowledge with editing mixer_paths.xml, or tell us how did you learned editing them, so we can keep making a dual speaker mods for the phone with mono speaker, it's a real shame that some companies still launch their device with mono speakers in 2022!
 
Hi Dante,
thank you for your efforts, and for making a tutorial, I think this method became outdated and will not work with 2020+ phones anymore, my device as example don't have EAR PA Gain value, and instead it got EAR SPKR PA Gain with G_Default

I heard that your're no longer make this, can you refer us to a someone who has a knowledge with editing mixer_paths.xml, or tell us how did you learned editing them, so we can keep making a dual speaker mods for the phone with mono speaker, it's a real shame that some companies still launch their device with mono speakers in 2022!
I shared what I have been taught,
XDA @chdloc taught me basics of how to modify mixers because he stopped, and then what I learned i decided to share with everyone (chdloc kept sharing everything on XDA while I made a video and shared it on YouTube) ...

The concept will be the same all the time, trial and error to understand which mixer is loaded then modify its value...

I hope you'll be able to achieve what you're aiming for...
 
Last edited:
  • Love
Reactions: Diepie

official_pro

Senior Member
May 3, 2013
115
64
Kolkata
Realme XT
Please modify this file... Your old guide doesn't match with the new qcom/realme devices.. please help. Thanks in advance
 

Attachments

  • mixer_paths.xml
    97.6 KB · Views: 0

SHSM12

New member
Feb 16, 2023
3
0
The upper speaker is connected, with the left channel going into it. Question. How do I remove the left channel from the lower speaker? Because it turns out the wrong circuit (L-LR)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    You're free to investigate and then make a new thread to target new devices...

    This is a DIY thread and used as a reference only...
    Below commit will certainly help to enable stereo speaker/dual speaker on newer Qualcomm based SOCs..

    Commit:- https://github.com/improbir/android...mmit/01ac96a1e90331024d574b94480d20c7eceab3ec
  • 102
    Hello Everyone,
    I hope you all are great...

    I used to make DualSpeaker SoundMods and now I sharing my knowledge, make your own SoundMod and be a Hero :cool:...
    This MOD is safe as long you make sure you change permissions of the file to 644 (rw- r-- r--) & set Earpiece volume to safe limits...

    Please Read:
    --- Keep in mind, your Device Kernel has a major role for the SoundMod, in other words, Kernel is able to utilize smoothly allowing full DualSpeaker or fails at some points which gives partial DualSpeaker or completely fails which you don't get DualSpeaker at all...
    --- Custom Kernels that are modified at Sound Parts might affect my SoundMods, preventing it from Working (read Q&A)...
    --- Some SoundMods might interfere with my MOD & a RACE is done, last one finishes wins (read Q&A)...

    Kindly, Vote in the Poll (Where did you come from, How did you find this thread...?) & Rate it...

    Dante63 said:
    Important Notice (Hijack not intended):
    Lately, I have been searching XDA thread for all soundmod requests without intentions to hijack OP thread, I simply invite those who are requesting for soundmod for the devices unrelated to the thread, such requests for (SAMSUNG J2) in Samsung S7 section and so on, or threads where people replied with feedbacks to the OP and didn't get any response or updates for a very long period of time (more than a month), or perhaps the mod no longer works (outdated)...

    As I mentioned, All Soundmods here are modified from scratch, if an XDA member adjusted my soundmod and shared it (his preference) I will add his file on the thread and credits will go to that Member...

    My Intentions are to simply support all Devices with Dual Speaker SoundMod...
    If you're going to use this MOD in your Project
    please reference my Thread in your Project Thread as well Crediting...

    Don't Forget to say :good: THANKS :good:
    and
    if you're very happy, please consider Donating to Support me, it means a lot even if it was little...

    Thread Important Posts:
    • Post #2 is Thread Changelog...
    • Post #3 is Thread Progress...
    • Post #4 is Q & A - SoundMod...
    NOTICE: Exynos & Snapdragon Devices:
    • Exynos devices are easier to make due to that they use 2 mixer files, mixer_paths.xml and mixer_gains.xml, sometimes (only mixer_paths.xml)...
    • Kirin/Snapdragon devices takes long time since there are multiple mixer files that each phone use, unless you're lucky and it's only few like one or two mixers, yet they will require many tests, I'm willing to go that road but are you willing the same...?
    in case XDA YOUTUBE is not working, click on the link to view it https://www.youtube.com/watch?v=Su9Af-jrJWQ
    I no longer take requests, but I can now assist in teaching you and everyone else how to make your own dualspeaker soundmod... If you succeed in making the dualspeaker, kindly share your work for others aside from that, this thread will contain and support more devices... All credits are yours...

    How to Request the MOD (Please Cooperate with me):
    In one Post,
    1. Mention your device specs (Name, Model Number, Android and processor - EX: Samsung Galaxy Note 8, SM-N950F, Nougat 7.1.1, Exynos )...
      People Please ANDROID VERSION IS VERY IMPORTANT, I can't make TWRP or MAGISK without it...
    2. Compress all of your Mixers inside (system/etc) for Nougat, (system/vendor/etc) for Oreo, any file starting with word *mixer*.xml, name the file with Mixers-(*device model number*)-AndroidVersion (Ex: Mixers-SM-N950F-Oreo) & upload it...
      Also, People Please try to name the compressed archive with your device name & android version, because of many requests, mixers are being mixed up and I have to go back to the thread verify which belongs to who, please cooperate...
      OK, lately I have been forgetting who requested the MOD, Would you please also write your name in file name, so I could search the thread for you...

      Notice about Mixers:
      --- In rare cases, the mixers I specified are not used by the phone, to verify, rename them to .bak or remove them, if no sound is produced by the phone then you have the correct mixers else mixers are located at a different place open android terminal and type:
      Code:
      su
      find / -name *mixer* > /sdcard/mixerpaths.txt
      cat /sdcard/mixerpaths.txt
      you can also view the results at "/sdcard/mixerpaths.txt",
      if you're not sure which mixers, attach the mixerpaths.txt and I'll have a look and tell you possible paths...
    What I'll Do?
    • I'll add the Mods here...
      First I'll search for your device on XDA, if it exist I'll add my Mods Here,
      If it doesn't exist, then I'll make a thread there and post the link here...
    • You'll be listed as a tester of the MOD if you stop providing feedbacks, I won't be able to proceed and thus, the MOD goes on hold and I move to another device...
    • I start with the devices that most likely won't take much time...

    How to install?
    --- You have 3 ways to install the MOD:
    1. You manually copy the files from archive "Manual" into the path of mixers and change permissions to 644 (rw- r-- r--)...
    2. You flash TWRP, if TWRP freezes then reboot, it means Wrong TWRP was flashed, TWRP will create a backup for your current Mixers saved in the same mixers location...
    3. You can just install Magisk...

    How to revert?
    --- You have 2 ways to revert back to Original:
    1. You manually copy the files from archive "Original" into the path of mixers and change permissions to 644 (rw- r-- r--) or if you flashed TWRP, then check if backup exists "mixername.xml.bak0", if you found it, delete "mixername.xml" and rename the "mixername.xml.bak0" to "mixername.xml" make sure permissions are still 644 (rw- r-- r--)...
    2. You can use the TWRP file to flash the Original/Backup mixers by simply replacing/swapping the files inside it (do not touch folder META-INF)...

    Normal ROMS (Use as sample)
    List of Devices Done:
    • Samsung Devices:

      1. Samsung Galaxy S9/S9+ - TWRP+MAGISK - Volume Gain - Exynos & Snapdragon - ROOT ONLY
      2. Samsung Galaxy A Series (2017) - Samsung Galaxy J3 2017 Compatible - Dual Speaker SOUNDMOD - TWRP + MAGISK - Root Only
      3. Samsung Galaxy J3 2017 in case you missed it, visit the link above for Samsung Galaxy A Series (2017)...
      4. GALAXY NOTE 8 - TWRP+MAGISK - DualSpeaker - Exynos & Snapdragon - ROOT ONLY
      5. Samsung S7/S7Edge Exynox/Snapdragon (thread to be created soon) - (requested & tested by BlazingKahn35)
        Google Drive: Oreo (need oreo mixers) + Nougat - Samsung S7/S7Edge - SoundMod - TWRP
        DIY Volume Level:
        Exynos, open mixer_gains.xml:
        Code:
        	<path name="gain-media-ear">
        		<ctl name="HPOUT3L Input 1 Volume" value="23" />
        		<ctl name="HPOUT3L Input 2 Volume" value="23" />
        	</path>
        	<path name="gain-media-speaker">
        		<path name="gain-media-ear"/>
        		<ctl name="HPOUT3L Input 1 Volume" value="34" />
        		<ctl name="HPOUT3L Input 2 Volume" value="34" />
        		<ctl name="AIF4TX1 Input 1 Volume" value="35" />
        		<ctl name="AIF4TX2 Input 1 Volume" value="35" />
        	</path>
      6. Samsung S8/S8+ Exynox/Snapdragon (thread to be created soon) - (requested & tested by jujomar)
        Google Drive: Oreo (need oreo mixers) + Nougat - Samsung S8/S8+ - SoundMod - TWRP
        Snapdragon DIY Volume Level:
        Speaker Volume is not present in the mixer!
        Code:
        <path name="spk">
        ------------------
        		<ctl name="RX0 Digital Volume" value="90" /> <!--earpiece, default 84, safe upto 95, danger above 95-->
        ------------------
            </path>
      7. Samsung A Series (2016) (thread to be created soon) - (requested & tested by xpity34)
        Google Drive: STOCK ROM - Samsung A SERIES 2016 - STOCK ROM - TWRP+MAGISK - DualSpeaker - ROOT ONLY
        DIY Volume Level:
        I believe the words speak for themselves, current values are default
        Code:
        	<path name="gain-media-speaker">
        ------------------
        		<ctl name="Speaker Volume" value="0" /><!-- 0 db : 0, step +2 db-->
        		<ctl name="Earphone Volume" value="0" /><!-- 0 db : 0, step +2 db-->
        	</path>
        	<path name="gain-media-headset">
        ------------------
        		<ctl name="Headphone Volume" value="36" /><!-- 0 db : 0, step +2 db-->
        	</path>
      8. Samsung J7 Pro Exynox (thread to be created soon) - (requested & tested by jluisolsito)
        Google Drive: Oreo (need oreo mixers) + Nougat - Samsung J7 Pro - SoundMod - TWRP+Magisk
        DIY Volume Level:
        I believe the words speak for themselves
        Code:
        	<path name="gain-media-speaker">
        ------------------
        		<ctl name="Speaker Volume" value="3" /><!--  default 0 db : 0, step +2 db-->
        		<ctl name="Earphone Volume" value="3" /><!-- default 0 db : 0, step +2 db-->
        	</path>
        	<path name="gain-media-headset">
        ------------------
        		<ctl name="Headphone Volume" value="36" /><!-- 0 db : 0, step +2 db-->
        	</path>
      9. Samsung J7 Prime Exynox (thread to be created soon) - (requested & tested by luuphong559)
        Google Drive: Oreo (need oreo mixers) + Nougat - Samsung J7 Prime - SoundMod - TWRP
        DIY Volume Level:
        I believe the words speak for themselves, current values are default
        Code:
        	<path name="gain-media-speaker">
        ------------------
        		<ctl name="Speaker Volume" value="0" /><!-- 0 db : 0, step +2 db-->
        		<ctl name="Earphone Volume" value="0" /><!-- 0 db : 0, step +2 db-->
        	</path>
        	<path name="gain-media-headset">
        ------------------
        		<ctl name="Headphone Volume" value="36" /><!-- 0 db : 0, step +2 db-->
        	</path>
      10. Samsung S5 Neo Exynox (thread to be created soon) - (requested & tested by Zapryanovv)
        Google Drive: Oreo (need oreo mixers) + Nougat - Samsung S5 Neo - SoundMod - TWRP
        DIY Volume Level:
        I believe the words speak for themselves, current values are default
        Code:
        	<path name="gain-media-speaker">
        ------------------
        		<ctl name="Speaker Volume" value="0" /><!-- 0 db : 0, step +2 db-->
        		<ctl name="Earphone Volume" value="0" /><!-- 0 db : 0, step +2 db-->
        	</path>
        	<path name="gain-media-headset">
        ------------------
        		<ctl name="Headphone Volume" value="21" /><!-- 0 db : 0, step +2 db-->
        	</path>
    • Xiaomi Devices:

      1. Xiaomi Redmi 5 - (requested by hibiny6990)
        Google Drive: Xiaomi Redmi 5 - TWRP+MAGISK - DualSpeaker - ROOT ONLY
        DIY Volume Level:
        Speaker Volume is not present in the mixer!
        Code:
        <path name="speaker">
        ------------------
        		<ctl name="RX1 Digital Volume" value="84" /> <!--earpiece, default 84, safe upto 95, danger above 95-->
        ------------------
            </path>
      2. Xiaomi Mi5 - (Nougat) : (Nougat requested & tested by pi4a7a) - (Oreo) : (requested & tested by RatchetHacked)
        Google Drive: Xiaomi Mi5 - SoundMod - TWRP + MAGISK
        DIY Volume Level:
        Speaker Volume is not present in the mixer!
        Code:
        <path name="speaker">
        ------------------
        		<ctl name="RX0 Digital Volume" value="90" /> <!--earpiece, default 85, safe upto 95, danger above 95-->
        ------------------
            </path>
      3. Xiaomi Mi A1 (Nougat + Oreo): (requested by laugeek57)
        [MOD] Xiaomi mi A1 - MOD DualSpeaker/BuzzFix/MicFix - (TWRP + MAGISK)
      4. Xiaomi Mi5S Plus (Nougat): (requested by danypava)
        Google Drive: Xiaomi Mi5S Plus - SoundMod - TWRP + MAGISK
        DIY Volume Level:
        Code:
        <path name="speaker">
        ------------------
        		<ctl name="RX0 Digital Volume" value="95" /> <!--earpiece, default 85, safe upto 95, danger above 95-->
        		<ctl name="RX0 Mix Digital Volume" value="95" /> <!--earpiece, default 85, safe upto 95, danger above 95-->
        		<ctl name="RX2 Mix Digital Volume" value="95" /> <!--speaker, default 84, safe upto 105, danger above 105-->
        		<ctl name="RX2 Digital Volume" value="95" /> <!--speaker, default 84, safe upto 105, danger above 105-->
        		<ctl name="RX3 Mix Digital Volume" value="95" /> <!--speaker, default 84, safe upto 105, danger above 105-->
        		<ctl name="RX3 Digital Volume" value="95" /> <!--speaker, default 84, safe upto 105, danger above 105-->
        		<ctl name="RX4 Digital Volume" value="95" /> <!--speaker, default 84, safe upto 105, danger above 105-->
        		<ctl name="RX4 Mix Digital Volume" value="95" /> <!--speaker, default 84, safe upto 105, danger above 105-->
        		<ctl name="RX5 Digital Volume" value="95" /> <!--speaker, default 84, safe upto 105, danger above 105-->
        ------------------
            </path>
      5. Xiaomi Redmi 5 Plus: (requester & tester by afznov)
        Google Drive: Xiaomi Redmi 5 Plus - SoundMod - TWRP + MAGISK
        DIY Volume Level:
        Speaker Volume is not present in the mixer!
        Code:
        <path name="ear">
        ------------------
        		<ctl name="RX1 Digital Volume" value="90" /> <!--earpiece, default 84, safe up-to 95, danger above 95 to 120-->
        ------------------
            </path>
      6. Xiaomi redmi 4: (requester & tester by srtraky) (INCOMPATIBLE, MOD CAN'T BE APPLIED)
        MOD status: 16 attempts failed, the device is a very low-end, kernel either uses speaker or earpiece, mixer lacks of many lines of codes, inflexible to modify...
    • Sony Devices:

      1. Sony Xperia Z3: (requester & tester by pi4a7a)
        MOD Status: ABANDONED BY REQUESTER (waiting for requester to respond)
      2. Sony Xperia XZ 1: (requester & tester by [email protected])
        Google Drive: Sony Xperia XZ 1 - SoundMod - TWRP + MAGISK
        DIY Volume Level:
        Speaker Volume is not present in the mixer!
        Code:
        <path name="ear">
        ------------------
        		<ctl name="RX0 Digital Volume" value="84" /> <!--earpiece, default 84, safe up-to 95, danger above 95 to 120-->
        ------------------
            </path>
    • Huawei Devices:

      1. Huawei Honor 6X (Nougat): (requester & tester by sreekantt)
        MOD status: Test Delay till friday...
      2. Honor 4C CHM-U01 (Marshmallow): (requester & tester by kosmitchak)
        Google Drive: Honor 4C - SoundMod - Magisk + TWRP
      3. Honor 8 (Nougat): (requester & tester by Markxdx)
        Google Drive: Honor 8 - SoundMod - Magisk + TWRP
    • Lenovo Devices:
      1. Lenovo ZUK Z2 Pro (Nougat): (requester & tester by dimitar.petrunov)
        [MOD] Lenovo ZUK Z2 Pro - SoundMod DualSpeaker - (TWRP + MAGISK)
      2. Lenovo P2 - (requested & tested by merabini78)
        Google Drive: Oreo (need oreo mixers) + Nougat - Samsung S8/S8+ - SoundMod - TWRP
        DIY Volume Level:
        Speaker Volume is not present in the mixer!
        Code:
        <path name="ear">
        ------------------
        		<ctl name="RX1 Digital Volume" value="84" /> <!--safe upto 95, danger above 95-->
        ------------------
            </path>
    • Coolpad Devices:
      1. Note 5 (Nougat): (requester & tester by Sanket Pathania)
        Google Drive: Coolpad Note 5 - SoundMod DualSpeaker - (TWRP + MAGISK)
        DIY Volume Level:
        Speaker Volume is not present in the mixer!
        Code:
        <path name="speaker">
        ------------------
        		<ctl name="RX1 Digital Volume" value="84" /> <!--earpiece, default 85, safe upto 95, danger above 95-->
        ------------------
            </path>
    • OnePlus Devices:
      1. OnePlus X (Nougat): (requester & tester by sagardakua)
        Google Drive: OnePlus X - SoundMod - TWRP + MAGISK
        DIY Volume Level:
        Speaker Volume is not present in the mixer! and change both values in ear and speaker to have unified volume level...
        Code:
        <path name="ear">
        ------------------
        		<ctl name="RX1 Digital Volume" value="95" /> <!--earpiece, default 85, safe upto 95, danger above 95-->
        ------------------
            </path>
        <path name="speaker">
        		<ctl name="RX1 Digital Volume" value="95" /> <!--earpiece, default 85, safe upto 95, danger above 95-->
            </path>
      2. OnePlus 2 (Nougat + Oreo): (requester & tester by FPSUsername)
        Google Drive: OnePlus 2 - SoundMod - TWRP + MAGISK
        DIY Volume Level:
        Speaker Volume is not present in the mixer! and change both values in ear and speaker to have unified volume level...
        Code:
        <path name="ear">
        ------------------
        		<ctl name="RX1 Digital Volume" value="95" /> <!--earpiece, default 85, safe upto 95, danger above 95-->
        ------------------
            </path>
        <path name="speaker">
        		<ctl name="RX1 Digital Volume" value="95" /> <!--earpiece, default 85, safe upto 95, danger above 95-->
            </path>
      3. OnePlus 3/3T (Oreo): (requester & tester by theduke7)
        Google Drive: OnePlus3/3T - SoundMod - TWRP + MAGISK
        DIY Volume Level:
        Speaker Volume isn't present in the mixers
        Code:
            <path name="speaker">
        ------------------
        		<ctl name="RX0 Digital Volume" value="90" /> <!--earpiece , default is 84, Safe up-to 95, beyond is DANGEROUS-->
        ------------------
           </path>
      4. OnePlus 5 (Oreo): (requester & tester by silvershadow)
        Google Drive: OnePlus5 - SoundMod - TWRP + MAGISK
        DIY Volume Level:
        Requester asked for Bluetooth Volume & AUX Volume (Considered as Headphones) aside from speaker & earpiece
        Code:
            <path name="speaker">
        ------------------
        		<ctl name="RX0 Digital Volume" value="85" /> <!--earpiece up-to 95, beyond is DANGEROUS-->
        		<ctl name="RX1 Mix Digital Volume" value="85" /> <!--speaker up-to 95, beyond is DANGEROUS-->
        		<ctl name="RX2 Mix Digital Volume" value="85" /> <!--speaker up-to 95, beyond is DANGEROUS-->
        		<!--as speaker was rewritten, RX1 & RX2 are usually seen as Speaker level, if it's not noticed please report it-->
        ------------------<!--Commented Lines would probably not work, but you may experiment by removing "<!--" & "-->"
            </path>
            <path name="headphones">
        ------------------
        	<ctl name="RX1 Mix Digital Volume" value="84" /><!--usually seen as left channel, up-to 95, beyond depends on how much you hate your Ears-->
                <ctl name="RX2 Mix Digital Volume" value="84" /><!--usually seen as right channel, up-to 95, beyond depends on how much you hate your Ears-->
            </path>
            <path name="bt-a2dp">
        ------------------
        	<ctl name="RX7 Digital Volume" value="84" /><!--usually seen as BT Volume, up-to 95, beyond depends on how much you hate your Ears-->-->
            </path>
    • LG Devices:
      1. LG G Pad X V521 (Nougat): (requester & tester by jamescable)
        Device has one speaker at the bottom only, nothing dual, only thing I can do is raise the volume, requester appreciated my offer and passed...
      2. LG V30 - (requested & tested by Mentalmuso)
        I was informed there are two versions: US998 & H930, they have been Merged with best settings from each...
        Google Drive: Oreo (need oreo mixers) + Nougat - LG V30 - SoundMod - TWRP+Magisk
        DIY Volume Level:
        Speaker Volume is not present in the mixer!
        Code:
            <path name="speaker">
        ------------------
        		<ctl name="RX0 Digital Volume" value="84" /><!--earpiece up-to 95, beyond is DANGEROUS-->
            </path>
            <path name="headphones">
        ------------------
                <ctl name="RX1 Mix Digital Volume" value="76" /><!--Volume, usually seen as left channel, up-to 95, beyond depends on how much you hate your Ears-->
                <ctl name="RX2 Mix Digital Volume" value="76" /><!--Volume, usually seen as right channel, up-to 95, beyond depends on how much you hate your Ears-->
        ------------------
            </path>
      3. LG G4 H815 - (requested & tested by [email protected])
        Google Drive: Oreo (need oreo mixers) + Nougat - LG G4 H815 - SoundMod - TWRP+Magisk
        DIY Volume Level:
        Speaker Volume is not present in the mixer!
        Code:
            <path name="speaker">
        ------------------
        		<ctl name="RX1 Digital Volume" value="90" /><!--default 84, earpiece safe up-to 95, beyond is DANGEROUS-->
        ------------------
            </path>
    LineageOS ROM (Use as sample)
    List of Devices Done:
    • Samsung Devices:

      1. Samsung A Series (2016) LineageOS - (requested & tested by mohand06)
        Google Drive: LOS ROM - Samsung A SERIES 2016 - TWRP+MAGISK - DualSpeaker
        DIY Volume Level:
        I believe the words speak for themselves, current values are default
        Code:
        	<path name="gain-media-speaker">
        ------------------
        		<ctl name="Speaker Volume" value="4" /><!-- 0 db : 0, step +2 db, default is 0-->
        		<ctl name="Earphone Volume" value="4" /><!-- 0 db : 0, step +2 db, default is 0-->
        	</path>
        	<path name="gain-media-headset">
        ------------------
        		<ctl name="Headphone Volume" value="25" /><!-- 0 db : 0, step +2 db, default is 21-->
        	</path>
      2. Samsung S7/S7Edge Exynox/Snapdragon LineageOS (thread to be created soon) - (requested & tested by king3opobn)
        Google Drive: LOS ROM - Oreo + Nougat - Samsung S7/S7Edge - SoundMod - TWRP+MAGISK
        DIY Volume Level:
        Exynos:
        Code:
        		<path name="gain-media-handset">
        		<ctl name="HPOUT3L Input 1 Volume" value="23" />
        		<ctl name="HPOUT3L Input 2 Volume" value="23" />
        	</path>
        	<path name="gain-media-speaker">
        		<ctl name="AIF4TX1 Input 1 Volume" value="32"/>
        		<ctl name="AIF4TX2 Input 1 Volume" value="32"/>
        	</path>
    Futuristic:
    • Create Flashable TWRP for all Devices... (Done :))
    • Create MAGISK Module for all Devices... (Done :))
    • Have a section listing Soundmods by other Developers so this thread contains not only my works but others with credits...
    PLEASE YOUR FEEDBACK IS IMPORTANT...

    !!! ALWAYS MAKE BACKUP OF YOUR FILES BEFORE REPLACING THEM !!!
    Once you replace them, IMPORTANTLY change the permissions to 644 (rw- r-- r--)...

    LAST IMPORTANT NOTICE:
    This MOD can be used with Equalizers, even though this MOD sets the phone to the loudest balanced volume gain...
    Using Equalizers might cause crackles and noise which damage your earpiece & speaker if you don't fix it, to fix it either you adjust the other MOD settings by reducing the boost
    or Adjusting my MOD by Opening the mixer file I tell you and adjust the volume I mention for you decreasing it, you must eliminate all crackles and noises...


    Big Credits go to XDA Member chdloc for his help in explaining non-exynos mixers...

    Don't Forget to say :good: THANKS :good:
    and
    if you're very happy, please consider Donating to Support me, it means a lot even if it was little...
    27
    My Request for You:
    --- Report if Magisk or TWRP isn't Working in order to fix, I keep maintaining Magisk template of this MOD as well TWRP
    and I wish that you try your best in making this MOD on your own... :angel:


    --- Report if Magisk or TWRP isn't Working, as I have updated all devices I may have missed something, you'll have errors, just mention the Magisk/TWRP filename and I'll do the rest, you're not required to post images unless I ask you for it because I know the Expected Error... :angel:


    Current Complaints:
    --- None...

    Currently Abandoned by requester:

    --- Sony Xperia Z3...
    *** Following Devices are missing Files...
    --- Galaxy S4 Mini LTE (oreo 8.1 Lineage)...
    --- HTC HD2 (nougat 7.1.1 Evervolv)...
    --- HTC Desire 500 (jellybean 4.1.2 stock)...

    Currently Queued Requests:
    --- Lenovo K6 Plus...
    --- Lenovo P2 LOS...
    --- Nexus LG 5 LOS...
    --- Xperia XA1...

    Currently Requester Not Responding:
    --- Vivo V3...
    --- LOS Huawei Honor 6X...
    --- J5 2015...
    --- Infinix Zero 4 Plus...
    --- Note 3...

    Requests that will take sometime to fulfill due to complications in the Mixers (Sorry, but I'm doing my very best):
    --- Xiaomi Redmi 3X...
    --- Xiaomi Redmi 3S/3S prime...
    --- Xiaomi Redmi Note 4X...

    Currently Doing:
    --- Testing...

    Currently Being Tested:
    --- Redmi mi5s Oreo Capricorn... - failed - waiting for requester
    --- Letv x821 codename x2 ... - testing again - requester not responding
    --- Sony Xperia Z5 premium... - testing
    --- LG stylo 2 plus... - success,posting soon
    --- Galaxy S6 LOS... - success, posting soon
    --- LGV30 Oreo... - success, posting soon
    --- J7 2015... - success, posting soon
    --- LOS MI Max prime... - success, posting soon
    --- Mi Note 2... - success, posting soon


    Done:

    --- Released MOD for LOS MI Max prime...
    --- Released MOD for J7 2015...
    --- Released MOD for A series LOS 2016...
    --- Released MOD for Galaxy J7 Pro...
    --- Released MOD for Honor 8...
    --- Released MOD for OnePlus X...
    --- Released MOD for Redmi 5...
    --- Released MOD for Galaxy A series 2016...
    --- Released MOD for Lenovo p2...
    --- Released MOD for LG G4 H815...
    --- Released MOD for Xiaomi Redmi 5 Plus...
    --- Released MOD for Sony Xperia XZ 1...
    --- Released MOD for OnePlus 3...
    --- Updated LG V30 MOD - Merged LG V30 US version with Europe Version...
    --- Released MOD for OnePlus 2...
    --- Released MOD for Coolpad Note 5...
    --- Released MOD for Samsung Galaxy S7 Normal ROM...
    --- Released MOD for Samsung Galaxy S7 Edge LineageOS...
    --- Early release for Samsung S9/S9+ Exynos & Snapdragon...
    --- Released MOD for Samsung Galaxy J7 Prime...
    --- Released MOD for LG V30, US version...
    --- Released MOD for Honor 4C CHM-U01...
    --- Released MOD for One Plus 5...
    --- Released MOD for Samsung Galaxy S5 Neo...
    --- Released MOD for Samsung S8/S8+ Exynos & Snapdragon...
    --- Released MOD for Samsung Galaxy Note 8 (2017) Exynos & Snapdragon...
    --- Released MOD for Samsung A3,A5,A7 (2017)...
    --- Released MOD Xiamoi Mi5 Nougat & Oreo Device Mixers...
    --- Released MOD for Xiaomi Mi A1...
    --- Released MOD for Xiaomi Mi5S Plus...
    --- Released MOD for Lenovo ZUK Z2 Pro...
    --- Added TWRP + MAGISK to All Devices...
    --- Updated MAGISK to Support V15 & Above...

    Confirmed & Conclusions:
    --- LG G Pad X V521 has only one speaker at the bottom, only thing I can do is boost the sound, requester appreciated my offer and passed...
    --- Xiaomi redmi 4 is a very low end, after 16 tests I can finally reach to a conclusion the device is not supported as the mixer files is missing many lines of codes, adding those lines cause issues with kernel as it seems kernel doesn't support these lines or maybe I am wrong & can't see where the problem is at...
    22
    (07/04/2019)
    --- MAGISK 18.1 template added to the list of the templates and 1700 was moved to the folder "old"...
    (26/12/2018)
    --- I have noticed the XDA youtube tags not working and the button is not there, perhaps it is being updated, so I added the youtube link below the YouTube Tag...
    (11/10/2018)
    --- MAGISK 1700 added to the list of the templates and 1500 was moved to the folder "old"...
    (31/08/2018)
    --- YouTube Tutorial released...
    (20/07/2018)
    --- Update, Project will change into a tutorial...
    (24/04/2018)
    --- life pressure, project suspended...
    (25/03/2018)
    --- Thread updated...
    --- More test devices ready, 2 succeeded, I will post them soon... (Have a look at Post #3)
    (21/03/2018)
    --- Samsung J3 2017 is identical to the A Series 2017...
    --- Oneplus 3T is identical to OnePlus 3...
    --- Rebuilt Exynos Note 8 SoundMod...
    --- Released MODs fro Note 8 Exynos OREO and LOS A Series 2016...

    View More back to (16/01/2018)

    (19/03/2018)
    --- Updated All TWRPs, now it will not overwrite your backup...
    --- Released MODs fro OnePlus X, J7 Pro and Honor 8..
    (18/03/2018)
    --- Organized thread and added DIY Volume, released Working MODs...
    (15/03/2018)
    --- Ugly Batch release, to be tested and Organized later...
    (12/03/2018)
    --- I bricked my phone and I restored by 14/03/2018, I resumed working on MODs on 15/03/2018...
    (09/03/2018) - It's Friday, my break day, no MOD work, just got test results back from testers and thought of releasing instead of delaying it till Sunday ;)
    --- Xiaomi Redmi 5 Plus - SoundMod released...
    --- Sony Xperia XZ 1 - SoundMod released...
    (07/03/2018)
    --- OnePlus 2 - SoundMod released...
    --- OnePlus 3 - SoundMod released...
    --- Merged LG V30 US version with Europe Version - SoundMod Updated...
    --- Normal ROM - S7 Edge Exynos Oreo - SoundMod released...
    (05/03/2018)
    --- Tidy up the Thread...
    --- LineageOS - S7 Edge Exynos - SoundMod released...
    --- Normal ROM - S7 Edge Exynos Nougat - SoundMod released...
    --- Coolpad Note 5 - SoundMod released...
    --- All TWRPS have been updated, they will backup your current Mixers in the same path with file name as "mixername.xml.bak0", if you flash it twice you'll lose your Original...
    (04/03/2018)
    --- Early release for S9/S9+ SoundMod...
    (01/03/2018)
    --- OnePlus 3 - Added to the Queue...
    --- Samsung J7 Prime - MOD released...
    --- LG V30 - MOD released...
    (28/02/2018)
    --- OnePlus 5 - Applied Full DualSpeaker Fix...
    --- Xiaomi Devices some devices recieved Full DualSpeaker Fix...
    --- Lenovo ZUK Z2 Pro Full DualSpeaker Fix...
    --- Honor 4C CHM-U01 - MOD released...
    --- LG G4 H815 MOD pulled and closed...
    (25/02/2018)
    --- Samsung Note 8 Snapdragon - Fix Update released...
    --- Xiaomi redmi 4 not Compatible with the SoundMod...
    (19/02/2018)
    --- LG G4 H815 MOD released - TO BE TESTED...
    (15/02/2018)
    --- All Magisk Modules were updated to support version 15 & above...
    --- LG V30 MOD released - TO BE TESTED...
    (12/02/2018)
    --- One Plus 5 MOD released...
    --- Added Volume Lines for Samsung Galaxy S5 Neo MOD..
    (11/02/2018)
    --- Fixed Lenovo ZUK Z2 Pro soundmod issue, kernel related not in my hands ¯\_(ツ)_/¯...
    --- Samsung Galaxy S5 Neo MOD released...
    (07/02/2018)
    --- MOD released for Samsung S8/S8+ Exynox/Snapdragon...
    (05/02/2018)
    --- Fixed Xiaomi Mi A1 headphones issue, significantly reduced hissing/buzzing sound but can't eliminate it completely, not in my hands ¯\_(ツ)_/¯...
    (01/02/2018)
    --- Fixed Xiaomi soundmod issue, kernel related not in my hands ¯\_(ツ)_/¯...
    (31/01/2018)
    --- All Xiaomi Devices have TWRP + MAGISK...
    --- MOD released for Xiaomi Mi5 Oreo released...
    --- Fixed Thread links, Merged Xiaomi Mi5 - Nougat & Oreo in one link...
    (30/01/2018)
    --- MOD release for Lenovo Zuk Z2 Pro...
    --- MOD released for Xiaomi Mi5S Plus...
    --- Detected problems in Xiaomi Mi A1...
    (29/01/2018)
    --- MOD released for Xiaomi Mi A1...
    --- Added Lenovo ZUK Z2 Pro & Huawei Honor 6X to the list...
    (28/01/2018)
    --- Created a thread for Xiaomi Mi A1 requested by laugeek57...
    (22/01/2018)
    --- Released Xiaomi Mi5 Final, tested by pi4a7a...
    (21/01/2018)
    --- Updated Galaxy Note 8 - Snapdragon is supported now...
    --- Xiaomi Mi5 Alpha release, need testers...
    (16/01/2018)
    --- Added 2 Devices in Samsung Section...
    16
    Q & A - SoundMod - (keep in mind, this is DIY now, I don't take requests)
    What's this SoundMod...?
    --- Enabling DualSpeaker/PseudoStereo by using the earpiece and balancing as much as possible with the speaker,
    but keep in mind that if the earpiece specs are low, the sound would come low, so I won't lower the speaker volume, the purpose of this Mod is to enable the earpiece to the max volume possible with a slight boost to the phone speaker without damaging them...

    My Device Kernel has a Major Role, SoundMod isn't Guaranteed...?
    --- Not necessarily, Kernel reads from the modified mixers and tries to utilize the speaker & earpiece, failing to do so will result no output sound, the probability of success is as follows (in my Opinion):
    • Low-End-Devices: 20 to 25% success in getting Partial DualSpeaker, 5% for full DualSpeaker...
    • Mid-Range-Devices: 60 to 75% success in getting Partial DualSpeaker, 30% for full DualSpeaker...
    • High-End-Devices: 100% success in getting Partial DualSpeaker, 95% for full DualSpeaker...
    To Fix this issue, I disable the DualSpeaker Partially and as minimal, at least you could enjoy DualSpeaker at some points...

    Wait, I understand "No DualSpeaker at all", but what do you mean Full & Partial DualSpeaker...?
    --- Let's start with the Partial DualSpeaker: The phone sometimes will be using both speakers and sometimes only the bottom speaker depending on the software audio_policy sent to the kernel and interact with the hardware, Full DualSpeaker means both speakers are used always regardless the audio_policy...

    is it Possible somehow the "Partial DualSpeaker" becomes Full DualSpeaker...?
    --- So Far, All the devices I put my hands on, I managed to make them from Partial to Full, takes some time and requires patience...

    I have a Custom Kernel installed, will that be a Problem...?
    --- That might be a problem, especially if the Sound Part was Modified, the MOD might not work or have issues...

    Do different Android versions have the same SoundMod...?
    --- Not necessarily, because first the path of the mixer files change and there is a chance the structure of the mixer file has changed, so make sure you are using the right Android version and if it's not there request it, (read how to request a mod from my thread & mention your request is because of different android version, Ex: (Samsung Note 8 Exynos Android Oreo, Nougat is already Created in your thread)...

    How safe is it...?
    --- It's very safe as long you change the file permissions to 644 (rw- r-- r--), if you forgot to change them, you might end up in a bootloop, if that happens, in your custom recovery you'll need to go to the files and change their permissions via file manager, or your phone boots up but muted completely (Sound input & output Disabled)...

    Can I go Back...?
    --- Yes if you backed up, and if you didn't, let me know and I'll see if I have the original mixers...
    And if you used TWRP, you'll find the Backup in same path, mixers ending with ".bak0", unless you flashed twice then your Original Mixers have been overwritten...

    Is it Mono/Stereo...?
    --- Depends on the hardware specs, Some are Mono only, Some are Stereo, if you want to know, there are many Apps on the Play Store that does Sound Tests: simply type "stereo test" and select the app you want, most phone by default play sounds stereo and as result you'd hear the earpiece producing sound from one channel (L) & Speaker from two channels (L & R), if I disable the Left channel from the speaker to make it sound real stereo surround you'll lose sound Volume, Gain and Quality because the earpiece isn't strong enough to compensate the disabled L channel of the speaker, if you insist, I'll see if I have time to have a look and make you the MOD, It's just I don't waste my time on Lowering Sound Volume, Gain and Quality, feel free to fiddle and make it stereo, thread is DIY...

    Can I use it with other Equalizers/Amplifiers...?
    --- Most Likely No, Because if there is a slight Noise/crackles in the speaker, on long run they will be damaged...
    But if you really want to, I'll mention which lines you need to modify for the volume, simply lower the values to eliminate any Noise/crackles...

    What about other SoundMods...?
    --- Depends on the MOD, if it's targeting the same mixers, then there will be a RACE on who applies config & last MOD applies is the Winner...
    If it's not targeting the mixers, then I'd answer you similarly to previous Question...

    Why Include all files that have the word "mixer"...?
    --- Some Devices have multiple Mixers but uses only one of them, such as Samsung, Different variants use different mixers, not confirmed yet though...

    Can I have special requests...?
    --- Depends on your request, if the request is simple, I'll direct you to the lines to modify to achieve your request, if it's complicated, I'll find time to do them...

    What do I have to report...?
    --- VERY IMPORTANT to report the Noise/Crackles because they damage the earpiece/speaker on long run or no sound coming at certain action done...
    Also, Any weird behavior such as mic issues or volume level or phone muted at some apps...
    13
    My apologies to everyone, I assumed I'll manage to finish it soon, there will be slight delays...

    Have patience and bear with me...
    Thank you all