yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Q - Can you add a radio alarm clock feature ?

A - Spirit supports automatic shutoff after X minutes with Menu-> Sleep.

For automatic/alarmed startup I will try to better support external alarm apps such as this:

https://play.google.com/store/apps/details?id=com.alarmclock.xtreme.free

Currently, Spirit hangs on the "Please Wait" dialog when started in this manner.
[Spirit FM] mikereidis:
Q - Can you support the US, Canadian or other LTE variants of the Galaxy S3 with Qualcomm S4 SOC ?

A - It remains to be seen if FM is possible on the LTE variants of the GS3. If the FM antenna pins on the SOC are connected to the headset, then yes. The Broadcom chip does not seem usable.

There is some discussion here: http://xdaforums.com/showthread.php?p=29194896#post29194896 . Further testing requires an SMD enabled kernel to be built.

If possible, it will require a "rooted" device at least.
[Spirit FM] wcoast:
Thanks, I got the message, I will wait and do without FM for now.
[Spirit FM] terrornoize:
Spirit FM doesn't work on latest nightly CM9! :(

Samsung Galaxy Note.
[Spirit FM] go4saket:
Hello!

I have a SGS I9000 with SlimICS+Semaphore kernel. Everything is working fine except Spirit FM Unlocked. As I am from India, I had set the regional band to India but I also tried North America and tried all Audio Method but I couldnt manage to get any sound.

I also heard that there is a possiblilty of damaging the speaker of the phone. Is this true and if yes, is there any update which resolves this issue? I am using the June15 version.

Can some one help me with this?
[Spirit FM] Rebel2k:
Try to check the "radio" option in Semaphore app to load the radio module.

Envoyé depuis mon GT-I9000 avec Tapatalk
[Spirit FM] Metallico:
Hi Mike...

There's any news for the I9100G?

Thanks a lot man.

Best regards!
[Spirit FM] s0ulreaver:
I'd like to start by thanking you for this great app!

I've used the free version and I have a small issue, just like other people reported: once I turn off SpiritFM, the power consumption keeps on going on like there is still something running in the background. I don't have BT/WiFi on.

If I reboot the phone the behavior stops but will happen again if I use Spirit then turn it off without rebooting the phone.

I have a Desire HD running ICS. Thanks!
[Spirit FM] prasad12ka4:
Same issue for me

Once reboot it stops

But if you start again FM, here we go again...

Cant reboot again and again , we need some solution
[Spirit FM] mikereidis:
I suspect the same problem as with the GS3.

CM is moving back towards open source audio libraries, instead of the original OEM libraries.

I created a quick hack using ALSA for GS3. Unfortunately GS2 & Note have different ALSA controls. I never had success with trying to use their lower level ALSA controls, but at that time I did not have physical phones to test with.

Hopefully my contact with a CM9 dev for Samsung devices will result in better solutions. I'll try to get something working quickly.
[Spirit FM] mikereidis:
Rebel2K gave the fix I think in post 4248. Some kernels don't support the FM driver, and some require extra action to load it.

For Galaxy S speaker damage issue, I've had no reports in 3.5 weeks, and previously had one every 6 days. So appears to look good since the July 12 version.

EDIT: Had one more report today, so that makes it 24 days between reports, where it used to average 6 days. So it appears that frequency is decreasing, but who knows why.

If you've run Spirit for at least 10-20 hours, most devices with the problem will have experienced damage already.

Further info here: http://xdaforums.com/showpost.php?p=29809608&postcount=4237
[Spirit FM] mikereidis:
August 8 Free: http://d-h.st/JZv

- Same as August 5 except version number & date updated.

- Also on Google Play.
[Spirit FM] mikereidis:
I've had contact with a CM9 dev who mentioned GT-I9100G.

So hopefully soon. :)
[Spirit FM] mikereidis:
I'll try to look at this later this week.

EDIT: See post below.
[Spirit FM] mikereidis:
My time is pretty limited right now, so if you have time to test, that will help:

- Turn Bluetooth and WiFi off.

- Use adb shell or terminal app to open a shell and run these:

su

killall -9 bluetoothd brcm_patchram_plus com.android.bluetooth dbus-daemon

echo 0 > /sys/class/rfkill/rfkill0/state

The Desire HD is one of these devices that has ICS/JB custom ROMs that leave Bluetooth on all the time, despite it appearing to be off.

I'm reasonably sure the problem is within the Bluetooth software, not within Spirit. If the above fixes the problem, I think that would prove it.

