yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Just run Spirit on a rooted device. It works automatically, no problem.

Spirit "runs" on just about every rooted device with a Broadcom chip. Nexus 7, US GS/GS2/GS3 etc. It starts up with no error in the Broadcom low level access mode. Very few people get a "No FM Chip/API" error with Spirit due to this.

Spirit doesn't need any kernel module for TI or Broadcom chips. It accesses via HCI sockets or directly to the BT/FM UART, after loading the firmware (patchram) HCD file that every device with working Bluetooth on the BCM chip has.

But RSSI is 0 or negative because the FM/combo chip FM antenna pin is grounded or not connected. Audio is also often a hurdle but you need signal first.
[Spirit FM] mikereidis:
It was almost ready and then the need for a background audio server sucked a full day away.

Now I need to consider how the 4-5 major components will relate to each other. This is the most important part of the design IMO, and the impacts will be long lasting. But I can prototype a bit more without committing long term too.

Maybe a few days ?

It will support Galaxy S2 GT-I9100 and S2 GT-9300, as well as Notes GT-N7000 and GT-N7100. Maybe Galaxy S GT-I9000 too. These all have the same FM chip, and will be all for the first month at least. After that maybe HTX OneX LTE, OneS and Evo 4G LTE.

It will be freely distributable and support RDS. I won't be in any rush to add features or fix bugs.

EDIT: I keep having seconds thoughts about "free". My income went from sub-poverty to decent when Spirit moved more towards pay and less to free. Probably future versions won't be free at some point.
[Spirit FM] mikereidis:
I've had similar reports of low signal strength with Spirit, and a few claiming it was better with Spirit, but except for a major old Motorola issue, and a "speaker mode" is worse report on a Bionic, I've never been able to confirm such a problem.

Is speaker mode different than headset mode ?

In cases where someone flashed back a stock ROM, it was found that the stock app did the same. Is this what you've tested ? Or are you relying on perceptions by memory ?

It would be great if you could run a stock derived ROM and more directly compare Spirit and the stock FM app, within minutes of each other. Run with SU/root denied to get Spirit to use the same API as the stock app. Then run Spirit with SU and with Bluetooth off so it goes into a low level mode.

Headset jacks, plugs and wires go bad eventually, due to all the use they get. And components age or get hit with lightning related or power surges.
[Spirit FM] dreccon:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

If so, then how come spirit fm runs so well on a stock Gingerbread LG P920 (Optimus 3D) and on the same device with CM10 it gives a power error? If it accesses the hardware directly, it should be working on both.

Sent from my 3D Jellybean phone
[Spirit FM] mikereidis:
On a custom ROM, power errors are usually only due to lack of SU. There have been many broken or misconfigured versions of SU, SuperUser, SuperSU I've had to deal with over the last year.

Beyond that, ICS/JB custom ROMs often have Bluetooth running all the time, under the covers, and this has given me some grief too.

And some ROMs have had TI firmware files, or other characteristics that confused Spirit about what FM chip is available. But I think this is mostly fixed now.

Beyond that, I dunno, and I'm not going to investigate when audio doesn't work anyway.
[Spirit FM] :
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Any screenshots for us here while waiting?
[Spirit FM] DeusEx80:
@mikereidis

On CM10.1 there are these commits about "Add support for FM Radio in Android" (Changelog Galaxy S CM10.1):

http://review.cyanogenmod.org/#/c/30654/

http://review.cyanogenmod.org/#/c/31144/

http://review.cyanogenmod.org/#/c/30658/

http://review.cyanogenmod.org/#/c/31138/

http://review.cyanogenmod.org/#/c/30655/

http://review.cyanogenmod.org/#/c/30652/

Change something for your app?
[Spirit FM] black_bottom:
flash back to stock ;) sir ... hmmm.. what I can say is that with stock I never mentioned, never heard noisy radiostations with the sensation. now with a custom rom I bought your app and I encounter some distortion in the radio reception. but I understand what you want to say ;)

perhaps we can go step by step to improve it.

above the frequency bar there is a symbol and a number for signal strenght, isn't it? that number show me roundabout "50". I dont know if this is strong or weak - what do you think ? Up from which level you would say radio reception it is free of distortion? Bigger then "75" or more?

whatever radiostation I choice - I do not get more then "55". I live in the center of berlin (I think a big city ..), trying different places, different stations - no improvement.

is there over all something in the settings to improve signal strenght? I set it to "germany". anything more to try?
[Spirit FM] posixguard:
Turkcell Maxi Plus ( Zte Qualcomm 7x25A )

Hi,

fmconfig is working for me, RDS texts are coming to terminal application.

But i can't get sound & RDS from Spirit FM, signal is at 40-55.

My chipset is qualcomm msm 7x25A.
[Spirit FM] badelemental:
Bug report

Phone: Galaxy Note 2 (N7100) International version

OS: CM10.1 Nightly

BUG: In the loudspeaker volume is too low. I am unable to hear unless i keep my ear near the loudspeaker. But if i play it in earphone volume is just fine.
[Spirit FM] coloxim:
R: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM chi

Hi mike... I've bought your app for my old phone.. Now I've nexus4 and I can't read all pages...

There is no possibility for radio fm on it?

Thanks..

Inviato dal mio Nexus 4 con Tapatalk 2
[Spirit FM] mikereidis:
Nothing worth looking at and it will be some time until it looks much prettier.

It's mostly Spirit1 without graphic sliders or Menu button and with the 3x3 preset buttons replaced with 4x4 buttons to test various things.
[Spirit FM] mikereidis:
Nexus 4 appears incapable, despite a custom kernel built to enable the FM driver. RSSI is always -16 or so. Antenna pin likely disconnected, and same on Optimus G.
[Spirit FM] mikereidis:
Change ? No.

From here: http://xdaforums.com/showpost.php?p=37262706&postcount=5252
[Spirit FM] mikereidis:
50 is quite good. 20-30 is usually the minimum for decent reception.

You may be experiencing audio distortion, unrelated to signal strength.

Please send me a debug log with Menu-> Email Logs after turning to a strong station. After 20 seconds press Send.

I'll send you the Unlocked version, and I'd like to know if RDS is working OK. If RDS is OK, there is absolutely no problem with the radio signal. RDS always shows some errors, even with the strongest signals.

Moving the antenna to minimize the RDS error rate is a better way to increase audio quality than simply trying to get maximum RSSI. One of these days I'll expose these statistics in the app instead of just in the logs.
[Spirit FM] mikereidis:
I don't support ZTE or Huawei because most of their users use a pirated Spirit.

If you're a customer, send me a debug log with Menu-> Email Logs.
[Spirit FM] mikereidis:
I'm running CM10.1 nightly Jan 24 on my GS3 and speaker can go TOO loud, and my hearing isn't that good; in fact I've had at least one complaint and added a debug solution to lower volume.

AFAIK, GS3 has pretty much identical FM and audio hardware as Note2.

If you're a customer, please adjust volume midway and send me a debug log with Menu-> Email Logs.

Some audio apps, such as volume boosters, do low level things (like Spirit) that can cause bad interactions of some sort.
[Spirit FM] DeathArrow:
Will this app work on LG e400 with CM9? It has WCN2243 radio, the same chip in some phones listed as supported.
[Spirit FM] posixguard:
if you don't know it will work or not, how you can buy it? Whatever, thanks anyway.
[Spirit FM] mikereidis:
There is no audio, same as for most other LGs.
[Spirit FM] mikereidis:
You can test with the free version at the top of post 1.

And you can rely on my policy of cancelling any order at any time, on request.

I get about 1 cancel request a day, and about half are people upgrading from Light to Unlocked for the price difference. There seems to be no year limit on cancels.
[Spirit FM] mikereidis:
Jan 31, 2013 Free: http://d-h.st/xAN

Paid versions also on Play.

- Changed paid version Menu-> Email Logs to Menu-> Test-> Email-> Logs . This is to reduce the dozen pirate email logs I get every day.

- Various audio adjustments.
[Spirit FM] rucxy:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Since Tue Jan 29 09:08:58 UTC 2013

development

•*7973971 FM Radio: Add support for FM Radio in Android

frameworks/av

•*69d8d46 FM Radio: Add support for FM Radio in Android

frameworks/native

•*f13a380 Merge "FM Radio: Add support for FM Radio in Android" into cm-10.1

hardware/libhardware

•*09c0110 Merge "FM Radio: Add support for FM Radio in Android" into cm-10.1

hardware/libhardware_legacy

•*4ab7bb4 STE_FMRDIO:enable STE_FM radio

hardware/qcom/audio-caf

•*918d40e Revert "alsa_sound:Resample proxy ouput for other than 48KHz samplerate"

kernel/samsung/smdk4210

•*3ae89bc fix permission issue which prevents "active tasks" shown in

system/core

•*4900c5c Merge "FM Radio: Add support for FM Radio in Android" into cm-10.1.

