yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
I see no reason to envy u8800 or u9000 users too much. AFAICT there was only one rare variant with a stock FM app (odexed), and nobody else can get it working and the guy who posted it disappeared and the framework files are not known, do de-odexing is impossible.

And then my app isn't working well on those devices. On the plus, there is a free open source app with RDS and possibly transmit, but it's only been built for Aurora ICS so far.

Your Broadcom FM/combo chip OTOH is the most popular FM chip in Android devices and my app supports it pretty well, either via low level HCI access, or via the Broadcom proprietary/OEM APIs. If my app isn't working on your device, please send me a debug log.

On the Tavarua V4L devices, aquireFdNative() opens the device driver and the code is from "Code Aurora". It may be that Huawei re-used the existing FM app and modified framework stuff to present the same API. The MIUI/CM FM apps do the same.
[Spirit FM] mikereidis:
The Kyocera Echo has no stock FM app, right ?

When you say "no frequency" do you mean the RSSI signal strength shown at upper left is less than 10 when tuned to a known strong station ? If so, and if you have earphones plugged in at startup, then it's likely we can't make it work.

If you had decent signal, trying each of the Methods under Settings->Audio might produce audio, or even a static hiss at least if no good antenna connection.

You can send me a debug log with Menu->Help->EM Logs and after a few seconds. enter "Kyocera Echo" in the email text and press send.
[Spirit FM] vurp0:
Oh, I just assumed it's an easy fix because I once fixed the same problem(apparently different cause) and it was easy, and that this doesn't happen when the app is in the foreground.:o

I'm using the latest version(free) from the Play Store, but I applied the spirit.xml settings that someone posted earlier here(with the ICS theme settings). Also, every time this happens, a "Free Spirit FM has been granted Superuser permissions" toast appears twice. I don't really know how to reproduce this problem, it seems random, but when it happens next, I'll provide logcats 'n' stuff (tell me if any particular log interests you). It mostly occurs at the same time as I do something on the phone (take a photo, open a tab, press a button, etc.), but I don't notice anything weird before it. I hope this paragraph will suffice until I acquire some real data.

Probably not as related, but would you care to explain why audio output is such a big deal for you and this app, when it seems like a breeze when developing my own apps?

Thank you for your time(both the one spent on developing, and the one spent on reading this):D
[Spirit FM] mikereidis:
:)

I've seen this before, but not very recently. I think this is more likely a ROM issue, where the audio library doesn't adjust as needed.

But if you're using GalaxyS ALSA audio method, "all bets are off". If the ROM doesn't "know" about the FM audio then strange things can happen.

What is V3 ? Can you post a URL to the ROM you're having this problem with ?

You can send me a debug log with Menu->Help->EM Logs and after a few seconds. enter "V3" or something identifying you/your problem in the email text and press send.
[Spirit FM] mikereidis:
EDIT: See below, it probably won't work. I'll try to build a new release tonight.

Try enabling Settings->Debug->Silent Loop and restart the app.

Let me know if that works, or if it results in any strange behaviour.
[Spirit FM] mikereidis:
Yeah, if it happens most when the phone is busy doing stuff, then the Silent Loop debug setting I posted above will hopefully help. But even that can lose audio sometimes.

Hmm, I just tried this myself to see if Silent Loop might conflict with the new method of keeping audio flowing. It makes audio buttons really slow and you see lots of these error messages in logcat:

obtainBuffer timed out (is the CPU pegged?)

So perhaps for next release I can go back to the older method, or make it selectable. I just hate to see CPU time and thus battery getting sucked up just to play a silent audio file over and over. And it's possible this Silent Loop is at least partly responsible for damage or strange effects.

Spirit is not using some standard Android API for FM. There is none, and seems to be no prospect of any in future, If there were such an API you'd see many FM apps on the Market. So far I'm the only one "silly" enough to try this, on this scale, with this many reverse engineered methods.

The same goes for the FM audio. There is no standard method of enabling and routing FM audio. On some ROMs it just isn't possible. It's VERY frustrating for potential users and myself to see RDS data, seek and good RSSI, but not a peep of audio from the speakers or headset.

One of many examples is the Google/HTC Nexus One with stock Google AOSP kernel. There seems to be no practical way to enable FM audio, despite rooted devices showing RDS etc. I'm sure some very low level trick could be found eventually, but the phone is years old already, and a custom ROM/kernel works well enough anyway.
[Spirit FM] cba1986:
Is the Paid app safer or is because the galaxy ALSA mode is unlocked?
[Spirit FM] mikereidis:
There would be justifiable outrage, I think, if the free app was more dangerous, unless that was clearly stated and was due to extra, experimental functionality in the free app.