Once you do the above, I think Spirit should be able to operate in UART mode, but you won't be able to use Bluetooth without a reboot.
[Spirit FM] mikereidis:
August 8 release of Spirit tested OK for me on these:

cm-9-20120808-NIGHTLY-n7000.zip

cm-10-20120803-UNOFFICIAL-n7000.zip

As well as the July 25 nightlies of CM9 and CM10.
[Spirit FM] LLStarks:
There's a Verizon Galaxy S3 service manual floating and MSM8960 manual floating around.

Would they be of any use?
[Spirit FM] cos68:
Thanks for the update!

I have exchanged my HTC Sensation to a Samsung Galaxy S3. Your application is working great with my S3 on stock unrooted rom.

However two issues seems not to be working with the S3, which used to work fine with my Sensation:

Western Europe characters are not working. They used to work on the Sensation. I just see a ~ instead. Please note that the Western Europe characters are also not working on the FM app included in the stock ROM.

AF seems to be not working. The AF indication in the top always displays 0 for all stations, even though I know that they do transmit AF signals. This worked perfect on the Sensation. I have enabled AF in settings but the alternate station frequencies are never updated.

I know you are busy, but if you sometime get the time to look into it, then it will be appreciated.

Please let me know if you need some logs or anything.

Best regards

Claus
[Spirit FM] Metallico:
Thanks man!!!

One more question... If it works for Cm9 maybe can work for Cm10 right?

Thanks again man and great work

Best regards
[Spirit FM] Spaqin:
Well, I'm pretty sure that long time ago I could do this on my HD2 (on WM probably, but not sure), so how can I change the frequency to something lower?
[Spirit FM] loplo:
mikereidis, a few months ago I've asked if you could implement the Airband (118–136.975 MHz). There are lots of airplane spotters who would buy Spirit FM in case of it will work, my 2 cents.
[Spirit FM] mikereidis:
The links aren't valid anymore.

Is this the USER manual leaked about 1 month ago ?

The service manual may show us if the FM antenna is connected. If so that would be extremely encouraging.

I'd also be very interested to see a MSM8960 tech manual. I'm reasonably sure Qualcomm would try to have every download location killed.
[Spirit FM] mikereidis:
Great ! :)

For these issues, root the GS3 and/or give SU/root to Spirit. If unrooted you can try setting Debug-> FM API to "Low Level" but stock permissions usually don't allow this.

The OEM proprietary API needed for unrooted devices doesn't seem to support European languages. AFAICT, there is nothing I can do about that.

I think the AF may be working, but you can't get the information and control Spirit can provide when using low level APIs. But I haven't tested AF too well with the proprietary APIs, and it would be difficult for me to do so.
[Spirit FM] mikereidis:
Yes. JellyBean is very similar to ICS at the low level audio libraries. There are some changes to improve audio latency though.

GingerBread to ICS was a huge leap and the audio libraries are very different.

At this point, my optimism for help from CM devs has faded at least a bit.

But I have a possible approach. I've never gotten FM audio working on GS2 I9100/Note via ALSA. If/when I get this working I think I may have the clues/code I need for I9100G.
[Spirit FM] LLStarks:
No, we have a SERVICE manual for the Verizon Galaxy S3 and MSM8960 manual.
[Spirit FM] mikereidis:
Unless I support it in Spirit, all you can do is try running hcitool commands to change frequency, assuming Bluetooth sockets mode.

Isn't HD2 using Broadcom BCM4325 ? I've never seen it work under 76 MHz and I've tried. And there is no documentation saying it can work. In theory a different firmware load could allow it, but I'm not going there.

The newer BCM4330 can do the "OIRT" band going down to 65 MHz. I'm not sure about the related BCM20780 or BCM4334, but I think I tried my Galaxy GT-i5500m w/ 20780 and it didn't work.
[Spirit FM] mikereidis:
:)

And at least roughly half of Android devices are physically incapable of FM without impractical hardware mods. I'd have ridiculous sales levels if I could support them, but I can't.

No common FM chip even claims to support over 108 MHz.

And I tried anyway and couldn't make any of my phones work.

I'll try again soon on my most recent new phones, but I'm pretty doubtful.

In theory, someone might be able to modify the firmware on an FM chip. But I don't expect to try.

Hardware down-converter is the only possibility, AFAICT, but that would work with any FM device of course.
[Spirit FM] mikereidis:
Thanks for the PM.

Sadly, it looks as if FM is not possible on LTE GS3s.

I now think Qualcomm was being "disingenuous" (misleading/lying) when they said here: http://www.qualcomm.com/media/relea...t-generation-snapdragon-mobile-chipset-family

