yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] pengus77:
Hiya, in the p990 kernel there are a couple tweaks i can implement, exposing via sysfs the is_call_mode and is_fmradio_mode booleans so it's possible to tell the kernel that we're using the radio. Those variables are in the wm8994 code and ICS blobs set them via ioctl. We'll probably also have to mod a bit the phone/framework code in cm10.X to support the same switching, but i think it's "the right way". I'll investigate a bit in ICS to see if i'm correct on this assumption, but if i am we could maybe perform a couple tests in private and see if it works as it should. What do you think ? ;)
[LG Optimus 2x] mikereidis:
I don't have any debug log showing these ALSA controls.

Someone send me a debug log from Spirit. Use Menu-> Test-> Email-> Logs and press Send after 20 seconds.
[LG Optimus 2x] MetaIIica:
This is amazing, now we can hope we dont net this steps and the Dev can implement it or its can implement in the Kernel/Rom :D
[LG Optimus 2x] sudden36:
mike you have an email :D

A question about spirit fm, is the core code to controll the fm chip anywhere openly published, i would like to look at it, just for curiosity :confused:

I think tomorrow i will try to record some radio :laugh:
[LG Optimus 2x] mikereidis:
My code is not published.

This phone uses a Broadcom BCM4329 FM/BT/WiFi combo chip.

The old CM7/MIUI FM app "driver" code is open and used hcitool to control the chip.

There's also a V4L driver written by Nokia for an earlier BCM chip that is more or less register compatible. BCM2048 if I recall correctly.

Beyond that, no open source code exists that I'm aware of, but I haven't really looked in the last 12+ months. The chips specs are secret and I've never found them, even on Chinese sites dedicated to confidential tech documents.
[LG Optimus 2x] papimio:
Thank you

Now my rom is perfect!!Thank you very much:victory:
[LG Optimus 2x] invisible69:
Works great on the latest CM10.1 nightly and Kow@alskli Kernel 100p5 :)

Thanks for the work everyone!
[LG Optimus 2x] tonyp:
In case it helps, here's the LG internal service manual which shows the technical paths and GPIOs etc.:

https://www.dropbox.com/s/etzanib7jgx7tp7/LG_P990_Optimus_2X_Star_Speed_service_manual.rar
[LG Optimus 2x] bruno.u2:
What is the LG you have 990 or 970? Works on both?
[LG Optimus 2x] sudden36:
I have a p990, I don't know if the p970 has the same audio chip and configuration.

You can try it if you want, as the settings are only temporary just reboot if it breaks anything :)
[LG Optimus 2x] mikereidis:
Won't break anything, but I'm pretty sure it won't work.

P990 audio is tegra-wm8994.

P970 audio is OMAP3630.

There's an existing "LG TWL4030" audio method for P970, and it should be automatic, but doesn't work.

Somebody with the P970 who has the talent shown here could try setting various ALSA controls to get FM working.

---------

For the P990, the March 11 release of Spirit enables the audio, but apparently microphone sounds also come through.

I don't expect to officially "re-support" the P990, as I did until a year ago. But if someone can figure out better settings or whatever I can try setting these things in Spirit.

