Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,802,957 Members 39,376 Now Online
XDA Developers Android and Mobile Development Forum

[DEV] Voodoo Sound for Optimus 2x and G2x

Tip us?
(Last edited by supercurio; 9th July 2011 at 08:56 PM.)
supercurio's Avatar
Senior Recognized Developer - OP
Thanks Meter 5,072
Posts: 3,529
Join Date: May 2010
Location: Chambéry

Default [DEV] Voodoo Sound for Optimus 2x and G2x


After a ton of requests from you guys, I finally decided to take the challenge to write a Voodoo Sound port for this WolfsonMicro WM8994 powered phone.

So I bought a device just for that, because it was just impossible without.
As stated previously, this phone don't have a proper sound driver, or at least not a Linux Kernel driver.

There is some kind of non-standard userspace audio implementation inside /system/bin/nvrm_daemon.
This daemon sends directly i2c commands via a NVIDIA proprietary API, which has an interface running as a bunch of foreign code in Kernel in order to access the hardware.

Why this port is a real technical challenge, requiring a fair share of reverse-engineering, lots of head-scratching and a very hacky state of mind?
Because it's not supposed to be possible. But, eh ^^

I have an Optimus 2x since a few days only so I don't have much experience about what needs to be improved, apart from the obvious:

- Sound quality.
- Headphone amp volume.
- Creepy speaker output.

As usual, most of my work is under GPL and Kernels developers/packagers are welcome re-using my patches.
If possible, I'll also write an in-app implementation, not requiring a patched kernel in Voodoo Control Plus.

You can follow the dev work here:
I commit code real-time so if you're curious you don't have to wait for release to play with it!

PS: targets are Optimus 2X official and CyanogenMod, G2X official and CyanogenMod
The Following 89 Users Say Thank You to supercurio For This Useful Post: [ Click to Expand ]
Harsh's Avatar
Recognized Developer
Thanks Meter 4,246
Posts: 1,759
Join Date: Mar 2009
Location: Rajkot, Gujarat

That would be real great... yeah sound quality needs a boost up. Thanks in advance.... i have big hope for it to work
Dev Host: Harsh
Google Drive: Kernel
Mediafire Folder: bhanvadia

If you like my work, hit thanks.
Sckank's Avatar
Senior Member
Thanks Meter 345
Posts: 1,893
Join Date: Jul 2010
Location: Florĝ
Me too, that would be great :)

Sent from my LG-P990 using Tapatalk
Senior Member
Thanks Meter 47
Posts: 329
Join Date: Apr 2011
Location: Zürich

Lovely!! :)

Sent from my Optimus 2X using Tapatalk
Senior Member
Thanks Meter 21
Posts: 228
Join Date: Feb 2011
sounds great, can't wait
Benee's Avatar
Recognized Developer
Thanks Meter 1,757
Posts: 921
Join Date: Mar 2010
Awesome !

Yeah damn proprietary drivers. Wanted to port your stuff from the nexus s but then yeah.. nearly everything is closed : /.

Anyway you are way more skilled then me so let's see what you can do

For headset boost you can have a look at this . It's just a finished sysfs implementation started by lg. DebauchedSloth wrote it (found it here ). He wrote a app for it too Github.

My Github
svceon's Avatar
Senior Member
Thanks Meter 68
Posts: 392
Join Date: Jun 2010
Location: Lisbon, Sintra
Freaking awesome! SGS, Asus transformer and now 2x, you're rocking dude!

Sent from my Optimus 2X using XDA App
HTC Magic - Sold | HTC Tattoo - Doesn't turn on | LG Optimus 2X - Sold
LG Optimus One - Gave it to GF, Running CM9 | Samsung Galaxy S - Sold
Samsung Galaxy S II GT-I9100 Active, Running CM9 | Asus TF Transformer Active, Running Official 4.0 with some tweaks
sibbor's Avatar
Senior Member
Thanks Meter 332
Posts: 652
Join Date: Jul 2008

Looking forward to this and will make a donation as soon I HEAR any improvement on my LG O2X CM7 running device.
Developer of GetRIL (XDA thread)
See your device's RIL and baseband version and download & install a new RIL even without on-the-fly!

ROM: CM 10.1 (official) or AOSP 4.2.2 - Thanks pabx, tbalden & Co
Hboot: 1.39

ASUS Transformer Pad TF300T
CM 10.1 (official) - Thanks XpLoDWilD!

LG Optimus 2X
CM 10.1 (official) - Thanks Ricardo Cerqueira!
owain94's Avatar
Recognized Developer / Contributor
Thanks Meter 6,061
Posts: 3,533
Join Date: Sep 2010
Location: The Hague
Nice can't wait for this!

Sent from my Optimus 2X using XDA Premium App
My pm is NOT tech support. Those messages are redirect to the trash can

If my post helped you please click the Thanks buttton
BUFUMAN's Avatar
Senior Member
Thanks Meter 32
Posts: 247
Join Date: Jan 2011
Location: Germany
Thx for ur work!

Sent from my LG-P990 using Tapatalk
Samsung Galaxy S III GT-I9300 16GB & 32GBFAT

voodoo, voodoo sound
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes