yashsingh1/xdaforums huggingface dataset:
[Spirit FM] xmguy:
Mike,

Seem to be having issues with RF reception with the speaker enabled vs headphones with the Bionic again. Its a small 2000 watt station that comes in clear with headphones. RSSI is at 1 but it does come in. RDS doesn't decode. But when I enable the speaker the RSSI goes to -2 and all I hear is static. Still have headphones in. Switch back to headphones and signal returns. Don't have this issue with other locals that have 5000 watts of TX power. Something in the speaker or something is causing a disconnect of the antenna or interference in RX on Spirit. Ill send logs as usual.

Thanks.
[Spirit FM] mikereidis:
That's weird. Was it working OK before in the Low Level mode ?

And does using the Moto OEM API fix it ?

Try enabling Debug->OMAP FM_PLUG (at the bottom.) CyanogenMod uses it so I added it, but I've never figured out what it's for.
[Spirit FM] mikereidis:
Galaxy S2 on CM9 / ICS:

I'm trying to figure this out, but not getting anywhere fast.

But I was absolutely astounded to see the hostility towards anyone who seems to even mention FM on the S2 CM9 thread here on XDA.

Even threats to ban people mentioning it, despite nothing on page 1 and their external FAQ saying only "It is not implemented yet.".

I guess you are supposed to search the thread to see the countless statements seeming to indicate CM9 for S2 will never get FM, detect the hostility and restrain yourself from mentioning those 2 evil "FM" letters there.

Geez... Just my sig alone might get me banned if I posted there, LOL.

So,... I guess there's a good opportunity there for an FM app that will work on SGS2 CM9. Thankfully the driver is there and my app works for everything except audio.

Now, if I could just figure out the "magic commands" that will enable the audio.
[Spirit FM] kulas2004:
FM for SGS2 on CM9 would be very nice :)
[Spirit FM] mikereidis:
I'll post a new version in the next 12 hours with an experimental "Galaxy S2" audio method. I used the rejected CM7 patches as a guide, but even if it worked on CM7.0 or 7.1 it might not work on 7.2 or especially CM9, with very different audio libraries.

I don't have an S2 yet, but there's a company here that sells half-broken devices, sometimes relatively cheap if the phone portion doesn't work. So hopefully I'll have one soon. Decent used devices are going around $400 minimum otherwise.

It's hard to find info. I guess CM7 for SGS2 has never had FM ?? Maybe those rejected packages resulted in a few unofficial ROM ZIPs that might work ? I see the standard CM FM app in the CM7.2 ROM but I guess it doesn't work.

I also peeked at this MIUI: RGUI_NDT_MIUI_GT-9100_GB_FINAL.zip . The MIUI FM app is there but it looks like it just uses the CM7 APIs. I don't know if it works and the MIUI folk modified the audio libraries ??
[Spirit FM] BurnRubber90:
Would be nice if it worked on my HTC Sensation 4G running AOKP Build 31. No sound comes out (even though your post says its a supported device).

Not flaming ya, just letting you know so you can improve this app even more :D
[Spirit FM] mikereidis:
Email:

To those others I say: "Prove it". I would be VERY happy if they were correct. More devices with usable chips means I sell more apps.

I have not ripped one of these devices open, taken high res photos and analysed them, but I'm sure some companies have, and some pics are likely available on the web somewhere.

But here's the preponderance of evidence:

- No device driver visible at /dev/fmradio as in the International version. And I'd bet the kernel in use supports that driver if installed on an International version.

- No FM app from AT&T, Bell or Telus, and when asked they will tend to tell you that there will never be an FM app for these models. (But you never know what some random customer service person might say.)

Note that some carriers, including AT&T, have mistakenly used International version marketing materials that mention FM and when that is pointed out to them, they quickly rectify the web pages so as not to face charges of false advertising.

- Nobody has gotten a stock or any other FM app working on them yet, and I know many people have tried.

- US carriers, especially large ones like AT&T have been in the habit of commissioning special versions of the Galaxy S, S2 and similar models that have no si470x FM chip, despite the Canadian or International versions having that chip.

Same with the Nexus S (Galaxy S variant) and Galaxy Nexus (Galaxy S2 variant).

I've "put my money where my mouth is" and offered a $300 bounty on several devices, including some of the above, and fully expect nobody will ever qualify.
[Spirit FM] mikereidis:
:D

Post 2, paragraphs 1-3 give some pretty good clues, and paragraph 4 specifically states: "ICS support is limited at this time..." and goes on to explain.