But anyone who thinks "just one more fix" is needed should understand that keeping Spirit working on the best supported phones, on new ROMs etc., is a never-ending task. When I don't have a phone, it's even worse. And I have more than enough different phones already, except maybe a Galaxy SIV. :)
[LG Optimus 2x] Andy HOT:
Hey i updated to the latest version of spirit fm..do u have a good sound quality?...i have very much distorsion:(

Any tricks or settings i can apply?
[LG Optimus 2x] chp2:
I downloaded the last one too and work ok. Exept for the sound I had to lower the "Volume Scale" to 3 from 100 in the settings to preserve my ears.

The sound is not bad at all but I was not able to do much with the free version.

My wish is to understand how to mute automaticaly the mic with alsa mixer when I start SpiritFM.

Perhaps someone can make a script or a launcher which set the volumes (lower the volume and mute the mic) then launch the radio and do the reverse when closing the radio? or something like that

Another wish is to pay this nifty app less than actual (1/4 of the price will be fine)
[LG Optimus 2x] Andy HOT:
How do u hear anything with just 3 there?...it is soo low..and any above 3 kills the clearity
[LG Optimus 2x] sudden36:
The script out of this post should also work with the current versions of FM Spirit. Also I'm currently testing new FM Spirit builds for mike, so I think there will be a good working build soon ;)
[LG Optimus 2x] chp2:
I already seen it and that one is a good first step forward.

But no thanks. I don't want to be rude but that one is not for daily use. I wish something more "Pro".

I'm realy pleased to learn a new fully working build will be out.:good:
[LG Optimus 2x] franky_z:
AW: [HOWTO] activate the FM Radio

Any news? :)
[LG Optimus 2x] maharu567:
I want my radio back, i don't have so much MB of traffic to listen online :)
[LG Optimus 2x] racoq:
MIUI V5 Rom, has an FM Radio app, and as far as i know, MIUI cooperative comunity said they would bring MIUI V5 to Optimus 2x. Any chance we can probably use that app to make it work on our device? (screenshot attached)
[LG Optimus 2x] MetaIIica:
AW: [HOWTO] activate the FM Radio

download for any device was supportet a miui and pick the radio app and test. But i dont know if the miui community have a problem or not to attach the radio app if its work. but ask

but i think its would not work

Gesendet von meinem LG-P990 mit Tapatalk 2
[LG Optimus 2x] skyjackno1:
Definitely i can't get the FM radio working, I download the script and open win Script Manager but...it only show me the code,nothing else,and Spirit FM don't work.

Please if I'm missing any step tell me,or an alternative.

Thanks for your work sudden
[LG Optimus 2x] fundoosite:
This will really help me to shift from Stock ICS to CM

Sir, we are waiting for this....:)
[LG Optimus 2x] Peppe91:
you are simply amazing! good work!
[LG Optimus 2x] franky_z:
any idea how to disable the microphone when spirit fm is turned on?
[LG Optimus 2x] komedol:
Did you download the script from post #8? It worked fine for me (the microphone is disabled when I turned on the spirit fm).

Be advised: after I used the script, I heard loud clicking noise from my phone speaker when I rebooted my phone, and that problem didn't go away by simply rebooting the phone (reflashing ROM did the trick however).

I'm on PA build 10 + kowalski kernel exp 116.
[LG Optimus 2x] mikereidis:
That sounds more than annoying.