Release notes for CM10.1 30-1-13 nightly.

Downloading now and will be testing soon.

Hope this maybe of help.

SII GT-I9100T Supercomputer.

Dorimanx kernel 7.45.

CM10.1 JB4.2.1 28-1-13nightly.

Modem I9100 DOLP4
[Spirit FM] mikereidis:
:)

See next post/page.
[Spirit FM] mikereidis:
It looks as if CM will be officially adopting the "ST-Ericssonn / Sony Proposed Android FM API".

That's great news for Spirit, Spirit2 and users of all ROMs that want better over the air FM radio support !! :)

CyanogenMod: "FM Support for CM 9, 10.0 and 10.1"

https://plus.google.com/+CyanogenMod/posts/hfX9jRUi7CL

My comment there:

I'm the dev of the Spirit FM radio app for custom ROMs and I'm very happy to hear this news. See my XDA thread for a free version and lots more info.

Spirit currently supports this API, and Spirit2 currently in development is based on this API alone. I've built an FM plugin for Samsung si470x FM chip devices like GS / GS2 / GS3 etc. I expect to release a free Spirit2 alpha soon with RDS support.

I don't care so much about "competition" for my paid / donor apps because I want to see a better "eco-system". There aren't enough hours in the day for me to continue writing every piece of low level code myself, and the proper place for low level audio code is in the audio libraries. More than 50% of my work is related to audio problems / conflicts, and I'll be very happy to be able to concentrate more on features and UI than low level headaches.

Thanks ! :)

EDIT: And since I posted this there, here's the GS/GS2/GS3 FM libfmradio.ssl_rx.so plugin I have working now with the Spirit2 pre-alpha : http://d-h.st/81l

In theory, any existing or newly created app using this API should be able to use that plugin on GSx devices. Audio support is another matter though.

Spirit2 1st alpha release expected any hour or day now...
[Spirit FM] mikereidis:
First alpha release of Spirit2: Feb 1, 2013

From the intro dialog you get until you change the frequency:

- It is free and freely re-distributable (with attribution and without modification) and copyright 2011-2013 Michael A. Reid, all rights reserved.

BUT I really, REALLY think it's a bad idea to include a first alpha release into a ROM.

Future versions may not be free or re-distributable. I make no guarantee of anything.

- There are two APKs to the "app", for now at least. BOTH must be installed !!

EDIT: First Spirit2 alpha files removed. See 2nd or latest alpha as linked in post 1.

AFM is 2 background services, one for the Android FM tuner API, the other for everything else: http://d-h.st/dvn

S2 is the app/UI: http://d-h.st/c0K

- Note Galaxy S GT-I9000 still has the speaker damage risk issue explained in excruciating detail in post 3 of this thread. And actually audio doesn't seem to work well now on I9000 anyway.

- Layout for now is same as Spirit1, without graphic sliders, and with the 3x3 preset box replaced with a 4x4 test function box most of you shouldn't touch. It's meant to be functional for now, not pretty.

- You must press the power key to start FM.

- Sometimes you may need a Pause/Play to get audio back. Pause/play and speaker/headset buttons can be wrong on return to app.

- RDS works, but only on main app UI screen, unlike Spirit1 Unlocked which puts RDS and frequency info on lockscreen and notification window.

- Band / de-emphasis defaults to EU (not North America). For North America, hitting FM stop button, followed many seconds later by FM start, may switch.

- Lockscreen pause/play control works; next & previous do nothing.

- Headset cable media buttons work for pause/play and volume adjust.

- Audio notifications and phone call interruptions seem to be OK, but I only tested one incoming phone call.

- Sometimes RDS and RSSI information might take a while to come through after returning to the app.

- Frequency button is often wrong.

- There are no settings; phone detection is automatic for supported devices. Only the current frequency is saved and restored.

- Stereo/mono seems to flicker sometimes.

REPEAT: Do NOT give me bug reports at this time. It will just push my schedule farther back if you expect me to process reports or estimate schedules or if I get drowned in feature requests.

If you want to give me a simple: "It works on XYZ phone/ROM" or "It creates audio problems", go ahead, but expect me to mostly just nod my head and move on.

There's more than enough info in this thread, linked from post 1 and by searching. Give me plenty of time to create a quality app with all the bugs I can find on my own fixed or at least acknowledged first.

Thanks ! :)
[Spirit FM] :
It works on S3 Gt-i9300 Rootbox v3.6 - no audio problem
[Spirit FM] coloxim:
R: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM chi

Bad news... Anyway thank you...