I'm guessing "All chipsets in the family" means including the external WCN3660 combo chip. I think misdirection like that lead Anandtech to say here: http://www.anandtech.com/show/4940/qualcomm-new-snapdragon-s4-msm8960-krait-architecture/4

"...only require some external RF to use." seems to mean you need a WCN3660/3680 BT/WiFi/FM combo chip: http://www.qualcomm.com/media/relea...ghly-integrated-connectivity-solution-superio

Saying "some external RF" should have meant some minor components, not a full blown combo chip.

The MSM8960 seems to have two so called "FM" pins, and they are NOT antenna pins: GPIO_26 / FM_SSBI and GPIO_27 / FM_DATA.

The Verizon GS3 service manual schematic shows that these are used as UART in and out pins for the Broadcom BT/WiFi/FM combo chip. I'd guess they are used much the same way with an external WCN3660, as on the LTE HTC OneX.

Calling them "FM" pins is a stretch. They are general purpose IO and/or UART pins that can be connected to anything, including FM or FM combo chips.

Yes, the Qualcomm drivers can treat them as FM interface pins, but that's just software. My guess is that the vast majority of the FM hardware is on the WCN3660, not the MSM8960.

And the Broadcom chip FM antenna pin is shown as not connected anywhere. Hypothetically, if someone could attach an antenna wire there it might work, but tests have shown an RSSI around -13/-14 otherwise.

I don't expect to spend any further time investigating LTE GS3s, unless someone comes up with something convincing, which I now seriously doubt.
[Spirit FM] bianchi:
Can make auto disconnect when unplug headphone and the programe can close ?
[Spirit FM] mikereidis:
Unlocked supports settings for User Interface-> Antenna, including "Monitor & Off" which does this.

Headset plugged detection isn't good on all phones or ROMs though.
[Spirit FM] mikereidis:
August 9 Free: http://d-h.st/H3u

- Audio->Method Galaxy S3 ALSA simplified. May cause fewer problems with other audio if only headset mode is used.

This method is only needed/used/recommended on ROMs without the OEM audio libraries, such as recent CM9 and all CM10.

- Audio->Method Galaxy S3/Note/S2_ICS variants under Debug->Galaxy S2.

"July12" or "July27" have speaker mode but may create other audio problems.

I'd appreciate reports as to whether either of these settings create audio problems or not. Problems may be with phone call audio, audio notifications, or use of music players etc.

Complexities include when wired headsets are plugged in or out. IE. someone might unplug the headset while FM is playing, and then get a phone call (and plug/unplug), or start a music player. The combinations make testing a challenge.

As always, Debug-> Mute kill mediaserver resets the audio system and can fix audio problems on mute or FM power off. This is at the cost of missing part or all of ringtones and audio notifications.

- Galaxy S on custom ROMs:

Due to 2 new speaker damage reports in the last 25 days, a new warning is enabled for August 9. Press OK if you understand and accept the risk. It starts with:

August 9: WARNING !!!\n\n

1 year after it was created, this audio method can still kill speakers on some hardware revisions.\n\n

Damage reports appear to have diminished to one every 24 days or so, from a peak of one every 6 days.\n\n

So the default implementation of this method appears to be safer now, but still not entirely safe, as of July 12.\n\n

At one point I was able to replicate the exact kernel messages produced with the safe CM7 method. But no FM audio was produced.\n\n

After 300-400 hours of investigation and work I am unable to pinpoint the exact source or a cure. I give up.\n\n

For a better audio experience, with possibly higher risk, set Debug-> Galaxy S to "Better" or "Danger".\n\n

The default "Safer" setting sometimes produces fear inducing clicks and no audio. Just restart Spirit.\n\n

\n\n
[Spirit FM] loplo:
Thanks for the info, I'll keep following this thread.

Sent via ACARS.
[Spirit FM] jr_718:
Still can't get this to work for my s2 Hercules running milestone 6 aokp
[Spirit FM] cos68:
Great, thanks!

I have rooted my phone and now it is working perfect. Both the European characters and the AF is working like expected. Thanks for your quick support! :good:
[Spirit FM] mikereidis:
US carrier versions of Galaxy products do not support FM.

:(
[Spirit FM] painter_:
Is there any support for the Nexus 7?
[Spirit FM] Valwit:
is there a possibility to have one range from 65 Mhz to 108 MHz? Or at least from 76? Wouldbe nice for scans :)

and out of curiosity: is any of the chips able to receive beyond 108?
[Spirit FM] mikereidis:
Only emotional support for disappointment. :)