It's weird stuff like that illustrates why I can't properly support any device I don't have in my hands.
[LG Optimus 2x] Andy HOT:
I really think that the clicking sound is caused by the volume level modification in alsa mixer(when u open spirit fm the value goes from default 53 to max 63)..i had those strange sounds when i used volume+ app and it appears that a very high value in alsa mixer also causes it randomly
[LG Optimus 2x] franky_z:
is the mic sound problem solved yet? can't try, cause i'm on cm7 right now and can't live without a fm radio:o
[LG Optimus 2x] franky_z:
No solution? :confused:
[LG Optimus 2x] maharu567:
For me don't work.
[LG Optimus 2x] sudden36:
I am sorry, I cant do anything more than the second script i posted :(

In theorie it should be possible to get a digital audio signal from the fm radio because its connected to the tegra, but i lack the skills of doing this :(
[LG Optimus 2x] sudden36:
@ skyjackno1 did you tap run in the upper left corner?
[LG Optimus 2x] mikereidis:
Someone has reported that my FM app Spirit is working on the Avatar JB ROM: http://xdaforums.com/showthread.php?t=2167192&highlight=radio

Set Audio-> Method to "LG BC P500". This method is normally for stock LG phones using Broadcom FM/combo chips, such as the Optimus One P500.

I don't know if this is because they used a stock LG JB audio library or what. If so, it might not help for more AOSP based ROMs.

Latest Spirit free version here: http://d-h.st/X3q
[LG Optimus 2x] fabiolimath:
So Mike, i believe i'm that "someone" :D

I just use the method of this thread: flash alsa, start app and run script. Nothing more.

I installed the Avatar ROM over my stock P990 GB.

The single issue is needing run again the script after every call or notification.

EDIT: A workaround i have made was put the script in a infinite while loop, with a "sleep 1" at bottom.

A do not know if this will impact in battery life or something... But works fine :)

EDIT2: Perhaps someone with better understand of AlsaMixer can reduce the part of script that must be inside the loop.
[LG Optimus 2x] sudden36:
AFAIK the only thing that can be deleted are the "echo" statements
[LG Optimus 2x] defcomg:
Perhaps an app that would run in the background and monitor Spirit FM Activity so when Spirit FM is launched it would A Run your Script B Hold audio Focus with Can Duck to restore audio well in this case rerun the script http://developer.android.com/refere...nager.html#AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK ACID AUDIO has such an app used to for Headset detecion im sure the dev could mod the code to handle the required task just my 2 cents
[LG Optimus 2x] mikereidis:
Spirit already does audio focus handling, pretty much as any media app does, but sometimes with special problems due to FM audio paths specifically.

If you think it's not working, set Debug-> Audio Focus to "Enable" or "Enable + Pause Return" and restart Spirit. "Enable" is usually the default on non-stock ROMs. "Enable + Pause Return" also returns focus on manual Pause/Mute, but isn't default because it messes up lock-screen controls.
[LG Optimus 2x] sudden36:
[MENTION=3575078]mikereidis[/MENTION] I still think you used my old script in your app, I have updated it to a new one which doesn't have the noise comming from the mic

I deleted the old script from the first post, because it is the wrong one and linked to the better one now so no one gets confused :cool:
[LG Optimus 2x] mikereidis:
Yes, it was, until I disabled the P990 audio method around March 5th.

Here's an April 29 test release of the free version that should use the new controls: http://d-h.st/fcD

Audio-> Method should automatically default to the resurrected "LG P990".

This audio method enables Debug-> Silent Loop by default, as well as Debug-> Power Restart Media.

You can try disabling Silent Loop if no audio, but background volume control likely won't work. Power Restart Media restarts the audio system at FM off, but might not be needed.
[LG Optimus 2x] sudden36:
Works flawlessly on my device :)
[LG Optimus 2x] thexavier:
First of all, thanks for all the efforts to make the spirit ready for our phone.

I tried the spirit version attached in the previous post for Mike, the app function totaly,

after i closed the app, i don't hear the call received.

To resolve that i have to reboot the phone.

Sorry for my bad english, and keep going, thanks again.
[LG Optimus 2x] fabiolimath:
Same issue here. Using the version of April's 24, with the script.

Avatar ROM - CM 10.1 - JB 4.2.2 - old bootloader.
[LG Optimus 2x] sudden36:
Please describe this problem more detailed.
[LG Optimus 2x] mikereidis:
Great ! :)

There's no script to disable FM audio, right ? IE to put the ALSA controls back to where they were originally ? Spirit does nothing for this at present.

This is one of the MANY "oh we just need ONE more fix" things that are noticed after the first basic FM audio enabling problem is solved. LOL.

A "brute force" fix for the need to reboot to restore audio is to enable Debug-> Power Restart Media.

This resets the whole Android audio system when FM is turned off. It doesn't help during Pause/Mute, audio notifications and phone calls.

Audio IS muted at the FM chip level for notifications and calls, but the FM audio paths aren't disabled.
[LG Optimus 2x] fabiolimath:
Great Mike! That fix for me.

I'm still having problems with voice calls during the FM execution.
[LG Optimus 2x] sudden36:
I will propably write a script to reset audio back to normal this weekend
[LG Optimus 2x] sudden36:
FM Disable script