Inviato dal mio Nexus 4 con Tapatalk 2
[Spirit FM] katsooba:
Hi

installed the free version on the SGS2 9100G on latest CM10.1

and cant seem to change stations, no matter what band i set, it just on 1 station no matter what frequency i choose?

pls help

im from Israel
[Spirit FM] black_bottom:
hi mike, email is on the way to you. my rom ist CM10 kang from 09.01.2013. signal strength was ~62 ! thx rainer
[Spirit FM] amtomio2004:
Is doesnt work for me
[Spirit FM] mikereidis:
I presume you mean Spirit1. Is there audio with static ? Strange... perhaps the FM driver was broken even further.

Menu Test Email Logs.
[Spirit FM] mikereidis:
You quoted an almost 2 year old post, #10 in this thread on page 1.
[Spirit FM] eduh:
Galaxy S I9000, CM10.1 (01/31/2013):

Using Spirit1 free (01/31/2013) with Audio-> Method to "Digital GS1" works fine, but with the Spirit2 the signal level, name of the station, music playing and other information appear on the display however no audio.

I'm in Brazil.

Thanks
[Spirit FM] katsooba:
spirit1, yes

i guess that only the first most station plays as its the first band in the scale, when i used "world" band setup

the reception stuck to "-1"

i will email the logs

Thank you!
[Spirit FM] mikereidis:
Motorola Razr I bad news I posted on the Razr I FM thread: http://xdaforums.com/showthread.php?p=37476221
[Spirit FM] mikereidis:
Several people have now reported similar GT-I9100G problems with tuning / distortion.

I'm waiting to hear if it's a problem with Spirit Jan 31 release or if something is broken / changed in CM.
[Spirit FM] katsooba:
afaik, there were some changes made to better the FM compatibility in latest nightlies, maybe they changed something that affects your app?

like here

http://changelog.bbqdroid.org/#i9100g/cm10.1/1359536445
[Spirit FM] 0kti:
Odp: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM c

Delete it

Sent from my SGS+
[Spirit FM] mikereidis:
I made a big post about this on the previous page: http://xdaforums.com/showpost.php?p=37434422&postcount=5291

It's not related; it's just for some Sony Free Xperia devices, for now at least. The CM changelogs for every device changes, even though it only affects a few devices.
[Spirit FM] mikereidis:
Feb 3 Free: http://d-h.st/BA7

GT-I9100g mods:

- It turns out the 9100G CM is using a VERY old circa 2009 Samsung FM driver. It uses Ioctl numbers that were stupidly re-used in newer drivers for different functions.

I made changes to automatically detect and deal with that. This should enable RSSI and RDS and likely fixes other things. AFAICT previous releases may have been unable to select Mono/Stereo or Band de-emphasis properly.

Audio changes were made though that might cause some volume problems. If so you can try setting Debug-> BC 4330/20780 to "Disable" and restart Spirit. You could also try setting Debug-> External Volume to values between 1 and 28-30 and restarting Spirit.

I've had a recent report that on the second start, tuning is stuck on a low frequency. I hope this will fix that.

I've also had a report of problems with FM audio not returning after an audio notification. I've heard that pause/play might restore it for 3 seconds and that speaker/headset might restore properly.

Please let me know of any remaining GT-I9100G issue.
[Spirit FM] Angelcho:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Yesterday a new cm nightly was released for the e400 with FM radio drivers... can you make it work in the next update ?
[Spirit FM] DeathArrow:
But can you try to fix it if you have some time? I think many people have LGs with Qualcomm CPUs.
[Spirit FM] mikereidis:
I don't have any time.
[Spirit FM] mikereidis:
Spirit2 second alpha: http://d-h.st/AvS

A reminder: WARNING !!!: GalaxyS GT-I9000 has speaker DAMAGE RISK as with Spirit1 !!! Do NOT use on GalaxyS, or any device unless you understand and accept all risk.

I've decided it's working WAY too well now to release with full RDS as a free app. So unless you have a license file from me, RDS will only work for 60 seconds, unless you turn FM off and on again.

I don't have the time to enumerate everything that is now enabled or fixed. Suffice it to say it's very functional now, and in a single APK.

Galaxy S should work reasonably well, with some audio issues here and there, as well as the longstanding speaker damage risk issue.

---

I can't count how many times I've edited the code and rebuilt today to address every little perplexing bug I found; each little feature in 10-100 lines of code seems so simple, but when combined with scores of other features that interact in unexpected ways, it's amazing how many ways software can break, LOL.
[Spirit FM] :
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

