yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Most phones don't have the hardware needed to record FM, including your U8800 Pro I think. The FM audio is on a special path, and can't be processed/equalized in any way either.

Some recent phones can record FM stock, such as the Galaxy Note and GS3. For these, on stock ROMs, Menu-> Test-> Record may work.

Some other phones are hardware capable, such as AT&T OneX(L) and I've been able to test that. Some might theoretically be capable, such as Galaxy S and S2, but the audio libraries such as libaudio.so don't support it.
[Spirit FM] mikereidis:
FAQ under construction. 10 posts reserved.

Skip ahead to post 4471.

Thanks ! :)
[Spirit FM] mikereidis:
Spirit FAQ:

March 24, 2013: Updates underway.

Scroll down or click.

Start Here: http://xdaforums.com/showthread.php?p=13380058

Warning: http://xdaforums.com/showpost.php?p=31983105&postcount=4462

Devices: http://xdaforums.com/showpost.php?p=31983117&postcount=4463

Download: http://xdaforums.com/showpost.php?p=31983131&postcount=4464

Problems: http://xdaforums.com/showpost.php?p=31983151&postcount=4465

Config: http://xdaforums.com/showpost.php?p=31983185&postcount=4467

BT/EQ/Record: http://xdaforums.com/showpost.php?p=31983199&postcount=4468

Requests: http://xdaforums.com/showpost.php?p=31983163&postcount=4466

Transmit: http://xdaforums.com/showpost.php?p=31983221&postcount=4469

Alternatives: http://xdaforums.com/showpost.php?p=31983238&postcount=4470
[Spirit FM] mikereidis:
Warning:

Less than 1% of Galaxy S GT-I9000 users on ICS & JB ROMs have had speaker damage. There are no other cases where Spirit is associated with physical damage. But the popularity of Spirit, Galaxy S and custom ROMs produced at least 50 known cases.

There is now a very hopeful digital audio solution for the GT-I9000 problem. Time will tell. I now get 1 report a month from over 100 sales each month, plus many Free users.

Lots more info here: http://xdaforums.com/showpost.php?p=13380066&postcount=3
[Spirit FM] mikereidis:
Phones:

Official compatibility list: http://xdaforums.com/showpost.php?p=13380058&postcount=2

Try the Free variant. If Free works then Unlocked will work.

For best quality, I now focus on popular Samsung, HTC & Sony devices with custom ROMs.

For hardware and software alternatives, see: http://xdaforums.com/showpost.php?p=31983238&postcount=4470

Tablets:

Most tablets are not capable of FM and I can't support those that are. The 5" Galaxy Note & Note2 are the largest supported.

I've heard Lenovo Thinkpad works on the stock ROM, but not on CM10, and Acer Iconia A500 works on CM10.

The 7" Lenovo IdeaTab A2107 has stock FM but no Spirit reports.

Asus TF101 10" works, but no audio: http://xdaforums.com/showpost.php?p=33054176&postcount=4598

There is little demand for FM on tablets, as they are usually used where physical radios are available.

Car computers are among the few applications, but it's a small niche.

There's a dongle solution here, but it eats a LOT of battery, which may not be a problem in a car computer: http://xdaforums.com/showthread.php?t=2108053
[Spirit FM] mikereidis:
Download:

See Download section of post #1: http://xdaforums.com/showthread.php?p=13379669

I prefer Google Play Store purchases, despite Google's 30% cut or 43% markup.

If Play is not an option, you can email and send Paypal funds to mikereidis@gmail.com . I'll send you what you need to get automatic updates.

I cancel any order at any time on request, so don't worry about the Play 15 minute limit.
[Spirit FM] mikereidis:
Requests:

I appreciate all paid customer requests, but my time is very limited.

Most common requests:

Support my phone: I now focus on the most popular devices.

User Interface: I'll build a nicer JB+ UI in Spirit2. Maybe backport.

Bluetooth: Supported on some phones. See BT/EQ/Record.

Record: Supported on some phones. See BT/EQ/Record.

Transmit: Very rare. See Transmit.

Translations: Maybe in Spirit2. Will try to use more symbols.
[Spirit FM] mikereidis:
Configuration:

If Spirit crashes at start, and reconfig will fix it, remove and reinstall Spirit or clear app data. Start Spirit. At Intro press Back or Stop. Re-configure and press the Spirit power button to start.

Outside North America, set Menu-> Settings-> Band to Japan or one of the "World ..." options, using local channel spacing.

Spirit tries to automatically configure for hardware and software differences.