But experimental functionality is always in both versions, unless it's a paid exclusive feature.

It's because I don't want to inconvenience customers and I've assumed they have the knowledge, intelligence AND the English language comprehension to understand the warnings and the risks.

I am likely wrong about that assumption for a few customers, but I will deal with that with them if and when it happens, and paid active installed customers are only about 1% of the active installed free users.

"English language comprehension" is something I add to acknowledge that many people for whom English is not a first language may have difficulty understanding the risks and warning, although they may have the intelligence to seek out and apply a workaround.
[Spirit FM] locomotive96:
I am back running stock 2.3.3 rooted on my D2G. So if you get it working on your rooted DX, it should work with this right?

Thank you for all your hard work to make this happen.
[Spirit FM] mikereidis:
Probably/hopefully, although a few tweaks may be needed.

My recollection of D2G is that there was never a stock app included, but that the stock app for other devices would work, more or less.

And there are issues with one channel that have never been solved ? It might not be possible to solve if the hardware doesn't allow it. I've seen some single channel problems that are related to the use of a mono microphone on one of the inputs that would otherwise be used for FM.

Back to my DX: My DX works fine, rooted, using the low level APIs I supported 10 months ago. And for other people it always worked fine. But for some weird reason many people have almost no signal strength, due to my hypothesized antenna switch that some devices have, or some devices and ROMs default to off.

And that why I'm tackling the OEM API, because it does that magic something to enable the antenna. Eventually I'll figure it out, in fact I have a new rfkill related theory now, after looking at the Sony Ericsson code.
[Spirit FM] locomotive96:
I tried the FM app that worked on the D2 with the one output, but on the global it stays at the loading screen. When I change the audio method on Spirit, I can hear both earbuds make a noise like speakers do when you turn them on. So I don't think that the single output is a problem. But I suffer from the no signal strength, it just scans and scans.
[Spirit FM] Nitemare_real:
Ok, understood

Sorry and understood again, but this "barrier" for "fast finger" users that will accept the splash screen without reading the risks, is a "barrier" too for experimented but lazy users...

Anyway, I was seriously considering purchasing the application due its high stability (at least in my Galaxy S with ICS) and that it covers all my needs, same needs that Gingerbread stock FM application covered
[Spirit FM] myechophone:
I do not believe there is any stock FM app.

Yes, on Upper left, it is 0 while tuning to a local station. I have emailed the logs to you. Thanks for your help.
[Spirit FM] mikereidis:
Yeah, I often hit the OK out of habit too. But that's the risk, and they can email me or post here.

:)
[Spirit FM] mikereidis:
March 13: http://www.mediafire.com/file/tglmz0szerp13l6/Spirit_FM_Radio_v120313.apk

- Minor fixes and enhancements.

- Changed Galaxy S ALSA mode to use implicit "Silent Loop" as it did before March 4. The rest of this code is the same as March 4+.

To go back to the March 4+ method of keeping the audio path open, enable Settings->Debug->ALSA PCM Open. This method opens the PCM device, sends an Ioctl, and keeps it open (but doesn't send PCM data) while audio is playing.

If the March 4+ method was creating problems, such as audio cut-out, this new default method may help. If you have problems, try to enable ALSA PCM Open and power cycle the app.

I haven't tested this release too much.
[Spirit FM] mikereidis:
I don't think it will work... :(
[Spirit FM] mikereidis:
Pretty much my experience and reasons for the "high" price of my paid Unlocked app:

http://news.cnet.com/8301-19882_3-57384178-250/were-not-paying-enough-for-apps/

(LOL CNet.)

At $10 (now, lower in the past) I have 1% of users on the paid Unlocked app.

If It was $5 I might have 2%.

It's about half as much work to support 1000 customers versus 2000, and the quality of the support is better. And 2,000 might mean no time budget for further development. That's unthinkable, no ? Already I spend too much time on communications and too little on development; could be half and half now. Clearly I'll have to stop supporting non-customers much for the good of the continued development.

Now I still think/hope the 1% conversion rate can be increased. The free app might be update & feature frozen. And for those who want the latest features and ongoing updates: a new lower priced Light version. Probably in the vicinity if $1.99 with the hopes of 5% conversion.

That could potentially roughly double income. Perhaps even break through the poverty level. LOL. :)
[Spirit FM] Marek89:
I have Xperia Mini Pro SK17i. Spirit FM Radio don't work. I don't heard audio. I try all audio method and nothing. Any help ?
[Spirit FM] thearc77:
Mike:

Any chances to get a mirror like Dev-host.org?

The donwload link get in an error loop from Mediafire's server.

Ty in advance

Edit:

Donwloaded from a friend Dropbox.

I dont get this version working (previus app data wipe and uninstall). This still need the file created in sd?

Ty again..
[Spirit FM] mikereidis:
The X10 mini pro has never worked, but I should try again.

Is the RSSI signal strength at upper left over 10 when tuned to a known station ? And goes down when not tuned well ? If so we just need to enable audio.

Please send me a debug log with Menu->Help->EML and after a few seconds. enter "X10 mini pro" in the email text and press send.
[Spirit FM] mikereidis:
For GalaxyS ALSA ? Yes.

I settled on mediafire because it doesn't make you wait and pretty much everybody could access it, unlike Google and MS and many other sites.

I don't want to deal with multiple sites, besides the Market/Play. You really can't use mediafire where you are ?
[Spirit FM] pikachukaki:
Very nice app and good work...but im trying to make it work on a ideos x5 pro not the simple one...but i keep getting phone restart...x5pro has radio at official rom but noone of the custom roms like miui and cm7 haven't can i use it or im trying for nothing!thanks!!
[Spirit FM] willie1001:
I dont really read all changes that wereld made in The last version but IT completely works now on my Galaxy s even The speaker mode. Since i dont have a credit card, could i donate toe you via paypal, cause i want toe support Theo development of thuis app
[Spirit FM] mikereidis:
The Huawei Ideos X5 pro seems to have a Broadcom chip, so we should be able to make it work. Audio may be difficult but let's try to get the RSSI signal strength at upper left showing success first.

First, we need to stop the phone reboot to see what's causing it and so you can send me debug logs:

- Remove the app and re-install it so we can start fresh.

- Start the app. You should see an SU request. Select "Allow". If you get to the introduction screen, press the Back key so the app doesn't try to start. If the app crashes before the Intro screen, re-install the app and try again using "Deny" for SU.

- After pressing Back at the Intro screen, send me a debug log with Menu->Help->EML and after a few seconds. enter "X5 Pro" in the email text and press send.

- Now, select Menu->Settings->Debug. Set FM Chip to "Emulator (Test)". Set FM API to "Low Level". Set BC 4330/20780 to Enable.

- Hit Back and go into the Audio config. Set Method to "None" at the bottom. Hit Back twice to return to the App. Now press the Power button to start the FM.

- Hopefully there will be no crash at this point and you will see RSSI 44 at upper left. Select Menu->Settings->Debug and set FM Chip to "Broadcom". Restart/power cycle the app and hopefully we will see something good with no crash. The app will likely need SU to work.

Let me know how this goes...
[Spirit FM] mikereidis:
Great ! Thank you very much. :D

Yes I'm happy to accept sales via Paypal, Send me an email and I'll send you the Unlocked version. Payments or "sponsorships" can be sent to my universal email address mikereidis AT gmail.com .
[Spirit FM] pikachukaki:
First thanks a lot for this fast reply...i manage to press back on intro screen and the app dosen't crash but i can't find menu Menu->Help->EML to send you the debug file! :/ ok ok i found it!! :D im sending you now

Ok it work i now i see 5 in uper right side and right down from the volume i see fm:bc sh:1 su:1 bt:0 ht:1 h2:0 mo:bch ud hv4: ma:15 bc but i can't get any stasion not even static sound
[Spirit FM] mikereidis:
5 is a pretty low RSSI, Make sure you have earphones/headset plugged in as an antenna, and tune to a known strong frequency.

Send me a log again with the March 13 release: http://www.mediafire.com/file/tglmz0szerp13l6/Spirit_FM_Radio_v120313.apk

I think the log you sent was in some non-working mode.

For audio, you can try going through the different Audio Method settings, staying in the settings screen while listening after tuning to a good station. But I have doubts any will work.