Have you tried setting Audio->Method to "qdsp5v2 Plus/ICS" ? That should generally work on rooted devices and still has issues, but with the April 7 version I have reports that it's working much better now.

I'm in the midst of some debugging with an "average user" type who has an HTC Sensation XE. He apparently didn't realize how lucky he was to have just OTA'd to an official ICS.

Prior to that OTA update, I'm reasonably sure my app would have "just worked" for him, without SU. But it appears HTC must have changed something so I'm in the midst of trying to get his /system partition so I can make the needed changes.

My "loyalty" and "respect" are shifting back towards HTC and away from Samsung (whose devices are often FM castrated in the US).

So I'll be resolving problems on HTC devices with priority, as soon as I can. I'm looking forward to the HTC One series which appear FM capable, and for which the carriers don't seem to be getting special "No FM" versions.

But my opinion is that the whole ICS upgrade process is a big mess. Only now are some non-Nexus devices getting official ICS, and CM9 etc. have a good deal of work ahead of them, and FM is generally not a priority for them.

And for some devices the CM team seems openly hostile to FM requests. On the SGS2 thread here on XDA there has been talk of banning people who ask about FM, despite nothing on page 1 and only "Not yet implemented" in their FAQ.
[Spirit FM] BurnRubber90:
It does makes some sound after choosing that option, then it goes away. Seems to get the volume controls crazy when it makes that sound/noise (its very loud).
[Spirit FM] mikereidis:
I would ask for a debug log, but I don't think it will help at this time. And for anyone wondering, the Free version does still have a debug log function, but it's hidden.

I have an EBay bid in for an HTC Sensation, so hopefully I'll be able to support it better soon. Nobody bid against me please. :)

But as I've ranted several times, the Audio Methods starting with "msm", "qsd" and "qdsp" are "hacks" that access the audio device drivers directly.

The proper & best solution is always one where FM audio support is present in an audio library and usable from a normal app without SU/root.

The audio libraries are the "appropriate authorities" to handle the complexities of routing audio on chips that can have hundreds of option registers. And the chips (multiple in many cases) have many inputs and outputs that must be co-ordinated, through interruptions by phone calls, notifications, headset jack plugs and unplugs, Bluetooth headset actions, etc, etc.
[Spirit FM] cos68:
Thanks, I really appreciate that. I am amazed how much work you put into this application. Thanks!

Best regards

Claus
[Spirit FM] mikereidis:
April 9 Free test version: http://www.mediafire.com/?h3q3rsuj5so7t9d

- Experimental Audio->Method = "Galaxy S2", 4th from the top. It may work, it may not, on any ROM: stock, CM7, MIUI, ICS or others.

If it doesn't work, there's not much more I can do until I get a Galaxy S2 myself.

For anyone still running the free version of Spirit on this still very expensive phone... please note that nobody is sending me any free phones (except 1 HTC Status so far) and buying phones myself tend to pull my "income" down close to the zero level.

Gotta "love" those "misguided" Free version Market reviewers calling me a greedy dev... LOL. AND all the readers voting those reviews up as "Most Helpful". Geeeeez. How many people must think Android devs are rolling in cash simply because Android is popular ? And they can't be bothered to do the simple math that shows otherwise.

- Improvements to Broadcom UART detection code should work on more devices.

- More devices automatically enable Debug->BC 4330, including Motorola Photon, Droid X2, Samsung Galaxy 5 series and Huawei u8800pro.

- New Menu->Test->EMail functions for sending me most /system files so I can figure out the new OEM ICS FM apps. Files end up on SDCard though, and at 50-300 Megabytes seem too large to send as email attachments.
[Spirit FM] cba1986:
Well. It seems that i'm officially part of the stadistics. :)

