yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Early 2011 is ancient history now in Smartphone time. It was a time when Android 2.3 Gingerbread was new, CM7 was just coming out and when the first real Nexus device, the Nexus One (HTC Desire) was still pretty shiny at just under 1 year old.

Regardless, I still see "enough"* interest in FM; I get around 5 emails every day asking if their device can support FM (Sadly mostly requests for impossible devices).

*: "Enough" meaning I can still continue to make a "decent" income with Spirit sales alone. Income was "just barely enough" and declining, but thankfully Spirit2 is stepping in now, raising income about 30% to make me a bit more comfortable again.

There seems like more than a thousand streaming apps out there, though some are just copies of a standard app, for a specific station or whatever. And some very big companies are involved. I can't and don't want to compete in such a crowded market.

I prefer a nice quiet niche, and charging somewhat "boutique" prices for the best support I can provide.

If/when I can't make a live-able income from SpiritX, I'd likely open source the code completely and move on to something new. I don't know what exactly; things move so fast that it'd be hard to predict, but audio enhancements for AOSP ROMs is something I've considered.
[Spirit FM] mikereidis:
Good... :)
[Spirit FM] m1la:
LG G2 d802 on CM 10.2 - no audio?

hey mike. thanks for your work.

i have used your app on i9300 before. now i have a lg g2 on cm10.2 app starts and finds station but i don't hear anything. can you maybe help? i have browsed/searched this thread and couldn't find any advice. found an entry talking about reboot on start. but i don't have reboots. also the audio is set to automatic.

br, mila
[Spirit FM] LenAsh:
Had some more time to play with the Stock LG G2 d802 (and, off topic, the CM11 one is becoming a Royal pain in terms of ROM stability and funnies).

Spirit 1 works fine on Stock 10F. When it starts (and it starts quickly), a toast appears with "FM: BC OEM". No settings needed touching at all. The Radio then works as well as, and exactly like, Stock. No silly soft-muting. And it pulls stations in like a champ. The RSSI shows a lower figure on Stock running Spirit 1 than CM11 running Spirit 1, as you suggested, so just scaling. If only this performance could be the same on CM11 (should CM11 for the G2 ever become reliable!!)
[Spirit FM] mikereidis:
Hi, You should use the latest Feb 14 version of Spirit Unlocked. It was in beta but last night I started a 5% staged rollout. If you have Unlocked, sign up for the beta or email me.

On Feb 14 only, Audio-> Method = "LG G2" should work. You can also try "Digital LG2" but that crashes on stock kernels and CM10.2. CM11 is preferred.
[Spirit FM] mikereidis:
Yeah, I just use most phones for FM testing, so I often have little idea about real use stability.

So that confirms my assumption that the soft-mute thing is handled by the OEM API between the app and the hardware drivers.

The HCD firmware files might have different defaults. I think for G2 Spirit uses an internal HCD due to some problems with funny stock files. I'll look into it once I get over whatever ailment is attacking me now...
[Spirit FM] mikereidis:
CM11 FM is dead on Sony..., still alive on MotoG

For a "laugh" I pop over to the CM forums 2-3 times a year and did so today. The forums are full of posts from people who never get any response from anyone, so it's kind of a strange place.

Anyway, I searched on "FM" in their issues/bug tracking system. And apparently the CM11 FM added last year on Xperia Z and T is very broken and has or will be removed.

I think this is even less surprising now that CM's gone commercial.

MotoG still has FM and it's CM11 is official now, so it's not all bad news for CM FM... It might even work on some other Qualcomm based devices.
[Spirit FM] supermaxkato:
Mike, Love that you are still supporting your app after all this time!!

I just got an old Desire 4g lte (sister phone to the verizon droid incredible 4g lte). Should I assume that since the verzion version isn't supported, that mine won't be either?

Or does anyone else on this board have the Desire 4g lte (NOT the new desire from the htc one series)?
[Spirit FM] harryxperia neo v:
SPIRIT FM

Hello Sir,

Please tell me the how to install spiritfm on xperia neo v. please send me the step by step if possible please send with image
[Spirit FM] LenAsh:
Err... It's an app....
[Spirit FM] sokpip:
Hi! I am from Greece and I am ready to buy Samsung Galaxy S4 Active and as you know there is no radio on it. My telecomunication provider is Cosmote and I want to ask you if Spirit FM is going to work in this device. Thank you!
[Spirit FM] LenAsh:
Since there is no FM Radio hardware in that phone, it can never work.
[Spirit FM] jonathan654:
HTC One Mini

Just wondering - is this still supported for the HTC one mini (unrooted) running android 4.3?