If FM seems to work, wired headset is plugged, RSSI at top left is over 20 when tuned, but there is no audio, setting Audio-> Method may help. For more info, post on XDA or paid customers email for support.

It's best not to change Debug settings, unless instructed or understood. But in some cases, Debug-> FM Chip and Debug-> FM API may help.

For more config info, and much more, see this November 23, 2012 Spirit document: http://d-h.st/TxN
[Spirit FM] mikereidis:
BT / EQ / Record:

Spirit is now the ONLY FM app, stock or otherwise, that supports all of these digital audio features, on supported devices:

Bluetooth A2DP headsets in CD quality stereo.

Recording in CD quality stereo.

External visualizers, equalizers and effects.

Internal Wave and FFT visual: 5x8 dB & log2 43 - 22,050 Hz.

Spirit supports digital audio on:

Rooted International Galaxy S, S2, S3, Note, Note2.

Rooted HTC One XL, One S, Evo 4G LTE, Sony Xperia T.

Most stock Sony 2012-2013 devices.

Further info to come.
[Spirit FM] mikereidis:
Transmit:

With a few rare exceptions, Transmit is not possible.

FM Transmit requires a useful antenna (generally, a wired headset) connection to the transmit pins of the FM chip. This is extremely rare, for whatever reasons.

Until recently, the only Android devices confirmed to have FM transmit capability were a few Japanese market Sharp devices.

As of Sept. 2012, I finally have found a phone with unofficial FM capability: HTC T-Mobile MyTouch 4G running Froyo 2.2.1 and a never publicly released transmit app. T-Mobile was going to release with this feature, and changed their minds, but the hardware connections are still there from headset jack to FM transmit pin on the Broadcom FM/combo chip.

It's almost a fluke that this has been uncovered, so don't expect similar on other phones. That said, recently the original Motorola Milestone (I think) has been finally proven to have usable FM after years... Antenna always worked but the audio needed to be "cracked".

See FM transmit on T-Mobile myTouch 4G: http://xdaforums.com/showpost.php?p=31328070&postcount=4391

December 20, 2012: Some European Sony Xperia P/U/Sola/Go ST-Ericsson CG2900 FM chip based devices have working transmit, but without audio. It's not clear yet if audio can be enabled. Test with Debug-> FM Chip = "STE AFM TX" and restart Spirit. Signal is weak. Wrap length of headset cable along length of FM receiver antenna to test. Change frequency to verify. Use seek up and down to change RDS info.

March 24, 2013: Sony Xperia T may support transmit. The FM chip uses the internal antenna pin, which is shared with the transmit function. No confirmation to date but I haven't asked anyone with a T to test yet.

Why No FM Transmit:

You'd think enough people have asked for FM transmit that at least one company would sell such products outside Japan. But perhaps they've all crunched the numbers and decide it wasn't worth it, due to:

- Added costs, and/or...

- Added delays (in a very quickly moving market) for FCC and other regulatory body certifications.

- Low RF coupling and low audio quality versus the superior quality of direct wired or Bluetooth connections to car stereos (likely the main marketable use case).

- Interference possibilities with one or more of the many RF systems on a modern smart device: Cell Voice/Data, WiFi, Bluetooth, NFC, GPS,... Yes the frequency bands are very different, but problems can still occur.
[Spirit FM] mikereidis:
Hardware Alternatives:

Sony Bluetooth A2DP Stereo headets with FM are decent.

MW-1 or new MW-1 Lite $80-$100+ on EBay: http://store.sony.com/p/Sony-Androi...Headset-Earphones-Earpieces-Wireless/en/p/MW1

Older MW-600 $40 on EBay: http://store.sony.com/webapp/wcs/st...10151&langId=-1&productId=8198552921666492655

Smart-watches are worth a look.

Dongle based SDR drains battery: http://xdaforums.com/showthread.php?t=2108053

Software Alternatives:

On stock devices with no FM app, the stock app from another phone may work.

There are almost no alternatives on most custom ROMs. IMO, Spirit is the only 3rd party non-stock FM app of any significance.

This is because the dominant APIs, firmware and hardware details are secret and undocumented.

ST-Ericsson had attempted to create a standard Android FM API, but 2+ years later it's gone nowhere fast. As of March 2013 it's sitting with a broken build in an experimental branch of AOSP, despite some activity near end of 2012. It's unclear what the latest ST-Ericsson organizational restructurings mean to this effort.

I hope an industry wide blessing of this API is right around the corner. But so far Google doesn't seem to care, nor do carriers. Their best interests are in data plan revenues or Internet ad revenues, and they all want to be the gatekeepers of the 21st century "TV etc. market".