Are you capable of running adb shell commands ? I can provide some that might work.
[Spirit FM] pikachukaki:
I get 28-32rssi but still no sound..i check all the sound methods but nothing...this version opens my BT the previous didn't...im not familiar with adb shell commands but maybe if you give me the commands i will find a tutorial and get something from it!
[Spirit FM] mikereidis:
30 is good.

I'll try to make this easier then. Download this zip file: http://www.mediafire.com/file/wj5yq72aero4k3s/sprt.zip

There are 3 files:

sprt_hdst

sprt_mute

sprt_spkr

Unzip the file to the root of the SDCard. A root explorer app should be able to ensure they are in the "/sdcard/" folder.

Now set Audio->Method to "Custom" near the bottom of the list and restart the app.

Hopefully sound will happen. It's set so that Mute is actually speaker, but this is just for testing. Try the Mute/Unmute and Headset/Speaker buttons a few times.

If it works or not please send me a log again.

Thanks !
[Spirit FM] pikachukaki:
You are a god...its working...but can i ask if someone else needs it he have to do all those things i did??cos many ppl with x5pro will want this!!

Only one problem..not much a problem but maybe you wanna know..i can't make the sound play from speaker only headphones...i choose speaker but it keeps the sound from the headphones!

Also if you close it and reopen it the first time it didn't work (actually opening very fast) it need a second time that its slower to open (normal)
[Spirit FM] mikereidis:
Woohoo ! :D

This is just experimental. Once we know what works I add a new Audio Method or modify an existing one. I'll try to make a new release tomorrow and we can go from there.

So you know, at this time you may have trouble with other audio, especially phone calls. We'll see better tomorrow.
[Spirit FM] pikachukaki:
What do you mean problem with other audio?phone calls rings normal also i can hear them normal...for now i didn't have any problem with other audio!!
[Spirit FM] Marek89:
RSSI is under 10. Email send.
[Spirit FM] thermskin:
Hi!

Any news regarding broken phone audio after exiting SpiritFM on DHD?

Maybe you can instantiate original audio libs of DHD on SpiritFM quit action?

Just an idea:-)

T.
[Spirit FM] Kess78:
Hi,

The phone isn't the Xperia X10 mini pro released in 2010 (U20i), this is the Xperia Mini Pro from 2011 (SK17i). So I think he uses the source code released.
[Spirit FM] mikereidis:
Often things just magically work, and if so that's great !
[Spirit FM] mikereidis:
Easier said than done I think.

The audio system is like an orchestra that needs to be orchestrated for it all to work together smoothly.
[Spirit FM] mikereidis:
So it's a "Mini pro" but it's not an "X10 Mini pro" ? Very confusing...

I've looked over the source code from Sony/E but I'm not really "using" any of it.

The main thing I looked at was the audio enabling/switching. It SEEMS to be what I do for the SE Audio Method, except much simpler. I may create an SE2 method that is similar and we'll see.
[Spirit FM] mikereidis:
:D

Your thanks as much as mine: An email from a non-native English speaker:

Thank You so much for stopping Your app being so ugly. It was cool before, it's truly awesome now.
[Spirit FM] mikereidis:
For the first time last night I got the "proper" Motorola OEM API working on my Droid X, without root and without permissions problems.

It's always exhilarating to hear that first music, for a new phone, or a new API/mode after 1001 attempts at it.

So now I know it's possible, and perhaps Thursday or Friday I can make the first release with working Motorola OEM (proprietary high level) API support.
[Spirit FM] Quinny899:
About the UI. You haven't seen it on Sense 4.0 yet :P
[Spirit FM] pikachukaki:
Yeah but in an other rom after i close the radio i have to restart the phone so i can hear any other sounds...but until now its working properly...lets hope you can solve this and release a working version so we can use your app!!many thanks!!
[Spirit FM] msgreenf:
Sweet! Can't wait to try on my d2g!
[Spirit FM] mikereidis:
So...

Rounded buttons with some 3d to them ? Maybe they have a special springy look when pushed... ?

I can round buttons, but to make them prettier with 3d, shadows or whatever, I'm happy to just let the themes take care of that. That's the idea with themes, I guess. I'm not really too familiar with them yet as far as specifics on different ROMs.
[Spirit FM] mikereidis:
I'm ignoring my email tonight so I can get some coding work done for a change, LOL. :) Motorola OEM is working nicely with RDS for a first go at least.

But I came across this "1 day sale" item on Phandroid:

Deal Alert: White Samsung Galaxy Note (Unlocked International Version) For $580