I tried the latest link for Spirit free on your downloads page and received an error reporting: No FM accessible SU:1 Fm:BC2 Su:0 Bt:0 Ht:0 Mo:BCU

If there is (intended) support i'd be happy to purchase the app and try work things out.

Or would it be better to wait for spirit 2, and live with the stock radio app for the while?
[Spirit FM] LenAsh:
For what it's worth, here is an updated HCD file in a flashable format. The updater script is for the file location in CM11, not Stock!

I'm assuming you use that file in its default location...

Cheers.
[Spirit FM] mikereidis:
:)

I have no info on that phone; I presume it's rare and I try to ignore rare phones these days.

All I can say is try it out. If there's no stock FM it's likely FM is disabled. Same if Verizon was the main customer.
[Spirit FM] mikereidis:
Sorry, can't.

Spirit supports some 2012+ Sony's. 2011 and earlier I can't support.
[Spirit FM] mikereidis:
I've been spending more weekends w/ my family, and fewer working, so appreciate the help... :)

That's right.

Unlike some other OEMs, Samsung seems to be consistent in having a stock FM app on every device which is capable of FM.

It may be because they are and have been more committed to hardware disabling any features that aren't promised.

13 hours now until Samsung's Galaxy S5 Unpacked event...

I hate to be this dependent on one phone OEM, but that's just the way it is.

If GS5 has FM (or better yet FM + DAB/etc), that will I think give Spirit at least another additional year of life; say 2-3 years (Spirit2). And my income is more likely to rise over the next year.

If not, that IMO signals the end of OTA radio on Samsung flagships, and Spirit might lose a year of life and last maybe 1-2. And my income is more likely to drop over the next year.

This assumes the GS5 sells roughly at least as well as the GS4.

Also assumes my current health issues aren't terminal... (LOL ?)... Otherwise Spirit goes open source and lives forever. ;)
[Spirit FM] mikereidis:
I don't think the One Mini is on my support list, but in August when it came out someone reported it working.

It may work stock, but you may need a more recent version of Spirit Unlocked. The last free version is from September and doesn't support the new Broadcom FM API.

Email mikereidis@gmail.com and I'll send you.