Emmis Communications coming NextRadio app might use this API; I have no idea yet. Further info on the related ransom for FM in the US market is here: http://xdaforums.com/showthread.php?p=37641690

Open Source Spirit:

My Oct 31, 2012 statement on open sourcing: http://xdaforums.com/showpost.php?p=33453938&postcount=4715System

I may release some open source for Spirit2. The intention would be to encourage others to write FM apps, widgets etc. using the ST-Ericsson proposed Android FM API natie to Spirit2.
[Spirit FM] mikereidis:
FAQ is finished. This is on the next of 10 pages.
[Spirit FM] gyankamp1:
Thanks. I looking for because I know for sure that u8800(not pro) support that function(custom roms).The difference bettwen pro & no-pro is on wifi. Hardware architecture is similare.That means I must change software stuff like drivers or hardware permissions maybe?
[Spirit FM] mikereidis:
My understanding is that Huawei u8800 and u8800pro are quite different, at least as far as FM goes.

Huawei u8800 has a Qualcomm Tavarua FM chip and u8800pro does not. I thought the "pro" version does not have FM, or at least I haven't supported it well (or at all?), but I think it has a Broadcom combo chip.
[Spirit FM] RsOnAndroid:
Hey Mike.. does this new Sept 24 version fix anything for Desire Z/G2, or are we still better off with Aug 11 version?

Edit - just installed the Sept 24 free version - working well, and post the shutdown, the phone and other audio is still working without doing a reboot (which was the issue with the Aug 11 version).

The only issue is that the pause button is still causing the phone to crash and restart, so not using that for now :)

Thanks
[Spirit FM] Chehri:
Thanks, really enjoy the app. Seems to work much better than the old stock app I had before I was running CM.
[Spirit FM] mikereidis:
:)

Well you have to tell us your phone and ROM if you stop by this thread...
[Spirit FM] mikereidis:
Happy to hear. September 24 has a "kindler, gentler" Mute kill mediaserver, which more properly restarts audio. It seems to be more stable, usually.

Hmmm. The mute/pause is also triggered at app/FM shutdown so there must be some difference. Crashes are timing sensitive, so an unrelated issue that changes timing can make a difference.

Further app hacks won't be satisfactory. I'm taking time to understand Android audio/media libraries and hardware much better, and how I can rebuild them or hook into them.

This will take a while, and I hope I can collaborate with other devs.
[Spirit FM] xhejtman:
Hi,

I have Spirit UL on my HTC Desire HD with Jellytime ROM. App works OK however, when I quit the app, phone still does 60mA of battery drain per 10 minutes. BBS shows nothing suspicious, CPU usage is low, maby some HW is not properly put into sleep? Is there any debug I could do?
[Spirit FM] aoprea:
on september 24 version on HTC OneS from time to time (10 - 15 seconds) the sound go off for 1 seccond

and switch from headset to speaker not work

rom: cm 10 september 23
[Spirit FM] gyankamp1:
Just in case ,u8800pro have official FM supporting on ics rom.The issue is that when fm working restricts any other audio operation (including recording).

Thanks anyway
[Spirit FM] mikereidis:
Yes, I'm aware of this problem, the AIC3254 DSP is not shut down. The August 15 releases "solves" it, but this creates other problems. One way to avoid it is to set Debug-> Mute kill mediaserver to "Disable" but that will cause problems with audio notifications at least.

These two commands from adb shell or a terminal app with SU should fix it:

ioctl -l 1 -a 1 /dev/codec_aic3254 0x40047313 29

ioctl -l 1 -a 1 /dev/codec_aic3254 0x40047312 29

It's also possible this could be fixed by muting Spirit, selecting Menu-> Test-> Audio-> Restart media (at the end of the long list), then pressing the power button to close Spirit.

All of this is a problem because Android will call Spirit when audio focus is being taken, but by that time the audio library is already in the midst of switching to a new mode. Then Spirit and the audio library are fighting each other, not really knowing what the other is doing and when, and big problems happen. In this case, switching the DSP off will cause problems if you are answering a phone call, because the switch off comes too late to do.

All of this is why I'm now taking the long, proper approach of modifying audio libraries.
[Spirit FM] mikereidis:
I've seen a similar problem on my OneXL and I think it required a reboot to fix. I think it's more likely to happen when the CPU is under load.

The only way to switch speaker/headset at this time is by plugging/un-plugging the headset.