This script should reset the audio routing to the default values set at startup.

However it is untested an your feedback is always appreciated :)

The fearless of you can even remove the lines commented with "probably unneeded" and test it.

greets

sudden
[LG Optimus 2x] mikereidis:
Left them in... :)

May 8 Spirit FM Free http://d-h.st/rXW

(As my sig indicates I'm mostly taking time off now, but I had to do a build for another reason, so...)
[LG Optimus 2x] tonyp:
I just did a quick test, everything seems to work perfectly fine.

The only thing I noticed was that BT didn't turn off after closing the app (I know it's used for the hci commands), but that might have always been the case, I have to admit I never really used the app hehe.

Did a testcall afterwards, routing was perfectly fine. Huge thanks to mikereidis and sudden36, I think you guys really did it!

[MENTION=3575078]mikereidis[/MENTION]: Are you planning to make the radio compatible with this phone now on Google Play?

And if yes, are there any sales planned? :angel:
[LG Optimus 2x] mikereidis:
Until a month or so ago, Spirit restored BT to original state on exit. This started causing exit hangup problems on some phone, so I disabled it, and nobody has complained. :)

IF BT is off, Spirit is designed to speak directly to the chip, with BT off, but this doesn't work on many ICS/JB ROMs because they have BT running all the time, even if it appears to be off.

I will see about enabling. But believe me, if I say I support it officially, there will likely be several audio issues that will take me a LOT of time to deal with, and some may not be solvable.

No sales on Spirit for the last year, and I've stopped selling the Light version too. I've done my absolute best to support customers, and frankly, for many people $10 is a bargain when I've spent at least several hours dealing with their issues. Here, in my 1st world neighbourhood, the legal minimum wage is $10/hr and qualified people in this field can and do make 5 times that.

Back to my so called "vacation" now. (Making dinner, and dealing with another septic system meltdown, LOL.)
[LG Optimus 2x] Steppenwolfie:
Mike, since I purchased spirit light a lifetime ago, is there any chance you could send me the latest version? I tried to contact you via e-mail but I got the automated response. I can send you a PM with the e-mail address I used to order the app but I don't want to bug you more than necessary. Thank you.
[LG Optimus 2x] Litderose:
Thanks for this update.

Spirit FM works perfectly with Temasek's CM10.1 rom.

Great job !
[LG Optimus 2x] mikereidis:
Sent.

I still try to get to email every 24-36 hours.
[LG Optimus 2x] Steppenwolfie:
No way you're getting away with that! ;) Tell me how can I make you a donation for your kindness, can't find any link.
[LG Optimus 2x] mikereidis:
:)

Yeah, I went over 48 hours this time, due to a nasty "cold" bug, a defective septic pump, and some time for my wife on Mothers' day. :)

Unlocked purchases on Play are fine, but anyone can send anything they want via Paypal to my usual email of mikereidis on gmail.com .
[LG Optimus 2x] ciarpame:
Great, glad to know that Spirit FM works again, just write ad email to Mike to get install my purchased version again.

In the meanwhile I found that the headphone volume level is quite low, even if pushed at the max. If I change the headphone volume using kowalski manager, then it seems that Spirit is pushing back the setting to 43. Am I missing something?

Thanks
[LG Optimus 2x] mikereidis:
The old P990 audio method would set the "Headphone Volume" ALSA control to 60.

The scripts, and the new method don't touch that value; something else probably resets it to 43.

Try setting Debug-> External Volume to 60, or any value from 0 - 63. Then restart Spirit.
[LG Optimus 2x] ciarpame:
Thanks for you fast reply and your kind email.

It's curious but it seems that you in "time-off" mode are reacting much faster that some guys I know in their "premium-top-paid-support" mode :)
[LG Optimus 2x] mikereidis:
:)

