yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mirzvezda:
frequency range

Hi Mike, first of all I do love this app and yes got the unlocked version on my SG note.

How ever I am wondering what frequency range can be listened to on devices like mine? Is it just in the 70 to 110 MHz band or would it be capable to tune in to lower frequencies aswell (provided that there is a tuner app to it with) I hope you can shed some light on this for me thanks in advance :) Cheers!
[Spirit FM] mikereidis:
Hi, Do you have emergency services in your area around 70-80+ MHz ? That seems common around Germany at least.

The si4709 FM chip and it's driver in Galaxy S/S2/Player/Note supports 76-108 MHz: http://www.silabs.com/products/audiovideo/fmreceivers/Pages/Si470809.aspx

Setting Regional Band = Japan gets you 76-90.

The si4705 in Galaxy S3 and Note2 goes down farther to 64 MHz: http://www.silabs.com/products/audiovideo/fmreceivers/Pages/Si470405.aspx

Some other newer FM chips, such as BCM433x or CG2900, also go down to around 65 MHz & I think this helps to support China FM, as well as older Eastern Europe frequencies.

But even if the chip goes lower, that doesn't guarantee the driver will.

I think even the US might go lower than the usual 87.5 in future by making use of some vacated TV channels from 2-6.

AFAICT no FM chip goes above 108. It would be nice to find a chip that was wide open from 30-200 or so. There's at least one cheap common TV chip that is very wide band and is used in cheap software defined radios. And some cheap, obscure (here in the "West") Chinese phones have this chip.
[Spirit FM] audaxrandonneur:
HTC One X - loosing audio with ending of SpiritFM

First of all I would like to say thank you for this fantastic app. I started using it on my Desire and still using it on my One X (GSM).

In the meantime I run into some inconvineance. I searched the forum for a solution but did not find any:

On OrDroid 9.0 (JB) CustomRom the whole audio is sometimes completly killed when exiting SpiritFM. The only solution I found is to reboot the device. Are the any known workarounds out there?
[Spirit FM] mikereidis:
The usual workaround is to enable Debug-> Power Restart Media. This should reset the audio system when FM/Spirit is turned off. It's a "hack" but usually works.

So, this ROM ? : http://xdaforums.com/showthread.php?t=1836919

EDIT: Was going to flash on my OneX International, but I don't want to deal with relocking and reunlocking my boatloader tonight.
[Spirit FM] mikereidis:
From other thread:

You mean Desire S ? Custom ICS or JB AOSP based ROM with no stock FM app I presume ?

Try enabling Debug-> Suppress System Sounds and restart Spirit. If there are any other less common quick audio clicks or noises that might play while FM is running, either disable them or avoid them. For example, taking a picture will sound a click and cause trouble.

It's probably like the Desire HD & Z with the AIC3254 codec. They can't handle FM audio and other audio at the same time.

The open source audio HAL libraries don't support FM audio, so Spirit has to bypass them. But they don't "know" that FM is running, it creates an error and they never recover.

If you still have an audio problem after FM off, then enable Debug-> Power Restart Media.
[Spirit FM] mikereidis:
Spirit documentation Nov 23, 2012: http://d-h.st/TxN

Introduction

Quick Start: Startup & Trouble-shooting

Settings

Next Gen: Spirit2 (and see next post)

Dec 19 Spirit2 detailed design: http://xdaforums.com/showthread.php?p=35571087

Play Description: https://play.google.com/store/apps/details?id=com.mikersmicros.fm_unlock

First 3 posts: http://xdaforums.com/showthread.php?p=13380058

Old compatibility list: http://xdaforums.com/showthread.php?p=34028503

FAQ: http://xdaforums.com/showthread.php?t=1059296&page=447
[Spirit FM] Metallico:
Great news man!

Keep going!

Hell Yeah!

Enviado desde mi GT-I9100G usando Tapatalk 2
[Spirit FM] dboechat:
Great news! I already have Spirit Unlocked but I'm willing to pay again for Spirit 2. :)
[Spirit FM] mikereidis:
:)

But please consider more popular devices for Spirit2.

I have serious doubts about GT-i9100G. I need a physical device for Spirit2 support, and all the 9100G sales I've had won't even pay for a used one on EBay yet.

As a plus, 9100G OMAP is open-ish, and it looks like FM record might be possible (as long as all other audio functions are unused).

I've even been on the edge deciding about GS2 GT-i9100, despite it being the most popular Spirit phone, at 30% of sales. But that, and the discovery the other day that SGS2 CAN do FM recording combined to cement the decision.

The future next year, IMO, belongs to SGS3, Note2 and S4/S4+ based devices like OneS/X LTE, Optimus G and Maxx HD.

But devices like SGS2 and Note, that are getting stock JB soon, are still pretty important I think.
[Spirit FM] Metallico:
Ok, but im happy for your and because your work is going forward.

Btw: i will change my phone some day :D

Best regards, from Uruguay

Enviado desde mi GT-I9100G usando Tapatalk 2
[Spirit FM] iCole:
Is anyone else unable to download the latest version from dev-host? Every time I click Download I just get redirected to main page of dev-host and no download starts.
[Spirit FM] mikereidis:
November 19 here ? : http://d-h.st/yEc

Works for me.

I just saw download count go from 406 to 407, so it's working for many people.
[Spirit FM] audaxrandonneur:
I hadn't checked that out. Thanks for this.:)

Works pretty decent now!

Gesendet von meinem HTC One X mit Tapatalk 2
[Spirit FM] wtel:
Hi Mike, would you consider supporting devices using MediaTek's MT6620 chips? I think it's getting popular (at least for China devices).

If you are interested, I'm using ZTE V970 and I think can provide you the original FM APK (which is not obfuscated) with the native library.
[Spirit FM] dr.devman:
Even on tmo gs3?
[Spirit FM] mikereidis:
Yes.

All US GS2s, GS3s, Notes, Note2s have NO usable FM.

Same for GS, except I think one obscure carrier like Boost had a GT-i9000.

You can "thank" your carriers, the electronics industry people who reject laws that would force FM capability, and the politicians who listen to them, and their partners, instead of the NAB and their partners.

There must be something special about the US (and allied Canadian carriers etc. too) that would make the phone OEMs and carriers and Google and Apple suffer terribly, whereas the rest of the world has no problem with the "costs" associated with FM capability. And has no need for laws forcing this "outrage".

But who knows, in a world where Google may finally be blessing FM in AOSP, and where the NAB might even pay the "suffering parties" for FM, maybe something will change soon-ish.

Or maybe Google is just trying to compete with the FM capabilities in WinPhone8, Blackberries, and Mozilla's Boot 2 Gecko even...
[Spirit FM] mikereidis:
None of the OEM FM apps are obfuscated, that I've seen. They don't sell the apps.

Unless you see a file like libfmradio.mtk6620.so in /system/lib, then I'm not interested. That would indicate the AOSP Android FM API that Spirit2 is focused on.

Outside of Hong Kong, my income from China is about $0.

The best, quickest pirate hacks of Spirit are from China.

Every day I get a dozen or so pirate debug logs etc. from China.

I'd be crazy to support China oriented products, or Chinese language translations, if only because I'd get a ton more email from non-customers.

Even if it were popular outside China, if it's market was cheap devices, that's an area I've decided isn't worth it. I've even considered trying to make sure Spirit2 won't work on un-supported devices.

If the above makes me sound like a raving capitalist, perhaps I can ameliorate that a bit...

I'm considering releasing Spirit2 freely, with all features. It's like, the only way to not feel pirated, is to "give it away" and allow redistribution I guess.

I can still sell the same app on Play; honest, appreciative people who appreciate support pay, regardless that they could find Spirit Unlocked "free" with a quick Google search.

I think that might have little effect on income, and may even increase it, who knows ? Anyway, it's worth trying for a month or 2 at least.

And I'm still looking to focus support on a smaller number of high end devices, so that doesn't mean it will help all the people with cheaper phones. But since Spirit2 will support plugins, maybe some enterprising developer might develop plugins for chips and audio systems I don't support.

Already I wonder about supporting rarer, cheap Sony's, despite that I now have Spirit1 working on some, using ST-Ericssons variant of the proposed Android FM API. And without root, so I'm back looking at "normal people", with stock un-rooted phones as possible customers. "Normal people" tend to need more hand-holding support, and are pickier comparing Spirit with their stock app, and they have little or no appreciation for the difficulty of it. That said, the API does make it pretty simple. It's all the stuff underneath that's hard.
[Spirit FM] wtel:
All I can find are libfmjni.so and some libfmmt66XX.so files, so that's proprietary I guess.

Sad but piracy is really serious in China and it's not gonna improve shortly.

Anyway thanks for your reply.
[Spirit FM] mikereidis:
Google "libfmmt66XX.so" and all I find is your post, LOL.

Looked at libfmjni.so and have seen it before. We'd have a chance at partial support if they used the V4L standard. But they have some special device at /dev/fm it seems.

I can take piracy personally some times, particularly when a pirate asks for tech support. But it's just part of the "game", some cultures don't recognize IP or other property rights. And there's truth IMO that someone could wouldn't buy or couldn't afford anyway isn't really depriving a dev of anything meaningful, unless they try to "steal my time".

Then again, there's many who just use "testing before buying" as a perpetual excuse, along with "I can't afford this week, wait til next week". Then later it's the "greedy dev's" own fault for pricing too high, LOL. I've converted about 3-4 into customers, but those rare exceptions.
[Spirit FM] :
Working as usual for g version running cm10.1 jb4.2
[Spirit FM] Temporeiches:
Hello,

Does anyone know how to set this app up for usage on the HTC Legend? I am running CM10.

Thank you in advance.
[Spirit FM] mikereidis:
Should be pretty much automatic. Legend was my first Android phone and I still have it, but don't test too often anymore.

Turn Bluetooth on manually, if it doesn't start automatically, or just to try.

Set Audio-> Method to either of the first 2 "msm7x30" settings, on latest releases "msm7x30 direct HTC" or "msm7x30 HTC".

If still no luck, see the FAQ: http://xdaforums.com/showpost.php?p=31983151&postcount=4465
[Spirit FM] mikereidis:
November 26 Free: http://d-h.st/7xA

- Squelch function, mostly intended for listening to sporadic emergency service broadcasts (Japan band in Germany), but may also be useful for anyone who wants audio muted when RSSI is low.

Set Menu-> Settings-> Alternate Frequency/Squelch-> AF Mode to "Squelch". Ensure Alt Freq = 0 and set AF RSSI Threshold to desired RSSI value. Default 16 seems OK on most FM chips.

Now, the RSSI will be checked every 0.5 seconds by default. Set AF Period to desired period in milliseconds to set. If RSSI is low, audio is muted, if high, un-muted.

This might be interfered with somewhat by phone calls or audio notifications. Last minute Spirit1 feature addition, so if it doesn't work well I may not fix it.

- Lower volume range on si470x FM chips on Galaxy S/S2/S3 etc. Enable by Debug-> Samsung SL Volume Lower. Some devices, like GT-i91001 GS+ might have volume way too loud. Lowers by 30db.

- Unofficial support for probably many stock, unrooted Sony 2012 devices using the "Radio3.apk" API, which is effectively the ST-Ericsson proposed Android FM API in AOSP that Spirit2 will be based on.

Note that unofficial means I don't plan to enable these devices on Play, but if it works well, I might. There's just so darn few of these devices sold I'm not sure I want the hassles associated with supporting them, for the minimal returns.

FreeXperia and other AOSP based ROMs don't seem to have the needed framework and libs though. I'd think the S4/S4+ devices should work rooted with the OneX LTE etc support, but nobody has reported yet.

Should work on these with cg2900 (libfmradio.cg2900.so):

Xperia U ST25i

Xperia Sola MT27i

Xperia Go ST27i

Xperia P LT22i

These with broadcom proprietary (libfmradio.brcm-prop_rx.so):

Xperia S LT26i ?

Xperia Acro S

Xperia Ion

Not sure about Xperia Miro, Tipo, J.

These with Qualcomm WCN3660 (libfmradio.sony-iris.so):

Xperia T LT30p

Xperia TX LT29i

Xperia V LT25i

Probably the coming S4+ 5" and other future devices
[Spirit FM] ramjet73:
I'm testing the "November 19 Spirit FM Radio Free" version on the Evo 3D (CDMA) running mazda's AOKP ROM. When I turn on the radio it activates the bluetooth icon, which is good since I know the FM radio shares a chipset with that radio, and I get signal indicator of 28-30 in the upper left hand corner but no audio using the speaker or headphone jack. Mute is off and media volume is all the way up, and I didn't see a separate volume control on the the app.

Any suggestions for other things to check?

ramjet73
[Spirit FM] mikereidis:
It's usually automatic, but you can try setting Audio-> Method to "qdsp5v2 Plus AIC". Or try the other "qdsp5v2..." methods. Or the "HTC..." methods, but I doubt it.

The Evo 3D generally works, stock un-rooted or not, so I'm not sure why it wouldn't work for you.
[Spirit FM] Temporeiches:
Thank you
[Spirit FM] ramjet73:
Thanks for the feedback but none of those settings made a difference.

I tested the same version of Spirit FM on MeanROM ICS 2.6 and the audio worked so it must be a ROM dependency. MeanROM has the HTC FM radio built-in but some users are looking for something that will work with AOSP based ROM's.

ramjet73
[Spirit FM] mikereidis:
Make sure Spirit has SU/root. I've seen a LOT of problems due to SU not being granted, perhaps because some ROMs configure SU to be more secure.

Spirit1 can generally work on stock or stock-derived, un-rooted ROMs or AOSP type ROMs with no framework or library support for FM.

If not set automatically, stock HTC ROMs can be accommodated with Debug-> FM API set to "OEM Proprietary" and Audio-> Method set to "HTC" (with a further sub-method at Debug->HTC).

And AOSP type ROMs (or stock, for special needs) can use Debug-> FM API set to "Low Level" and Audio-> Method set to low level methods such as the "qdsp..." methods.

Send me a debug log and I can look. Use Menu-> Test-> Email-> Logs and after 20 seconds press Send. File is /sdcard/sprt_debug.txt if no email.
[Spirit FM] ramjet73:
You got it. Let me know if you need anything else.

Edit: Attached zip file to this post in case you don't get email.

ramjet73
[Spirit FM] mikereidis:
Your logs look good, including kernel log.

Only thought I have is to set Debug-> Power Restart Media to "Disable" and reboot the phone. Sometimes audio doesn't work right after this reset, which is intended to fix problems.