second alpha working
[Spirit FM] rhisendark:
any news for mini 2 cm10 ?
[Spirit FM] sh0ne:
Needs more powwer than display...

When Spirit FM is running, its using Mediaserver Service and its sucking up the battery... 30min - 12% of 2000mAh

Is there a setting to turn the leak off?
[Spirit FM] Lagkage:
How do I obtain such a file? Thanks.
[Spirit FM] sh0ne:
Here is an Example of Battery Killer

Screen was taken when I stopped hearing FM. Its Using definitelly the Mediaserver
[Spirit FM] Kess78:
Hi Mike,

Wich version of Android does Spirit 2 require ?

I can't install the APK on Xperia Sola with stock ICS :(

Thanks
[Spirit FM] 0kti:
Odp: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM c

JB 4.2

Sent from SGS+ CM10 with Tapatalk Blue
[Spirit FM] mikereidis:
Yes, Debug-> Silent Loop Off.

That causes FM audio to stop on some devices, and background volume control is lost on most.

Some devices can use Debug-> Play Audiotrack as an alternative with various results and potential issues.
[Spirit FM] gwils:
LG E510 Hub

Hi, anyone has a LG hub ( E510 ), what settings did you use. It was said to use msm7x30 sysfs, but the spirit fm i'm using doesn't have that one, and all the other msm7x30's options dont work. some iv'e tried even reboots my phone.

I'm seeing the name of my local radio stations displaying on screen, but i get no audio (headphones plug in)
[Spirit FM] mikereidis:
Any customer can email me for this.
[Spirit FM] mikereidis:
The 2nd alpha is limited to JB, both 4.1 and 4.2. The 1st was limited to 4.2 only.

These are artificial limitations so far. Those with JB custom ROMs are most likely to be able to handle an alpha level app, and read instructions on what devices will work. There will always be people saying "It doesn't work on my stock GB Motorola !" etc.

I think Honeycomb 3.0 is the REAL minimum, but I'm trying to take advantage of the latest APIs too.

Once I test and ensure it works on my Xperia P, I'll make an ICS build and send it to you. My Xperia P is stock ICS, so I'll have to lower it to ICS compat. I guess I'll get to try stock JB at some point too.

Anyway, there's almost nothing visibly better in Spirit2 currently than Spirit1 Unlocked. The main exception is the ability to use an alarm clock type app to fire off an Intent or two to start FM. But I haven't tested this yet & will likely need to tweak it a bit. And I have it setup so SU is only needed once after bootup, eliminating all those annoying SU popup messages.
[Spirit FM] mikereidis:
If you're a customer, email me.

If you're not a customer, you are most likely running a pirated copy of Unlocked, unless you are in some "special circumstance".

The piracy and "almost nobody pays when it's free" issues are precisely why I've decided not to make full Spirit2 capabilities freely available. It's also related to why I'm unable and unwilling to support budget phones better.
[Spirit FM] 0kti:
Odp: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM c

Shame that spirit2 don't have for now i9001 audio support. Looks great. Happy s1 unlocked user ;)

Sent from SGS+ CM10 with Tapatalk Blue
[Spirit FM] mikereidis:
G version of Galaxy S2: GT-I9100g

Several people have reported being unable to tune after running Spirit once after a reboot. This is on latest CM10 nightlies at least.

I need assistance in seeing if certain releases of Spirit work OK. I think Dec. 21 works, and Jan 4 may not work.

Please email me mikereidis @ gmail.com as usual and I'll send several releases to try.

Note that RDS & RSSI seem to be working now, but this tuning problem persists. It's perplexing as there were no changes in the FM chip code from Dec 21 until the RDS / RSSI fix that I hoped would fix this issue also.

One person says changing from Audio Method for 9100g to automatic and back to 9100g fixed it. Another may have said the same for Silent Loop: on, off, on. so maybe just running the settings screens has an effect.

Thanks !
[Spirit FM] sh0ne:
Hmmm never did this before, where?

At 1st its BETTER the Spirit FM Pro, why? -> Got better Quality and more FM Stations

2nd: Here is an other screen, btw. where Can I do that ?:

Debug-> Silent Loop Off

?

Cheers & Thanks
[Spirit FM] mikereidis:
I haven't seen that. Are the RSSI numbers at top left about the same on the same stations ?

You can't. I didn't realize you were talking about Spirit2.

If anyone posts or emails about Spirit2, please specify Spirit2.
[Spirit FM] mikereidis:
Next post...