I noticed that the buzzer is making a distortioned sound. Well, i will try to get spare to replace it.
[Spirit FM] mikereidis:
Nooooo ! :(

Very sorry to hear about this, but I appreciate the report. I think the count is around 20 now that have reported.

That will make you the exception to my observation that this only happens to people that are new users I've had no prior contact with. And you may be the 1st customer too.

I think your 1st post here was March 11 and you said: "I used this app for almost six month always using Galaxy S ALSA mode and never had any trouble. On both GB and ICS."

But I think somewhere around October, CM7 finally had the safe CM audio method, for the CM app, so unless you were running some other ROM, I would have hoped you were using the CM method for a while. Even MIUI and other ROMs supported the same CM method shortly after.

I had another report yesterday about a GT-i9000b (Brazil and Latin America). The emailer was running March 4; the first with the much better audio support. Yet he said he had just started using the app; Not sure why he wasn't running a more recent version. He thought he needed a special b version speaker but I replied that I think the speaker was likely the same.

Any chance there was a charger involved at the time, or any other clues, like speaker thumps or weird audio ? You were running a recent version of the app ?

I'm going to be taking another stab at making the kernel messages identical to stock or CM7. And on the chance that playing a silent audio file is causing or contributing to this, I'd like to try some sort of wrapper around mediaserver to make it more like the audio library method. Or I can just see about building my own audio libraries, but that's likely a lot of work.
[Spirit FM] Zewsan:
Hello there, I've tried to read most of the thread, and see that you're doing really hard work on this app, very dedicated developer!

I tried out the 407 one on S2, and also going to test the 409 (AOKP Rom right now).

I just wanted to triple check, even though I read through it all, and just wanted to make sure that the "Galaxy S ICS /Danger" mode is the only one causing speaker issues?

Really wanting to get FM working, and I think your app will do great when it starts working on AOKP/CM9 etc ;)
[Spirit FM] mikereidis:
Hi, that's right, and that mode can never work on Galaxy S2 anyway, and would be benign if you tried it.

I've had reports that the new S2 method doesn't work, on S2 or on Galaxy Note. I have some minor changes I will try for next release, but they have little hope I think.

My app runs fine in all other respects. Just that "little, annoying" no audio problem. :)

On stock Samsung ICS ROMs I think the "Samsung SL" method will work, and even if not, I'll be able to figure out how to make it work quickly I think.

MIUI ICS ROMs are going the stock route, rather than the prior CM7 route, so that should work on MIUI also, assuming they get the stock FM app working as expected.

Beyond that, I am, as always, open to anyone who can find the "magic commands" needed. But if anyone knows how, they haven't released the secrets anywhere I can find. And I've probably spent at least 50 hours on it so far without luck. Would be nice if it was documented somewhere outside of Samsung's internal documents.

Most of the thread is a LOT with over 2800 posts over 1 year. :D
[Spirit FM] itandy:
I'm using the free version and sometimes Spirit FM stops playing after about 30 mins. The app is still responsive and can be closed gracefully. But no audio can be heard from any other apps, such as media player. Had to reboot the phone to restore audio.

I use "qdsp5v2 Plus/ICS" with a headset. Any comment is appreciated. My device details are in the signature.
[Spirit FM] mfenetre:
Hi mikereidis,

Thanks a lot for this new version. Although you've already had some reports about it not working on sgs2, I'm gonna try it on my sgs2 with cm9 and let you know.

If I can help you in any way, I'll be glad to do it.
[Spirit FM] coloxim:
Anyway..Thanks for your work on s2...

Inviato dal mio GT-I9100 usando Tapatalk
[Spirit FM] questionesse:
Hey - thx for working on this app!

as a native I'm not sure - presets mean channels that I can store for quick access?

I have an HTC Desire with cyanogen7 - there is an FM app, but the reception quality is no that great.

I had the impression that it was slightly better with your app - is that technically possible at all or wishful thinking?
[Spirit FM] mikereidis:
Yes, presets are saved channels assigned to buttons. The Free version does not support this, the Light version supports 6 and Unlocked is unlimited.

Reception quality is more a function of the FM chip used and the headset wire used as an antenna. The common older Broadcom chip found in the Desire seems to be among the worst.

The free version forces "Mono" mode (1 channel) and that always improves the signal to noise ratio. Mono, stereo, and sometimes alternative stereo modes are configurable on the paid versions.
[Spirit FM] mikereidis:
Hmmm. The audio doesn't come back if you press Mute/Unmute or Speaker/Headset ?

Enabling Settings->Debug->Silent Loop may help., but I have doubts. You can also try Debug->ALSA PCM Open, but that may interfere with other audio.

It may be that a notification arrives and that messes up the audio.

I'll try some extended tests, but there might not be any particularly good solution. Proper FM audio support needs to be in the audio libraries. There's a stock derived ICS ROM out that I'm going to try, and I think that might be the best ICS FM solution for the Desire HD at this time.
[Spirit FM] mikereidis:
Thanks...

I would be interested to know if that audio method worked on CM7, or any other GB or ICS ROMs.
[Spirit FM] coloxim:
I'll try..

Inviato dal mio GT-I9100 usando Tapatalk
[Spirit FM] itandy:
Thanks mikereidis! Will try your suggestions anyway.
[Spirit FM] mfenetre:
Test with CM9 on SGS II

So, I've tested your April 9th build (free version) with CM9 (04/04 nightly build) on my SGS II. I chose the "Galaxy S2" audio method, but with no luck, it doesn't work, although a signal is registered (RSSI is around 40).