I'll warn you though that HTC "secured" the FM API on HTC One KitKat, so if it works it may break with an update.
[Spirit FM] ido135:
The application may destroy the speaker of the Galaxy Note 2, as happened in Galaxy S1?
[Spirit FM] mikereidis:
No. Speaker damage risk is for GT-I9000 only, and only on AOSP ROMs besides CM7.
[Spirit FM] mikereidis:
Galaxy S5 does not appear to have FM. :( (And the cheap Nokia X line does, LOL.)

Maybe the Sprint variant might, who knows ? The Sprint Note3 is the only Note3 in existence with FM, and it sells in such low quantities I don't recall anyone even asking me about Spirit support for it.

This now makes 3 flagships from Samsung with essentially no FM: GS4, Note3 and GS5. I see no reason why this will change.

What does this mean for Spirit and I ?

71% of my combined Spirit1/2 sales for 3 years was on Samsung devices. 78% of my Spirit2 sales are on Samsung: GT-I9000, 9100, 9300, N7000, N7100. 5 devices.

Even if every person who would otherwise buy Spirit and help support me bought an FM capable phone, that would spread the work over multiple devices and I'm unable to support too many.

So, this is a sad day for me, for Spirit and for OTA Radio on Android. I'll be working full time on Spirit for at least 1 more year, making Spirit2 the best it can be, but the picture gets fuzzier after that. In the end though, it comes down to whether I can continue to make a decent-ish income.

I could diversify a bit, for example taking the Spirit visualizer and make it a 99 cent app and wallpaper. Having cracked many mysteries of Android audio I think I'd be likely to continue in audio.

Other options, to keep me focused on Spirit in 2015 and later:

I could appeal to people to support me financially if they want Spirit to continue, pointing out how Samsung is making Spirit unfeasible.

If I could reduce the piracy rate from 95% to 90% (for example), that doubles my income.

Then there's In App Purchases (yuck !) or better yet a recurring Spirit subscription. $1 a month would likely bring me more (eventually) than a $10 outright purchase (every 2 years or more).
[Spirit FM] C.Eduardo:
Who knows spirit can direct to the handsets of Sony. To my knowledge all models have FM radio. (I think Sony knows for many users FM Radio is something important in cell)

And as I had informed him that topic the spirit works well on my xperia ZQ (ZL) and on my Xperia Z Ultra, but not the audio Sony Z but in other ways I have already mentioned in the previous post about the device xperia Z (sold).

I will put my previous post here, still works for the Xperia ZQ (ZL) as xperia Z ultra.
[Spirit FM] ido135:
If I install the app on AOSP ROM is based on galaxy note 2 may happen is something the speaker?

AOSP based ROMs List For Galaxy Note 2:

CM 11

OMNIROM

CYNE FOX
[Spirit FM] mikereidis:
Probably no V4L driver is "Fully" compliant, LOL.

Ignore TUNER_CAP_LOW. It's 62.5 Hz because that's the only way to get the needed minimum channel increment of 50 KHz.

Be sure to insmod or modprobe the radio-iris-transport module.

I wouldn't use TI's V4L code, especially on non-TI chips.

Qualcomm open sources a demo FM app for their chips, which also demonstrates many of their private IOCtls. You can see it on the MotoG CM11 ROM, and it's source is in CM somewhere.

The Qualcomm app is good, and Spirit, as well as the CM7/MIUI FM apps were derived from it.
[Spirit FM] mikereidis:
Yeah, Sony is great in supporting FM. They have the only 1st world tablets over 6 inches with FM.

But their sales are low, especially in North America.

And for various reasons, more Sony users stick with stock or stock derived ROMs that include Sony's good enough and free app.

In the end, Sony has been just 1.3% of all Spirit sales ever, about 2.3% of my 2013 sales, and surprisingly perhaps 3.6% of Spirit2 sales.

40% of my recent sales are on 2 phones: GT-I9100 and GT-I9300. This despite that they are now a few generations behind the latest.
[Spirit FM] mikereidis:
What I wrote and you quoted is the answer.
[Spirit FM] CresCoJeff:
Is this repo at CodeAurora the sample Qualcomm app you were referring to? I seem to recall trying to build that app in the past and finding that it had a number of system-level dependencies suggesting that it was meant to be built into a ROM; can the intent action in FMRadioService ("codeaurora.intent.action.FM") be used independently?

thanks very much!
[Spirit FM] gziggy:
Hi, I purchased the Spirit FM UL v2014_02_14 app this weekend for my new AT&T LG G2 (LG-D800) running Android 4.2.2 stock (not rooted, phone is exactly as I received it from AT&T).

The app seems to fire up fine, but I cannot listen to any radio stations. I intermittently see the upper left-hand corner blue bars & what appears to be a decibel meter go to 5 bars and 111 (assuming thats 111 dB), but still no sound comes from headset nor the speaker. If I scan the radio does not seem to stop on any station, however, I have to manually put in the stations. Do I have to configure a special setting to listen to the radio, or get the app to work with the FM radio in my phone, or any special instructions to get my G2 to provide FM radio service? Thanks.
[Spirit FM] mikereidis:
I didn't even know where Qualcomm's latest code was, so thanks. :) I see it's still actively developed; I should poke around a bit.

The JNI is where the V4L from C/CPP is at: https://www.codeaurora.org/cgit/qui...pensource/fm/tree/jni/android_hardware_fm.cpp

The framework stuff that uses the JNI is at: https://www.codeaurora.org/cgit/quic/la/platform/vendor/qcom-opensource/fm/tree/qcom/fmradio
[Spirit FM] mikereidis:
Thanks for your support. :)

Sorry, it's just not going to work. Email mikereidis@gmail.com and I'll cancel your order.

Non-Sprint US models have FM permanently and purposely disabled in hardware.

FM is possible on the International LG G2 only. I can't enable it on Play without also enabling the US models.

I'll try to add a popup explanation for next release.
[Spirit FM] OneS Tester:
not working !

Not working in CM11 official nightly version

My phone: One S [KK 4.4.2]

Default settings: Power Error SU: 1 Fm:QCV Su:1 Bt:0 Ht:0 Mo:V4D

Changing Chip from debug option provides No FM accessible error with details- SU:2 Fm:BC3 Su:1 Bt:3 Ht:0 Mo: BCU Mo:BCU

I'd appreciate If anyone can suggest working configuration as OP put One S in working list.
[Spirit FM] ido135:
Ok

This is the reason why Samsung is not putting more FM radio chip flagship devices

Our studies show a trend shift of interest to digital broadcasting, specifically - focus on listening to music content in social networks or on the channel YouTube. The flagship model of our products are focused on customers who use digital content, which use modern formats and channels of information consumption.

Samsung recorded that reason on the Galaxy S4 but it is also valid to note 3

Samsung's flagship devices will be more FM radio only lower middle market instruments

I thought there would be FM radio on Galaxy S4 but it continued to Note 3 and the Galaxy S5 and in note 4 will not be