But before that I suggest clearing all settings to default, by remove and re-install, or just clearing the app data.
[Spirit FM] ramjet73:
Tried that with no luck. :(

I can play a track in Apollo fine and when I start Spirit FM it automatically pause the music, but still no audio from the FM radio.

Might try again later on another AOSP ROM to see if the results are the same. The one I'm using now is AOKP based which is a little different than the CM ROM's.

Thanks for your help.

ramjet73
[Spirit FM] nemanja066:
No plan spirit2 for legend samsung GT-I9000 :(
[Spirit FM] Midomad:
I wonder?

Envoyé depuis mon GT-I9000 avec Tapatalk
[Spirit FM] MatzeX01:
Squelch

Hello,

maybe anyone can help me with my squelch problem:

As requested Mike Reid enabled a squelch function.

Well, I listen to a german emergency service broadcast. Theres a noise about 22-24 RSSI, when no one is speaking. When someone is speaking the RSSI is about 47-50.

So i turned Alternate Frequency to "Squelch", set Alt Freq 1 and 2 to "0" and set the RSSI Threshold to 30.

That should be right?

Because it doesnt take any effect.

I dont know where the problem is.

Thanks for your help and sorry for my bad english ;)

Regards

MatzeX01
[Spirit FM] mikereidis:
BTW, what's the interesting frequency range in Germany ? Just Germany, or any nearby countries too ? I've read some Eastern European countries used to broadcast below 87.5 MHz and some may still do so. Any good online reference for this ?

22-24 is pretty high for no signal. Usually I don't see numbers higher than 2-3 or so.

Regardless, it should work, but I haven't tested much, and there might be problems using OEM APIs on stock, un-rooted devices.

AF Period is best close to default of 500 I think. The new default for Alt Freq 1 is 0, and maybe it's better not to set it, just use the default, after remove and re-install or clearing app data.

Below RSSI Threshold, you should see audio is paused. Pause/play button should show Play symbol when paused. Above or at threshold, the opposite.

Can you send me a debug log ? Restart Spirit, make sure RSSI goes above and below the threshold, then use Menu-> Test-> Email-> Logs and after 10-20 seconds press Send.
[Spirit FM] mikereidis:
Please don't PM questions that aren't private.

No.

That or a low level alternative, via HCI or the HCI UART.

AFAIK, This, and the associated radio-bcm2048.h are the best and almost only public source of info for Broadcom chip FM: http://svn.jacekowski.org/host_mode/trunk/drivers/media/radio/radio-bcm2048.c

There's also a libfmradio.brcm-prop_rx.so "shim" Sony provides on some of their 2012 devices that support Radio3.apk . Hmmm, that includes the LT26 S I guess.

Radio3.apk uses the "ST-Ericsson proposed Android FM API" currently churning in AOSP.

Spirit2 will be based on this API, & I currently have it running experimentally on Spirit1.

See this if you want to try it on your Xperia S: http://xdaforums.com/showpost.php?p=34644359&postcount=4899
[Spirit FM] championswimmer:
Xperia S - >

ok on a stock ROM, it is working. Just like it should. (Stock ROM has it's own Radio app anyways)

on a source based ROM (that HAS the OEM radio blob on it,) here is what happens :

there is no audio from headset or speaker

tuning into a known local radio frequency shows signal jump to 10~20 value, while on any other frequency it is about -15

opening the headset will get you -15 on all frequency, somethimes -7 or -8 on the local stations

which means it IS catching signal, but the audio doesn't seem to be routed properly

getting loads of this

E/fm_srvc ( 4867): silent_start media player error
E/fm_srvc ( 4867): poll_tmr_hndlr ! mpsl.isPlaying
E/fm_srvc ( 4867): silent_start restart must restart playing/looping
E/ ( 189): Failed to open file 'fmradio://rx'. (No such file or directory)
[Spirit FM] mikereidis:
Thanks for the feedback.

That's as expected; Spirit hasn't worked on any Sony's in a long time. Using "fmradio://rx" with mediaplayer is the easy, stock way to enable FM audio.

FreeXperia / AOSP doesn't have any FM audio support it appears.

Disappointing given that Xperia S is an "experiment" in supporting AOSP on a non-Nexus device. FM is one of the few things not in AOSP for Xperia S; double disappointing given that this ST-Ericsson proposed Android FM API is in AOSP. If only they could just connect the two... meanwhile Xperia S is aging & not much of a flagship any more, albeit less than 1 year old.
[Spirit FM] mikereidis:
I really HATE it when I get another speaker damage report. The sooner they stop the better. Here's todays':

Hi, your order is cancelled.

I'm very sorry to hear about that. Unfortunately, despite hundreds of hours of effort, the best I've been able to do is possibly reduce reports from 1 per week to 1 every 3-4 weeks. :(

Yes, the only full solution is not to use Spirit on Galaxy S GT-i9000, unless it's on CM7 or using the CM7 audio method, or on a stock/stock derived ROM using a stock Samsung audio method.

Lots more info here: http://xdaforums.com/showpost.php?p=13380066&postcount=3

I THINK that only some devices are susceptible, because 98-99% of reports are from new users in the first week.

I no longer think it's early built units. There are indications that charging, USB or headset plugging & unplugging may contribute. Regarding charging, full batteries are probably most dangerous.

Low quality (& higher voltage) chargers are always a bad idea, but using Spirit with one of these could make it worse.

Regards,

Mike.
[Spirit FM] championswimmer:
The proprietary files were in place, (not in freexperia, but I included in my local build)

without them there was obviously no signal.

With the bcm radio blob, signal is coming but no audio

Could it mean just audio routing problem?

And does Ste provide a reference app source ?
[Spirit FM] DraXonic:
good
[Spirit FM] BoyNG:
Hi!

I try to use on Lenovo A789.

Not work :(

Error: No FM accessible

SU: 2 FM:?? Su:1 Bt:3 Ht:0 Mo:UNK

Can you help?

May be its info help:

In Mobileuncle all work

Info from Mobileuncle: Chip ID: 6620; ECO ver.: E3; Patch 1.11; DSP ver.: V2
[Spirit FM] R2D2_NZ:
Huawei Ascend D1 Quad XL has FM out of the box, but Spirit won't generate any sound, despite the signal meter indicating available signal. I'm guessing that some proprietary processing is going on.

If you're interested Mike, I'll send you a log, although you seem to have more than enough on your plate right now. :)

Cheers.
[Spirit FM] Chehri:
Using a HTC Incredible with drk.hd's CM9 a9 build. :)
[Spirit FM] mikereidis:
Lenovo A789 seems to be Mediatek based & I can't support them & don't expect to. I don't even know if A789 supports FM.
[Spirit FM] mikereidis:
Sure, send me a log & I'll see if there is some quick Audio-> Method config setting that might work. You can try the Huawei & ZTE methods.

But any "support" will be unofficial.
[Spirit FM] R2D2_NZ:
No probs.
[Spirit FM] aafeher:
ADS RDX-155-EF usb fm tuner

Hi,

I plan to use an android mini pc (tv stick).

Is there any chance that the radio will work with my ADS RDX-155-EF USB FM tuner?

Thanks
[Spirit FM] mikereidis:
Maybe partly, assuming a V4L driver is loaded and available at /dev/radio0 . :)

Spirit supports V4L for Qualcomm FM chips, and the code uses private Qualcomm ioctls. But basic functions may work, without RDS etc.

I have a pair of RDX-155s myself, bought to explore the possibilities of external FM. They have Silicon Labs si4701 chips I think. It would probably be most useful for tablets intended for car computers, where something hanging off of the USB port wasn't much problem.

But the biggest problem with this approach is the need for a kernel with a V4L driver. In the PC world there can be hundreds of different dormant V4L drivers taking up a few megabytes of hard disk space, waiting for the day an FM card or USB device is plugged in.

But in the smartphone & tablet space you'll generally find the kernels are not built to include V4L drivers for chips that aren't on the PCB.

The end result is that you may be able to make it work a bit, if you use a kernel with the required FM driver. But I can't officially support something that maybe 1-10 people might use in the next year.
[Spirit FM] zaxarop:
For SGS GT-I9000?

Can you send me a link?

---------- Post added at 12:03 PM ---------- Previous post was at 11:59 AM ----------

Φίλε καλημέρα.

Δουλεύει καλά; Ρωτώ γιατί έχω ακούσει διάφορα.

μπορείς σε παρακαλώ να μου στείλεις ένα link;

SGS GT-I9000

CM10
[Spirit FM] mikereidis:
For SGS see this: http://xdaforums.com/showpost.php?p=34687918&postcount=4910

There is no download link for Spirit2 yet. Spirit2 design must be completed before building it starts.
[Spirit FM] sjod8998:
Galaxy S I9000, whith new SLIM ROM JB 3.1 And semaphore kernel 2.60. No work. Always work, but today is down. Please, i do a heavy use of your app.
[Spirit FM] mikereidis:
There's a trouble-shooting guide here: http://xdaforums.com/showpost.php?p=31983151&postcount=4465

If you're a customer, send me a debug log with Menu-> Email Logs and press Send after 20 seconds.