The app shows the following parameters:

"Fm:SL Su:1 Bt:1 Ht:0 Mo:SLS"

I don't know how to supply any additional log or info, do you want me to grab a logcat or something else ?
[Spirit FM] qft1967:
Correct channel spacing

I am using a International Version of the Samsung Galaxy S, so I assume with the silicon labs chipset.

Referring to their datasheet it supports a channel spacing of 50khz, which is set in register SPACE[1:0], but I noticed that the current implementation of Spirit Light doesn't make use of this feature.

I selected the World Band, but when I go through the frequencies in 50khz steps, I only notice a different in reception when going from X.05 to X.10 and not from X.00 to X.05.

It would be great if it is possible to implement true 50khz channel spacing.
[Spirit FM] serguma:
If I can provide with any help testing the app on a AOKP rom for SGS2 (International version) I will be happy to oblige.

I would buy the app if that feature worked, but I understand it must be very difficult without access to the device :).
[Spirit FM] mikereidis:
Thanks.

But to you and serguma, there is really no substitute for me having a device.

I missed an Ebay auction close yesterday, but there are 3 more from the same source closing on Saturday, so hopefully I will get one soon.
[Spirit FM] mikereidis:
EDIT: Yeah, it's my code and it says "Hack !!!!" near it. I'll remove the hack and see if I can remember why I restricted it. It might be due to a Broadcom specific problem.

EDIT2: Probably this hack avoided a seek problem, where doing a seek from 88.5 will stop at 88.55 as the RSSI is still high. But there's another way to avoid that problem.
[Spirit FM] mikereidis:
April 12: http://www.mediafire.com/?nybz8lt7qv56tge

- Slight change to "Galaxy S2 Test" Audio->Method that might help. This method is now near the bottom of the list.

- 50 KHz offset (eg "World" region) fix. Seeks on Broadcom and TI chips using low level API are still limited to 100 Khz, but other functions should be OK.

Google Play versions should be updated shortly. The delta between the prior April 11 test version and the Play April 7 version is:

- "HTC" Audio->Method ICS enhancement for stock & stock derived HTC ICS ROMs such as Primo-S for Desire HD: http://xdaforums.com/showthread.php?t=1545595

- Improvements to Broadcom UART detection code should work on more devices.

- More devices automatically enable Debug->BC 4330, including Motorola Photon, Droid X2, Samsung Galaxy 5 series and Huawei u8800pro.

- New Menu->Test->EMail functions for sending me most /system files so I can figure out the new OEM ICS FM apps. Files end up on SDCard though, and at 50-300 Megabytes seem too large to send as email attachments.
[Spirit FM] mondaza:
I did not it work in xperia neo. also has CM9 :(
[Spirit FM] mikereidis:
The x10 mini (& not mini pro) is the only Sony Ericsson device my app has ever worked on it seems.

What happens ? Do you get a startup error, or does the RSSI at upper left work and you just have no audio ?

You can send me a debug log.

Hit the Frequency button, enter 7 and OK, and after a few seconds. enter "Neo" in the email text and press send.

Oh yeah, I forgot about that. The frequency button won't work if the FM doesn't power up.

I'll find a better solution for a hidden debug log function.

I hide it on the free one because otherwise I get TONS of logs from people who will never say anything about their problem, and from people with ancient pirated versions.
[Spirit FM] mikereidis:
On my Desire HD I've now also successfully tested these ROMs:

ICESenseV1.8.2.zip : http://xdaforums.com/showthread.php?t=1564950

ICESenseV3.0.zip : http://xdaforums.com/showthread.php?t=1539423

Except for the usual qdsp5v2 Plus/ICS hack, I was not succesful with these ROMs:

htc_ace-ota-eng.TwistedZero.zip

Blackout_ICS_XL_v1.1.zip
[Spirit FM] groksteady:
Just updated to the new version where GalaxySAlsa is renamed to ICS Danger... interestingly, now the Samsung SL method works for me. Previously, I had to use the Alsa one with the warning popup to get audio. This is much more comforting, hah.

Thanks, Mike!

(running on Samsung Galaxy S i9000 with AOKP build 31, Semaphore 1.0)
[Spirit FM] itandy:
Previously I've been using Spirit FM successfully using qdsp5v2 Plus/ICS. After switching to another AOSP ROM, it no longer work. It reports:

Error: No FM accessible

SU:2 Fm:BC Su:1 Bt:1 Ht:0 Mo: BCU

Tried several other audio types but same error. Any idea?
[Spirit FM] mikereidis:
If that's true then this is EXCELLENT news ! :D

Not doubting you, but,... downloading right now.

So they must be using the Samsung audio libraries, or parts of them.

EDIT: Doesn't work. :(
[Spirit FM] mikereidis:
Try turning Bluetooth on manually before starting.

I've tried several Desire HD ROMs lately that have Bluetooth running all the time, even if the power widget etc. shows that it's off.

This means that UART mode can't work, only Bluetooth modes, and the app has a difficult time trying to turn Bluetooth on when it's already on and the API is "lying" about BT power state.

IceCold Sandwich had this problem around v3.0 but the recent builds are good.
[Spirit FM] itandy:
Awesome! That fix the problem. And also help me discover an issue with this ROM. Thanks!:)
[Spirit FM] mikereidis:
It doesn't work for me.