Well, I've always loved what I do* AND I'm determined to never go back to the pains of a "normal" job.

* - Mostly S/W design & development. I'd prefer not to do so much tech support, but overall it's better than most normal jobs I've had, and I'm working to reduce the support burden as I move forward.
[LG Optimus 2x] mikereidis:
I've re-enabled P990 on Play for Spirit Unlocked and Light, since I've had no notable problem reports and someone asked today.

I only sell the full Unlocked version now, I just enabled Light for existing customers.

As always, Free versions are linked in post #1 of the thread in my sig below.

Thanks for your help and support. :)
[LG Optimus 2x] thexavier:
I don`t know if it's common issue, but on my P990 audio don't work on speaker only on headset. I use civ kernel. Thanks anyway, spirit it's a must have app for me.

from Dirac'sea.......
[LG Optimus 2x] mikereidis:
I don't recall if anyone gave me ALSA settings for speaker, but a quick look at my code indicates no.

On some devices, pulling the headset plug out enables speaker, and the antenna connection can still be good if it's pushed in only partly.
[LG Optimus 2x] thexavier:
Sorry for the noise, but my english is very poor. That issue is only mine ? Plug out partly the headset it's not a solution for me. Thanks for the flash answer. Great.

from Dirac'sea.......
[LG Optimus 2x] hounter17:
Has anyone noticed that if you drop the volume to the minimum there is an strange noise in the phome speaker???
[LG Optimus 2x] w8ter:
No :)
[LG Optimus 2x] uripiruli:
spirit fm with kitkat

Hi!!

Someones knows if there are a spiritfm 's update that works with kitkat??

Regards!!
[LG Optimus 2x] sokinso:
it is search the official thread..
[LG Optimus 2x] mikereidis:
Posting Pirate links is not allowed.
[LG Optimus 2x] sokinso:
Sorry my friend my bad!! :(
[LG Optimus 2x] mikereidis:
:)

There's a September free version here: http://d-h.st/H4x

See my signature for Play Store links; price dropped a few hours ago...
[Samsung Galaxy Nexus] kurtforaday:
Hey fellow forum readers, haha. I have a Samsung Galaxy Nexus, 4G LTE, my carrier is Verizon. I was wondering if any of you knew any cool apps, or tricks that i can do with my phone.
[Samsung Galaxy Nexus] Carlos_Manuel:
Just search from XDA and from Play store..
[Samsung Galaxy Nexus] kurtforaday:
Thanks

Thank you so much!
[Samsung Galaxy Nexus] abtxpress:
I have taught mine to roll over and play dead. :p
[Samsung Galaxy Nexus] DJxSpeedy:
AW: Samsung Galaxy Nexus

you wanna say "play bricked" ? :D

Gesendet von meinem Galaxy Nexus
[Samsung Galaxy Nexus] mmegalodon:
https://play.google.com/store/apps/details?id=com.viper.TheCableGuySoundboard&hl=en_GB
[Samsung Galaxy Nexus] Da Kine:
Check out mycolorscreen.com

|When Emotion Goes Up, Logic Goes Down|

|Even If You Fall On You're Face, You're Still Moving Forward|
[Galaxy Note GT-N7000 Android Development] dikkebas:
Because we are getting so many good suggestions for OTA updates in our thread AllianceROM_JB XXLSZ_v2 we decided it was time to start a thread for users to post their submissions.

Major Credits to Robbie Hood for making this Rom and to Ficeto for making the awesome Rom Customiser and the Ota app

OTA visuals (and updates) are bound to certain format rules that I will explain in the following posts.

All things posted in here will first be tested and evaluated before being uploaded to OTA

please be advised that mods are not to include complete framework-res.apk, SystemUI.apk, SecSettings.apk or android-policy
[Galaxy Note GT-N7000 Android Development] dikkebas:
OTA visuals

Visuals are zips containing images and XML files from apk that are to be changed.

Format for zip name is simple, just try to describe what the mod does, if mod is a variation of existing mods use same format as existing ones.

The .theme in the name is no longer needed.

Inside zip you put name of apk (without .apk). Mods can contain more than one apk!

Also put in the root op the zip:

An empty txt file named theme

A txt file called description with a short description of the mod

An image file in JPG format called preview with an image of your mod

put in the rest of the folders like in original apk

Before uploading it please test the mod yourself by putting it on your sd and flashing from RomCustomiser

If your mod fits an existing category please tell us in your post

If you come up with mods that don't have a category yet, please also make a revert mod containing the same images and xml from the original rom so users can get back to that easily
[Galaxy Note GT-N7000 Android Development] dikkebas:
OTA updates

Ota updates can contain apk, mostly used by Dev's to update the Rom.

Can however also be used for fixes that contain an apk like the stock playstore

They are basicaly CWM zips, with some additions:

A txt file named description with a description of the update

An JPG file named preview with an image of the mod (preferable, not compulsory)

Please remember that all system apps go in preload/symplink/system/app

You can use the base zip that I uploaded here
[Galaxy Note GT-N7000 Android Development] dikkebas:
one more
[Galaxy Note GT-N7000 Android Development] Robbie Hood:
Thanks a lot Bas :highfive:

Now lets see some users be creative and create some themes/mods :D
[Galaxy Note GT-N7000 Android Development] dedisuhermanto:
good job :good:
[Galaxy Note GT-N7000 Android Development] nickshertzer:
Played around with the Visual Theme engine and here is what I came up with so far :victory:

..and posted a few more here: http://xdaforums.com/showpost.php?p=38824949&postcount=11
[Galaxy Note GT-N7000 Android Development] salilpune1:
Re: [AllianceROM][JB XXLSZ_v2][OTA][VISUALS]Post your submissions here

Need to just install this zip using rom customizer?
[Galaxy Note GT-N7000 Android Development] hara74:
really nice,

but could I get the V Background also in red?

would be cool

thanks in advance
[Galaxy Note GT-N7000 Android Development] nickshertzer:
Yes. Also, you have to be using the Alliance Ficeto TWRP kernel. Philz must be missing some of the busybox (/?) instructions that make the theme engine work.

Working on a couple more.

---------- Post added at 10:00 AM ---------- Previous post was at 09:59 AM ----------

Just modify the ZIP to add your own PNG file background_holo_dark.png :good:
[Galaxy Note GT-N7000 Android Development] nickshertzer:
Here are a few more:

Enjoy! :fingers-crossed:
[Galaxy Note GT-N7000 Android Development] Robbie Hood:
nice thanks man will uplaod em to our server asap but im experimenting a bit with my ROM:)

if all goes as planned the rom config will have a stock theme option as well so no need to flash a stock theme afterwards for the ones who like stock but just optional via romcustomizer when flashing the rom
[Galaxy Note GT-N7000 Android Development] hara74:
is there any chance to get a zip to flash it from cwm?

it´s because I use this beautiful rom as sd rom and can´t flash anything via Rom Customizer :crying:

I tried different zip´s till now with my own png but none works :(
[Galaxy Note GT-N7000 Android Development] nickshertzer:
Didn't realize there was a functioning dual boot kernel now. Need to go look at that :D

Obviously, your setup is totally unsupported as far as Alliance team would be concerned. None of the OTA stuff would ever work. You'd might be better off running Alliance as the main 'phone' ROM and AOSP, CM, whatever, as your SD ROM.

But there is hope for you yet...

You need to pull your framework-res.apk, manually modify the background png, and push framework-res.apk back into /system/framework manually via ADB or whatever file manager is convenient (Alliance ROM Manager comes to mind) :cool:

You can follow instructions here: http://xdaforums.com/showthread.php?t=2175160 (except in Alliance ROM, Robbie changed the HOLO background name to background_holo_dark.png and NOT tw_background_holo_dark) :highfive: