[Miscellaneous Android Development] Dante63:
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...