If it's important for people to FM radio Samsung devices can forget about it and have to look for another manufacturer
[Spirit FM] shaq1907:
Sony Xperia Z2, LG G2 and LG G Pro 2 has radio hardware. I think that LG G3 will also have it. I hope these models will help mikereidis to earn enough for supportting newer Spirit app.
[Spirit FM] chuksemma:
Verizon note 2

hello am new here... my samsung galaxy note 2 schi605 fran verizon doesnt have fm app will these work for me because I dont even know if it has the fm chip in built
[Spirit FM] LenAsh:
Should have FM support in hardware on that phone.
[Spirit FM] mikereidis:
The OneS uses a Qualcomm FM/combo chip with V4L driver (QCV). I guess you set it to Broadcom in second case.

If Spirit has SU then most likely is a kernel issue. FM needs the radio-iris-transport.ko file to load and your kernel might not have it.

Oh, I saw problems with CM11 on my OneXL with same FM. Every build after the January 4 snapshot seems to have a kernel with no modules loading abilities.

I don't recall anyone actually reporting this problem, so I've just stayed with CM11 Jan 4 and periodically retest with latest nightlies. Maybe a December build will work. The only custom kernel I could use was based on CM and had same problem. Unless it has something to do with HBoot etc, I'm surprised they haven't fixed this yet,
[Spirit FM] mikereidis:
The FM/BT combo chip is there, but Verizon always makes sure it's permanently hardware disabled. :(

So, no FM.
[Spirit FM] mikereidis:
:)

Yeah, me too.

On the plus side, a lot of Android enthusiasts posting online seem unimpressed with the GS5. And the Z2 is getting a lot of praise.

I was about to write "But custom ROMs are harder to find for Sony" but a quick look at the Zperia Z original dev section indicates there's a few AOSP ROM choices. Hmmm... But now I see most AOSP threads started recently, despite Z being out around a year now. Something was missing until recently ?

I'd love to support Sony more, if the market is there, and LG seems on a comeback. HTC I'm not liking so much anymore, in part due to locking out Spirit from unrooted stock ROMs, but FM is still widespread on their devices.

And I'd be happy to support Nokia too, except that they are budget Androids at this time.
[Spirit FM] OneS Tester:
It worked on old bubba kernel liike 18 Dec build but not working on latest builds after 7th Jan.

Have a look their changelog:

---------------------------------------------------------------------------------------

[JAN 07 2014]

build all module inside the kernel

---------------------------------------------------------------------------------------

Icecode, CM did same.

So I request OP to update Spirit FM accordingly.
[Spirit FM] Phanox:
What's the proper config for a Moto G XT1032 with Google Play Edition rom? I can't make it work, I get "Error: No FM accessible: SU: 1 Fm:SLS Su:1 Bt:0 Ht:0 Mo:SLS". I don't have it rooted, thanks in advance. :)
[Spirit FM] mikereidis:
Oh, so they eliminated all modules ? Hmm, is that part of SELinux etc. security going into AOSP or something ?

Do you have URLs to the changelog or discussion etc ?

I have never seen the Qualcomm FM driver work when it was built into the kernel.

The more generic but Qualcomm specific half of it, radio-iris, DOES have to be built into the kernel. The other half, radio-iris-transport, creates a "transport" via HCI to the FM.

But radio-iris-transport must always be a module radio-iris-transport.ko. I've seen several attempts before to build it into the kernel. It never works, for whatever reason in the source code or whatever.

If this is a problem, I think it's a problem in the FM driver, and one that I can't solve unless I dive into the kernel driver code, try to find a fix, then convince whoever maintains the kernels to take a patch, assuming there IS some fix.

But I've been trying hard for 3 years to avoid getting involved in kernels or ROMs. I have enough work already.

And I don't want to go patching Qualcomm's code when I presume their devs have thought long and hard about how to do it, and who share their work to open source, unlike others such as Exynos, NVidia and pretty much everyone else.
[Spirit FM] mikereidis:
FM is NOT dying.

The volume of email I receive shows no sign of a decline in interest in OTA FM.

What it DOES show is a decline in the ability to find good devices that support FM.

I continue to get at least 5 emails every day asking if their Nexus or Samsung or various other devices can support FM.

So many people don't check for FM before purchase. And some just assume it has FM, like their previous HTC or Samsung. As one woman put it "Why would they take away such a useful, basic bit of functionality". And others say the smartphone is supposed to be an ALL in one device, and they are right.