I'll see what I can find.
[Spirit FM] xmguy:
Mike do you think the Motorola Razr M or upcoming Razr Maxx HD will support Spirit FM? They run the new Snapdragon processor.
[Spirit FM] mikereidis:
My guess is no, simply because of the recent track record of Motorola on higher end devices at least. But as you know a few models have no official support, despite being capable.

And you know my current thoughts on Motorola.

That said, HTC (/Verizon) is coming out with more "No FM" phones now, and even Samsung is starting to disappoint. I may have to find another app niche if this continues.
[Spirit FM] xmguy:
For that reason alone. I will always hang onto my Bionic. Even if I get rid of the RAZR or the new ones don't have FM, the old ones do. Plus Mike MOST international/global GSM models by HTC and Motorola seem to HAVE FM on board due to the lack of a good signal for data.
[Spirit FM] mikereidis:
Going forward I am concentrating on Samsung and HTC higher-end devices. I HAVE to specialise, in order to achieve quality and features, like FM record. With a "one man show" quality is only possible when I have supported, or very similar, phones in my hand to test.

And my market is mostly custom ROM users, most of whom are fed up with Motorola locked bootloaders and various LG issues, as well as the lack of popularity of Sony and most other OEMs among ROM devs.

And yesterday, Texas Instruments seemed to announce that OMAP is dead. I don't know about current Motorola's, but older ones are largely OMAP I think, and with TI FM chips. I appreciated TI's relative open-ness with source code, but they seem to be out of the mobile game, at least for the short-medium term.

This might actually explain why there's at least one recent Motorola device using a Broadcom FM/combo chip. TI chips are becoming harder to find lately; All I can think of among popular devices is the International HTC OneX, which actually isn't selling too well for being one of the 2nd most anticipated devices of 2012, the other half being the apparently more popular AT&T OneX(L) with Qualcomm SOC and combo chip.

I was hopeful that Google would shake up Motorola, but I don't see any evidence of any useful symbiosis between them.
[Spirit FM] joederp:
Mike, just an idea of adding a list of supported phones to FAQ. Not like all phones but maybe the newest phones. And specify only support i9300 for S3
[Spirit FM] mikereidis:
Already there.

Will Spirit work on my device ? : http://xdaforums.com/showpost.php?p=31983117&postcount=4463
[Spirit FM] k-mille:
Does anybody succesfully tried to run SpiritFM on rooted Galaxy Y?

In my device only 'Samsung SL' audio method allow to listenning silent noise, maybe you have custom audio method?

plz reply
[Spirit FM] xhejtman:
Audio output seems to be preserved across app restarts. This could be useful. However, I would prefer to automathically detect presence of headphones and if they are present, switch audio to them even if the last output was speaker. Would it be possible to add this as an option?
[Spirit FM] xhejtman:
Is there a way how to setup audio sharing between Spirit FM and any other system application on HTC DHD? Unfortunately, Spirit FM breaks runkeeper or music folder player.. :(
[Spirit FM] mikereidis:
Compat list in post 2:

These devices with Broadcom chips do not work well:

- Samsung Galaxy Y DUOS GT-S6102/GT-S6802. No audio with existing Audio-> Method settings on Stock rooted or un-rooted.

- Samsung Galaxy Y Young GT-S5360. One success report on stock device in February but many problem reports on custom ROMs March - June.

Hopefully someday, somebody with one of these will figure out audio.
[Spirit FM] mikereidis:
Possibly.

I think yours is the first such request I've had in a year and a half though, so it doesn't rank well on the request priority list.

I think a LOT more people would be much happier to see FM audio work better, without cutting off ringing, notifications or requiring a reboot to restore.

See next post.
[Spirit FM] mikereidis:
From the FAQ:

5 - How to get Spirit working: http://xdaforums.com/showpost.php?p=31983151&postcount=4465

...

Problems with phone call, notifications or other audio:

- Go to your phones' System Settings and ensure there are no Sounds selected for button presses and screen lock at least. These can interfere with FM on some devices/ROMs.

- Audio problems are my main headache and task at present, particularly on devices such as Desire HD and Z or others using the "qsdp5v2" Audio-> Methods, automatically or explicitly.

These problems are occurring mostly on custom ICS and JB ROMs that do not have FM support in the audio libraries. This includes many, but not all, CM9/10 and other AOSP based ROMs.

The lack of ROM support means Spirit has to resort to low level methods, such as ALSA and many other mostly undocumented device driver IOCtl based APIs. But these methods are fragile when the audio library does not "know" about the FM routing.

The proper solution is in the audio libraries and I'm exploring the best methods to achieve this solution. Perhaps I'll post source code patches, information and/or produce a "shim" workaround. It will take me at least several months to "get moving" on this, but the previous method of adding hacks upon hacks is a bad use of time.

The hacks will be documented. They are mostly in the Debug section of the settings. They include Silent Loop, Mute kill mediaserver, Audio Focus.

...
[Spirit FM] xhejtman:
Is there any help possible?
[Spirit FM] rogier121:
As you can read from the faq, no this is not possible right now.

That is a real shame because the app is useless now, every time I listen I have to reboot to prevent my battery from draining and let normal music play. Tested with jellytime R12 and the paid version.
[Spirit FM] tariq2kn:
Anyway to use this app on S2 ICS, India. Doesn't work, only hissing sound. Though I have selected method as Galaxy S3/Note/S2 & country as India :mad:
[Spirit FM] mikereidis:
Which phone and ROM ?

I had hoped I had done enough to not force reboots. Mute kill mediaserver restarts the mediaserver and should work around having to reboot.

Those who have problems with Mute kill mediaserver tied to the Mute function can disable it. Then when shutting down FM, I think you can do this:

- Mute the FM.

- Select Menu-> Test-> Audio-> Restart media (at bottom).

- Power down FM.

Yes it's a bunch of hoops to jump, but if it works for some people I can make this automatic at FM power off.

If Restart media doesn't work, it's possible that Stop media, wait several seconds, and Start media will work.

Last night I was trying some tricks with freezing the mediaserver service, and it showed some promising results, then showed it was also unstable.

This problem research, and my ongoing education into the very complex Android audio system continues.
[Spirit FM] mikereidis:
No, not if you mean the 'G' variant: GT-i9100G.

I, and many 9100G FM hopefuls, would be very happy if someone with one of these phones could figure out the "magic commands" to enable FM audio.

IIRC, the 9100G uses an OMAP SOC, and is thus similar to the Galaxy Nexus (but which doesn't have FM).

I've tried several things, to no avail. I think if you were using a stock audio library, it would work. But I think the audio may be digital, in which case something like the hack I did for OneXL could work, but that requires me to have a physical device.
[Spirit FM] rogier121:
Desire HD + Jellytime R11.

I didn't try the 'hoops' yet because I didn't have time yet :) But aren't you able to peek from the official Sense FM app? It should work under ICS nowadays with Sense 3. But I can imagine you did ofcourse :P
[Spirit FM] mikereidis:
My DHD is running Jellytime R8 now.

It's not about the FM app. It's all about the audio libraries, which I don't control because I don't build ROMs.

The libraries don't support FM audio routing, so Spirit bypasses them. The libraries don't know FM is turned on, and the code in the audio library breaks.

I'm investigating the only proper fix for these problems, which is putting code for FM in the audio libraries or wrapping them somehow. But I'm keeping my eye open for "magic hacks" that won't require new libraries.
[Spirit FM] mikereidis:
I think I've found a magic hack for all the qdsp5v2 problems on Desire HD and many similar devices.

If I use "shortcuts" to disable the FM audio before the mediaserver messes things up, it looks like it works OK. Audio notifications come through fine, and I think ringing will too.

One side effect is FM audio turns back on for 3 seconds after a notification/ringing/phone call, then switches off due to the audio drivers trying to save power. But this should be solvable.

Silent loop still can't be used to get background volume button controls, but I'll see what else can be done.

I'll try to put out a test release tomorrow.
[Spirit FM] xmguy:
I might need to look into getting the Samsung note 2 or the yet unknown HTC 1080p phones coming to Verizon.
[Spirit FM] mikereidis:
HTC devices are more likely to have usable FM hardware, but with Verizon's record I'd guess FM won't be officially supported, and may require SU/root to use.

I looked at a leaked ROM for a US Galaxy Note 2 and there was no FM app, nor any promising sign. OTOH, I've looked at some videos showing what is likely an International variant, and there was an FM app.

I don't think there has been a single high end Galaxy S/S2/S3/Note class phone released in the US with usable FM hardware.
[Spirit FM] jorginoska:
LG P970 CM10 Spirit FM Unlocked Config Please!!!

instale la aplicación en mi celular y ya probé todas las configuraciones posibles y no se escucha.

Por favor ayudenme

install the application on my phone and I tried all possible configurations and not heard.

Please help me

LG P970 Optimus Black with CyanogenMOD 10 (Jelly Bean)
[Spirit FM] takkk7:
I need advice.Because of the long thread and I read post#3 can someone tell me if spiritfm still has speaker issue on galaxy i9000?

I m using cm10 and i miss it..