http://phandroid.com/2012/03/15/dea...-note-unlocked-international-version-for-580/

I have no idea how reputable 1SaleADay is. And I can't say how well this version will run on your carrier.

My post there:

Stereo FM Radio with RDS

International version has OTA FM Radio, the "normal" US and Canadian versions do not. North America carriers seem to be allergic to OTA FM on recent high end devices. (Eg. Galaxy S* & Nexus, Moto Bionic, Razr.)

I know many consider analog OTA to be archaic but it has pros (and cons) vs streaming. Pros include battery life and lower data consumption.

This "phablet" can also record FM with the stock app which is rare. In addition to having one of the best stock FM apps on Android, this device can also run my Spirit FM Radio app, stock and unrooted, or custom ROM'd w/ no Samsung framework.
[Spirit FM] vurp0:
So I tried the new apk you posted a few pages back, but no luck. Now when I get said error, I must powercycle the app, instead of just mute/unmute. Anyway, I'll mail you a logcat of when the problem occurs, because my laptop is at my home and this ****ty app won't let me attach files. (I'll send it from max at sandholm dot org)
[Spirit FM] pikachukaki:
Any news about broken sound after closing the app??it need to restart the phone to use other sounds!
[Spirit FM] mikereidis:
The last post I saw from you, you said:

So I wasn't aware you had a problem.

The next release, hopefully within the next 12 hours, I'll add the disable commands for mute. Hopefully that will work but sometimes it doesn't. Or perhaps I'll just post a better zip file for custom audio method.

BTW, the app is "Spirit" (like enthusiasm or drive or even ghost) and not "Sprint". I've seen a few people misname it like that. :)
[Spirit FM] pikachukaki:
The first time sound was working perfect thats why i post this...after i saw some guys posting this problem and it occured to me too...ok i will wait for your update then!! :)
[Spirit FM] mikereidis:
So the other way (PCM Open) was better I guess and I'll revert to it.

OTOH, this may be just because a half second delay is needed between starting the silent loop and setting ALSA registers, and this isn't done on a restart (unmute) unless the app is restarted. So I'll change this too.
[Spirit FM] fancccc:
very useful, but ugly as hell
[Spirit FM] onesolo:
A few posts back I also said that I have the same problem...
[Spirit FM] mikereidis:
Ugly is as ugly does. :)

Try updating to ICS or an ICS themed ROM. Many like that theme much better, and by default, the app picks up the default theme.
[Spirit FM] mikereidis:
March 16: http://www.mediafire.com/file/454ic5h3hc1thl4/Spirit_FM_Radio_v120316.apk

- New Audio Methods:

qdsp5v2 Analog for Huawei Ideos u8800 pro and similar that use fmradio_analog_headset etc.

SonyEricsson2: a simpler version of SonyEricsson that may work, as seen in the recent source code release. Sadly, nothing in that source for headset/speaker switching. Do stock SE apps support this ?

- Bug fix for Broadcom UART mode.

- Motorola OEM/proprietary FM API support (finally ! :) for stock, un-rooted and any other Moto device with the FM Radio Service APK and associated binaries and libraries:

/system/app/FMRadioService.apk

/system/bin/fmradioserver

/system/lib/libfmradioplayer.so

/system/lib/libFMRadio.so

/system/lib/libfmradio_jni.so

/system/lib/libaudio.so

If the above are installed and working, the stock Moto apps should work: FMRadio.apk and MotoFMRadio.apk

Need to select Audio Method: Motorola.

When started, will not set frequency. Do that manually.

Works on my Droid X with stock GB 4.5.602. Also works on CM4DX as long as Bluetooth is off.

If you were previously using the low level TI support (IE if Spirit was working on your Moto before), the OEM API is the default, even when SU is available. To disable it disable Debug->MO Prop Enable or better yet, set Debug->FM API to Low Level to speed startup up a bit.

RDS is working well on the Unlocked app.
[Spirit FM] geoka7:
Hello to everyone from Greece. I have Galaxy S i9000 with WeUI v0.7.8 (ICS4.0.3 - MIUI4) and install SPIRIT FM. I select Regional Band as Greece, chip as Sil, audio method as Samsung. The problem that i have is, the program search and found stations but i can't heard anything, either headset and speaker.:confused:
[Spirit FM] thermskin:
Hi!

Don't know what you did (latest release) but now audio works on my DHD after exiting SpiritFM!

Excellent job!

Thanx!

T.