I pre-ordered the day of announcement, and I like it, but it's the only Android device I have (of 15) with no FM.

The chip is there and Spirit appear to work, but RSSI is always -13/14. So the antenna pin is not connected.

I may pop off the RF shield and see if I can do anything, but that would just be for "fun".

I may also add support for a USB FM dongle at some time in the distant future for "fun" too, but would require a special kernel.
[Spirit FM] mikereidis:
Gee, why is there a sudden influx of questions about over 108 ?

No chip supports it, with normal factory firmware at least.

AFAIK, only BCM4330/4334/4335 supports 65.

Yes, most chips support "Japan Wide" which is 76 - 108 without switching bands. I would have supported this, except 1 chip didn't support it.

I could add software support to emulate scanning across a wide band but there is very little demand for this. I've tried to concentrate on most commonly requested features and I have no time for anything else.

I'd also like to add a few features to aid those using the app as emergency service scanners.

Perhaps at some point in the semi-distant future...

But August is my down month, for personal time.

And I may feature freeze Spirit and concentrate on bugs and the needs for new ROMs. ROMs keep changing and Spirit needs to adapt.

And I think a re-design of the app is badly needed too.

So don't expect new features anytime too soon, although I may get user contributed translations going in the next month or so.
[Spirit FM] mikereidis:
This is the main thread, please post here if possible.

Yes I understand. In post above I said:

The chips tend to do this already. If they didn't the static between stations would be much louder.

But I was looking to revamp the manual AF code to support RSSI based squelch, as well as a real multi-channel scanning function, which is much like AF without RDS really.

But as also mentioned in the post above, Spirit is in a "feature freeze" now, and may be so for the next few months.
[Spirit FM] mikereidis:
Also on Google Play: Unlocked and Light.

August 11 Free: http://d-h.st/NfK

- Debug-> Galaxy S default now "Better", since "Safer" does not seem any safer.
[Spirit FM] UnicoIjo:
how to set this one to ASIA? pls help me.. currently using CM9 build 6 by acro..
[Spirit FM] jr_718:
Please let me know when supported for Samsung galaxy s2(U.S T-Mobile) devices. Thanks
[Spirit FM] mikereidis:
Menu-> Settings-> Regional Band-> World.

Or Europe if 0.1 MHz offsets are all you need.
[Spirit FM] mikereidis:
Never. It's between impossible and HIGHLY impractical.

There is an FM/Bluetooth/WiFi combination in most phones.

US carriers, Google and other parties usually "neuter" the FM by making sure the FM antenna and FM audio pins are not connected anywhere useful.

Someone with thousands of dollars of equipment and the skills to use them could theoretically rewire the PCB as needed.

But it's much easier to just buy a new phone with OTA FM supported.
[Spirit FM] Valwit:
no bother :) i was just curious about the band above 108. i know my htc is able to receive from 76 up, but i was hoping that also the old east european band was in. thnx for the replay :)
[Spirit FM] jr_718:
Sad but that's reality.. thanks again.. I just want to listen to an FM radio without using WiFi or data..damn
[Spirit FM] mikereidis:
Sony MW1 ($140) or the older MW600 ($40) Bluetooth headsets are nice and have FM built in to them.

I recently got an MW1.
[Spirit FM] mikereidis:
HTC Sensation ? Any thoughts on the popularity of this or similar HTCs ?

I'm thinking I should get a recent HTC phone with a Broadcom FM/combo chip.

Several people have reported various problems on such devices and my OneX and OneXL are TI and Qualcomm FM.

I pretty much need hardware in my hands to provide proper support.

Desire HD and Desire Z are my most recent HTC Broadcom devices. Other than an awful AT&T Status "Facebook" keyboard phone HTC sent to me gratis... All these use BCM4325/4329.

More recent devices are likely BCM4330 and support, or may support, official HTC ICS.

I see some half-broken ones on Ebay in the $150 area.
[Spirit FM] UnicoIjo:
not working

thanks anyway but nothing happens.. i just hear a little buzzing sound on my Samsung Galaxy W:(
[Spirit FM] mikereidis:
Then it's likely an audio problem you have.

You need to set Menu-> Settings-> Audio-> Method.

On ROMs with stock audio libraries, one of the methods with Samsung or Galaxy in the name may work.

On custom open source ROMs "qdsp5v2 Altern" usually works.

If this gives you problems with phone calls or other audio, enable Debug->Mute kill mediaserver and restart. But that can kill ringing and notifications.
[Spirit FM] UnicoIjo:
thanks

it works.. thanks:highfive:

but it crash/lag when i press the exit button.. is it a BUG?
[Spirit FM] mikereidis:
It's a bug somewhere, but I don't know where or how to properly fix it yet.

Others have reported it. I think this could work around it:

Enable Debug-> AM Mute Off and restart Spirit.

This unfortunately will allow the audio path to remain open. Likely it will mess up other audio. For this new problem:

Set Debug-> Mute kill mediaserver to "Enable". But this will also cut off ringing and audio notifications while FM is playing.

There are enough debug and audio options now that we can work around many problems. But the workarounds unfortunately all create their own issues.

I hope at some point somebody figures out how to do this properly. But I don't expect to ever have this device in my hands, and even devices I DO have are often imperfectly supported.

Hopefully, maybe in CM9/10 at some point...
[Spirit FM] mikereidis:
August 13 Free: http://d-h.st/dh1

- For Desire HD, Sensation and similar devices using "qdsp5v2 Plus/ICS".

Resolves battery drain after FM off issue.

May also resolve some audio issues and/or create new ones.

-----------

Sales are up "nicely" in the last few days. My guess is Spirit was mentioned in an online article somewhere.
[Spirit FM] mikereidis:
For speaker mode on GS2, Note, some GS3 ROMs, etc:

I'm reposting because I'm getting a lot of queries.

Set Menu-> Settings-> Debug-> Galaxy S2 (near bottom, below Galaxy S) to "July 12" or "July 27" and restart Spirit.

I added speaker mode but some people were having problems with the July 12 or 27 releases. Other audio, including phone calls, ringing and notifications were getting messed up.

And yet my S2 worked fine, so I'm not sure why some people were OK and some had problems.

EDIT: "July 12" prevents speaker mode from working for audio apps, after FM is off. So "July 27" seems best.

Please let me know how that works out for you.

Thanks,

Mike.
[Spirit FM] mikereidis:
For Galaxy S speaker damage issue:

Since changing to "Better" I suddenly have 2 new reports.

So it might truly be that "Safer" is less likely to cause damage, or at least takes longer to do so.

Thus I may change back to "Safer", despite the audio problems it causes.

As always, the problem only seems to affect less than 10% of Galaxy S's, and if you run FM for 10-20 hours with no problem, chances seem very low you will have a problem.

There was just 1 report from a long term user. One report of perhaps 50 total in the last 12 months.

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

There are ongoing signs that CM9/10 will re-incorporate FM support.

I'll be very happy if/as/when that happens. Proper FM audio support needs to be in the audio libraries, not unavoidably unstable hacks in an app.
[Spirit FM] TripleAgent:
Such garbage. I want ALL my functionality, dammit! At least Sprint has unlimited data, you would think they would encourage you to use a medium that requires no stress on the network. All these built in gadgets, doodads and contraptions, and they have beef with extra basic FM radio that comes free on the chip! I guess I'll send another sure-to-be-ignored email to them, smh...:banghead:
[Spirit FM] mikereidis:
IMO carriers lie when they complain about users over-burdening their network. That's usually just an excuse to make more money somehow. I don't know about Sprint re unlimited data though.

And it's about more than bandwidth. It's also about controlling the media and advertising you consume IMO.

IMO everyone's best vote is with their wallet when buying a phone.

For alternatives, if a GSM International GS3 or other Samsung device is insufficient due to lack of LTE, the AT&T HTC HOneX LTE has FM, although AT&T does not support it.

I have the ATT OneX and I'll support it and keep it indefinitely.
[Spirit FM] mikereidis:
Audio problems on some devices can be minimized by disabling the following system settings:

Sound-> Touch sounds

Sound-> Screen lock sound

Or any other setting that disables sounds that might interfere with FM audio.

This is due to the "hack" nature of many audio methods on modern devices which switch audio sources, instead of mixing FM in hardware with other audio.

When the audio library does not "know" FM is playing, it can really mess things up when even a quick (or silent !) click is played while FM is playing.

This is not as much of a problem as when ringing or an audio notification comes in. Spirit is informed of this "audio focus change" and has a chance to mute, or even to reset the whole audio system on devices like Desire HD.

But even this is becoming a problem as I see cases where audio is switched before Spirit gets a chance to reset audio.

As always, "proper support" needs to be in the audio libraries. Hopefully CM will get FM at some point, and I might consider proposing patches myself.

As I write this I realize Spirit could allow an option to refuse the "audio focus change" for audio notifications, and that might help with some problems. One more hack in the arsenal, LOL.