I wonder if a "Bring us back the FM" movement might have any success. Or at least a few nice web pages to promote FM friendly OEMs such as Sony and LG and identify the better choices in FM supported phones.
[Spirit FM] mervluk:
Mike, the problem with what customers want is that, as always, the marketing depts know better. They don't understand the tech, but they know what they like and "digital is better" is a nice neat message. The Android variety is a blessing and a curse too. Digital opens up cross-selling, which is what matters to the accountants too.

Government is addicted to money too. They eye the money they can make from the "more efficient" use of the FM spectrum for digital services. And none of us like paying taxes do we?

So FM is swimming against the (very) Big Business tide. Nothing wrong with that (I applaud it). But to pretend that the masses (who matter) care is, I fear, just delusional. FM has vigorous life left in it, but the climate is changing (and not for the better). It just doesn't generate the profits we all rely on everywhere (except, perhaps, North Korea). Quality loses out to quantity in the modern world, every time.
[Spirit FM] OneS Tester:
It seems IceCode also following Bubba.

Bubba kernel changelog:

http://xdaforums.com/showpost.php?p=37622087&postcount=2

You are correct, they must provide a patch if they dragged all module inside the kernel.

BTW, I don't have enough post count to reply in developer discussion thread otherwise I'd ask them.
[Spirit FM] Phanox:
Does anybody know? Sorry for asking.
[Spirit FM] mikereidis:
Sorry, I didn't see your post.

The phone needs to be rooted first.

You'll also need a December or later version of Spirit2 or Spirit1 Unlocked. The last free version of Spirit1 is from September and won't work.

Email me mikereidis@gmail.com if you're a customer.
[Spirit FM] mikereidis:
http://xdaforums.com/showpost.php?p=50668844&postcount=1893
[Spirit FM] mikereidis:
Spirit1 Unlocked Feb 27 beta is on Play for those signed up for Unlocked betas.

It's a subset of Spirit2 Feb 26 beta improvements. Spirit1 remains alive. :)

- Additions to device detection, mostly for devices that are not (/yet) officially supported, such as various Qualcomm based devices.

- GT-N7100 volume/balance fix. :) Works on CM 11. Requires kernel with this pseudo-file: /sys/kernel/debug/asoc/T0_WM1811/wm8994-codec/codec_reg . What's funny is how much the Note2 audio chip looks like the original Galaxy S WM8994.

- Hopeful fix for occasional microphone noise on GS3 and Note2.

- Built with my new build system on my new dev PC, so needs a "workout".

Thanks for your reports ! :)
[Spirit FM] CresCoJeff:
Should I invoke insmod from within my own program or from a root shell prior to running my program? I tried the latter with

adb shell "su -c 'insmod radio-iris-transport'"

and received the message

insmod: can't open 'radio-iris-transport'

Am I issuing the insmod command properly? I ran dmesg after receiving the message above, but it didn't contain any mention of insmod or radio-iris-transport.

thanks very much!
[Spirit FM] mikereidis:
insmod requires the full path and file name. modprobe should work like you show, without the ".ko" extension.

See, or use, /system/etc/init.qcom.fm.sh , which contains "insmod /system/lib/modules/radio-iris-transport.ko"

The rest of the stuff in /system/etc/init.qcom.fm.sh isn't important on modern devices, AFAICT.

Run "lsmod" after to ensure radio-iris-transport is loaded.
[Spirit FM] selemine:
i have two small issues.

why can't I use the quit button when the earphones are plugged of and why does the original Samsung fm sometimes start when I am already listening to spirit
[Spirit FM] mikereidis:
Spirit1 Unlocked Feb 28 beta is on Play for those signed up for Unlocked betas.

It has the above, plus:

- Broadcom devices with Bluedroid now automatically install the Bluedroid Shim for FM access with BT on, unless you specifically set Debug-> HCI Access to UART or one of the ancient techniques which are never needed on Bluedroid supporting Android versions.

- Qualcomm fixes for RDS PI/call letters and PT Program Type. They previously flashed briefly and quickly went away.

- LG G2 "non-digital audio" switched back from 48000 to 44100 sample-rate. Might be more stable or may make no difference

- MotoG default audio method now digital. Other options were not playing well with the CM11 FM app audio under-pinnings.
[Spirit FM] mikereidis:
Hi,

The Samsung OEM FM API shuts down when the headset is pulled. Spirit has never handled this properly, except at startup. This is partly due to relatively few people running Spirit on stock ROMs, where the stock app works.

A way around this is to root the phone, which allows low level APIs to be used.

Which phone do you have and which Android version or ROM ? And does this happen when media buttons are pressed or a widget is used or something you can identify ?

I've been testing mostly on CM11 AOSP and haven't tried any new stock ROMs in maybe a few months now. Tell me what you have and I can try to reproduce the problems.