In fact with the Semaphore 1.0 kernel, the Silicon Labs driver isn't even there at /dev/fmradio or /dev/radio0, so the Broadcom chip bouncing RSSI problem is seen.

I installed: http://goo-inside.me/devs/aokp/galaxysmtd/aokp_galaxysmtd_build-31.zip

Then: http://xdaforums.com/attachment.php?attachmentid=992066&d=1333966870

As well as the other 3 kernel variants.

EDIT: If you don't install the semaphore kernel, and start with the danger method, then switch to the Samsung SL method, it looks like the new method works. But restart the app and the audio is gone.
[Spirit FM] mikereidis:
First major manufacturer Android tablet over 5" with FM ?

The just announced Lenovo IdeaTab S2109 is reported to have FM, and at 9.7" it's a real tablet, as opposed to the 5" Dell Streak and Galaxy Note.

The video they put out clearly shows an FM app on the home screen a few times.

I wouldn't rush to buy any Lenovo product without letting early adopters test it out for at least a month, but this is promising. Promising even if it only helps push other tablet makers into supporting over the air FM.

It remains to be seen if my app will work on it, but I think the chances are reasonably decent, unless it uses a less common FM chip or a new proprietary API.

And it would be fabulous if the upcoming Google/Asus Nexus tablet was FM capable, even unofficially, but I have serious doubts about that, given the lack of FM in every Nexus except the unofficial capability in the Nexus One (HTC Desire variant).

=============

On other fronts, the Android watches don't seem to have FM. I've looked at what seems to be available, and they might theoretically be capable. But Spirit in it's present form couldn't run on such a tiny screen I think. The MotoActv is interesting, but it's not Android on the watch.

FM transmit remains elusive, and recording is still pretty rare.

The original 2 Samsung Galaxy Players can run Spirit. There are two new ones, and the cheaper Player 3.6 is priced around $150. The Player can be used as a bluetooth device for other phones, smart or not. So I guess you can then hold and use the Player as if it was a phone. Strange/cool. :)
[Spirit FM] Nitemare_real:
Not working for me with Samsung SL, just works with ICS/Danger driver as ever, running on GT-I9000 with PURE DROID 4.0.4 based on NEXUS S ROM
[Spirit FM] rauldumi:
Hello, just sharing exp.......I am on AOKP b31.........purchased the Light ver.........and after some breaths of air i switched alsa mode on.........and voila it works like a charm....

ps: I am using semaphore 1.0.0s big mem with FM Radio module enable.

Just one q to the dev.......are there any custom sett I can apply to get all stations from Romania/Bucharest?..........ex: alt freq or region option?

thnx
[Spirit FM] kulas2004:
Sadly app for SGS2 is still not working.
[Spirit FM] mfenetre:
I just tried your April 12th build on my SGS2 with CM9 (04/11 nightly). Sadly, it doesn't work. However, the app does not display the same info as with your April 9th version:

April 9th: "Fm:SL Su:1 Bt:1 Ht:0 Mo:SLS"

April 12th: "Fm:SL Su-:0 Bt:1 Ht:0 Mo:SLS"
[Spirit FM] bswann:
I just wanted to say awesome work!! I have a Dinc2 and I love MIUI but the built in FM radio does not work so I tried this. I have a FM radio now!!!! Thank you so much!
[Spirit FM] groksteady:
strange -- I just started up the app again, and it wasn't working. So I switched back to Galaxy S ICS Danger, which worked. Switched back to Samsung SL, and that worked. Quit the app, started it up again, and no audio.
[Spirit FM] mikereidis:
"FM Radio module enable" ? OK, I'll have to check that out. This is a driver that's proprietary to Samsung, but at least the source code is open.

Regional Band "Europe" or "World" should work OK in most places outside of North America. Most of those countries are just alternate names for those 2.