yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Do you have the last, official CM7 for SGS2 ? This one: http://download.cyanogenmod.com/get/cm_galaxys2_full-116.zip ?

I was under the impression that the latest SGS2 CM7's had support for the CM FM app, and that my app worked OK too.
[Spirit FM] mikereidis:
Do you mean the scan up/down and frequency up/down buttons ? I use these in my XML:

android:src="@android:drawable/ic_media_previous"

android:src="@android:drawable/ic_media_next"

android:src="@android:drawable/ic_media_rew"

android:src="@android:drawable/ic_media_ff"

So I'm using whatever the ROM supplies, for these 4 buttons only.

I guess this is one reason why some people may find the app ugly. I've seen some awful, not well matched buttons on some ROMs.

I'll try to get this changed to decent defaults when I can.
[Spirit FM] mikereidis:
Good... Sometimes there are conflicts with a music player, especially when using earphone cable media buttons, or lock screen controls, but that should only happen with the paid Unlocked app which supports media buttons.

I've also seen CM7 start an interfering media player when volume control buttons were held down, but there's a setting to disable that.

No other audio method will work on Galaxy S with ICS, unless perhaps the stock ICS when it comes. Speaker is disabled w/ what I recently renamed the "GalaxyS Danger" audio method, due to continuing unfortunate reports of speaker damage from a few people (3 recently.)

I hope this is fixed now, but I thought that before and can never say for sure unless/until a month or 2 goes by with no new reports.
[Spirit FM] hellohellohellohellohello:
u8800 cant adjust volume

Hi,Mike:

I install spirit fm free.

I use u8800,but cant ajust volume,it is so lound sound.

How can i fix it ?

---------- Post added at 05:27 AM ---------- Previous post was at 05:22 AM ----------

hi mike,

i use spirit fm free.

It 8 minute,will reboot phone

It cant adjust volume,so lound sound.

how can i fix this problem?

change setup? or other?

And thank U for your apk.
[Spirit FM] PhilCapron:
Single thread

Tried the other audios (nothing) and and not surprisingly,judging by above post,the speaker doesn't work.I find that without the headset the signal is much lower and so fewer stations available.So the speaker is not important for me.Still getting the hang of this app. but I need it for very local FM outputs.

ATB.
[Spirit FM] mikereidis:
:)

I don't think I've found ANY other FM app yet that allows operation with no headset plugged in. The Galaxy S is quite a bit better with no antenna than my HTC Desire HD, LG P500 or HTC Legend. But my cheap Samsung gt-i5500 is a good bit better than the GS.
[Spirit FM] mikereidis:
Volume is an unsolved problem in the u8800. Some ROMs seem more stable than others.

I don't have one of these phones, so you can probably get better ideas and information in this thread in the u8800 section: http://xdaforums.com/showthread.php?p=22959804
[Spirit FM] mikereidis:
Feb 26 is on the Market.

- Galaxy W ICS and others should now work with qdsp5v2 Audio Method.

- IF you first enable Bluetooth, Desire HD etc. stock and unrooted should now work with Android 2.3.5 and HTC Sense 3.0+, as well as the previous Android 2.3.3 w/ Sense 2.1. Audio Method "None" or "HTC" should work for HTC devices.

- HTC Desire HD etc ICS is still unresolved. :( Method qdsp5v2 sort of works, but there must be some other FM audio start function.
[Spirit FM] LSD DREAMER:
you say i can use the app on my wildfire market say not a chance . any help htc wildfire buzz cyanogen mod 9
[Spirit FM] icke:
Lol....market also says I can't use QuickPic on my HD2 and it's working like a charm!;)

Just try and U will see.
[Spirit FM] Quinny899:
It's not unsolved, the devs claim it's the older, gingerbread audio libs causing it
[Spirit FM] mikereidis:
Thanks for the info. Do you have a link to the discussion or any other info ?

Un-REsolved means it's not working, at least for me.
[Spirit FM] mikereidis:
Free version is here: http://www.mediafire.com/file/ezo9poksmtpmifw/Spirit_FM_Radio_v120226.apk

Market is a pain sometimes. I think the most common cause is custom DPI settings. But why only certains apps ? I dunno.

And unless you know somebody has my app working on your ICS ROM, I wouldn't be too confident it will work for you. The biggest potential issue is finding a way to enable FM audio. On many ICS ROMs it's just not possible until the kernel and/or libraries support some method, and the app can use that method.
[Spirit FM] qzem:
Hey Mike,

I must dissapoint you, that qdsp5v2 method doesnt work on galaxy W ICS :(, it freezed my phone and eventually soft rebooted (it reboots, samsun logo appears and boot animation, but I don't need to enter pin code). No everytime I start the app, it freezes. I made a logcat, if it tells you anything. What I've learned trough a little testing is that the commands you gave it to me:

ssd 3 1 headset_fmradio_rx
ssd 4 2 headset_fmradio_rx 31
ssd 3 2 headset_fmradio_rx

ssd 3 1 speaker_fmradio_rx
ssd 4 2 speaker_fmradio_rx 31
ssd 3 2 speaker_fmradio_rx

ssd 3 1 headset_fmradio_only_rx
ssd 4 2 headset_fmradio_only_rx 31
ssd 3 2 headset_fmradio_only_rx

ssd 3 1 speaker_fmradio_only_rx
ssd 4 2 speaker_fmradio_only_rx 31
ssd 3 2 speaker_fmradio_only_rx

They work for turning on and off fm radio audio, but they also disable any other sound. For instance when fm radio is on I don't hear calling sound, and when I answer the call ther is silence on both ends. So speaker and microphone is disabled I guess. And strange thing is that even when I close FM radio app still doenst work. I have to reboot my phone to get it working again.

As it goes for this command ssd 4 2 headset_fmradio_rx 31 (and speaker), when I use number 0 at the end, it mutes radio, but if I use any other higher numer (I've trried with 48 the highest, and 1 and 3...), it always goes on the same volume, that it was set before muting it, it doesnt increase or decrase with those numbers. I hope this will help solve the problem :)!
[Spirit FM] wxm0831:
thank you very much
[Spirit FM] mikereidis:
Stock Samsung Galaxy S2 or Galaxy Note. (Only Non-US/Canada International versions have FM.)

http://www.mediafire.com/file/i5654nm9vzd9d9m/Spirit_FM_Radio_v120228.apk

Is there anyone who can try this version on an S2 or Note ? Must be an International version. US and Canada versions have no Si4709 FM chip.

Pretty much the only changes are for the Samsung Proprietary FM API mode.

I tried to test with Samsung's Remote Test Labs, but that seems just about useless. Among MANY other problems, the Note I tried didn't have anything plugged into the headset jack, and the proprietary FM API refuses to work in that case. :(

On a positive note, the Note started my app and ran it to the point where power on gave the expected "No earphone/antenna" error. So the proprietary API is at least starting. That was with the last Feb 26 Market version. I didn't have time to install the latest before I got remote terminated.
[Spirit FM] Vernox701:
Just posting that I tried this app about a week ago on my Droid Icredible with no success running AOKP-ICS_Dinc but today I happened to be using a different pair of headphones and it actually tuned in and found a couple of stations. Using qsd8250 method. When using a sense rom and Htc fm radio app I am able to use any of my three sets of headphones and tuning works. Maybe some are having problems because their headphones don't have enough copper to pull in a signal
[Spirit FM] mikereidis:
Thanks for your report.

Hmm, if signals are low with my app on a ROM, but the stock app has good signals on the same ROM, then my app needs to enable some antenna switch I think.

If we are talking about ICS or other ROMs that don't have a stock or other good working FM app, there may still be a switch, but something in the ROM or libraries may be missing to flick that switch.

I've seen some HTC code for an antenna switch that I think routes the FM chip antenna pin either to the headset jack, or to the 11 pin USB connector I think, for a car kit connection. If it goes to USB and there's nothing there, then signals will be low.

I'm not sure mere "lack of copper" is an issue. The thickness of the wire shouldn't affect it's antenna capability generally, the length is more important. Usually it's the headset ground wire which is the antenna but I think one manufacturer does it differently.

If your headset jack has 4 "poles" then the plug should have 4 poles also. Media buttons in the cable might mess things up also. Sometimes that could be because the ROM software tries to auto-detect what is plugged in. IE, does it have 1 or 3 media buttons, 3 or 4 "poles" and does it have a microphone ?

Sometimes I swap my different headsets into different phones, and sometimes that causes strange issues. So it's generally best to go with the original earphone/headset, at least for testing.
[Spirit FM] mimmus:
HTC Desire HD etc ICS is still unresolved. Method qdsp5v2 sort of works, but there must be some other FM audio start function.

I'm not an Android expert ... but if I where in Linux I would run fm radio application with strace. Do you know if there is any way to trace syscalls within an Android application?
[Spirit FM] mikereidis:
At the core of Android is Linux, more or less, with some modifications for things like security, and with a lot of things layered on top.

I run strace sometimes on Android/Linux command line utilities, but it's not particularly suited to Android Java apps, for which there are other tools.

As soon as there is an ICS for Desire HD that supports FM audio routing, I will be on it. Is there any such ICS 4 DHD you are aware of ? With a working FM app that has audio ?

Last I checked a week ago there didn't seem to be. And AFAIK, my app is the only one readily available that works as much as it does, with the only problem being no audio.
[Spirit FM] sakib_kmc:
Wat about samsung gt i9003?
[Spirit FM] mikereidis:
From http://xdaforums.com/showpost.php?p=23127800&postcount=9

Copied on my thread, because I did a lot of thinking and typing... :)

Yes you can remove the CM FM app.

On CM7, the default CyanogenMod audio method is generally best. It's the same method the CM7 FM app uses, so it's the most likely to work well, especially when dealing with things like phone calls coming in when FM is on.

If a CM ROM for any phone has a CM FM app, this method should work, but unfortunately that's not yet the case with CM9 ROMs. so low level methods are needed for now on CM9, and there are often issues, and many CM9 ROMs just don't support FM audio routing yet, or I haven't figured them out.

Re: Bluetooth: my app has many ways to access FM chips. :)

- The first method I supported was via Bluetooth (the HCI API), like the CM FM app. Like it, my app can run commands using the command line hcitool utility, and this is nice because my app can run without root/SU. But it's not too efficient, especially when using RDS where lots of data gets transferred.

- For better efficiency, with root, my app supports direct access to the HCI sockets, through a daemon, because apps don't have the privilege otherwise.

- But because many people were running stock or stock derived ROMs using the Broadcom proprietary BT stack, and I could find no way to send HCI commands with it, I created a "UART mode" that communicates directly with the Bluetooth/FM UART. The wireless part of Bluetooth is not switched on, which saves power. But this mode requires root (unless /dev/ttyHS0 or whatever is accessible from an app), and only works if BT is off.

- A new access method is available now on stock and stock derived ROMs that run the proprietary Broadcom BT stack and that supports the stock LG FM app. This can work on stock, unrooted devices. In this mode the characteristics of the stock FM stack are unavoidable, both positive and negative.

The Broadcom proprietary BT stack has a special mode where Bluetooth is considered off, but FM is on. This enables the Bluetooth HCI "UART" to provide a path to control the FM part of the chip.

- There are different device driver access methods used for dedicated FM chips not contained in a BT/FM combo chip, but those don't apply to the P500.
[Spirit FM] mikereidis:
The Simpsons taught me that among Hemingway's words of wisdom was:

“The shortest answer is doing the thing.”

IE, why don't you just try it ? It's free and only takes a minute or two I think.

There's even an intro that can be read and will give some useful information on configuration.

Then if you have trouble, you can come back, report it, and hope for an answer.

It doesn't take much of a search to find this:

http://xdaforums.com/showthread.php?t=1464468&page=234

Where, among other things, the prospects for speaker damage are discussed.

Let me know how it goes, then you can tell me. Include info about what ROM you are running, if rooted, etc.

But if a warning pops up, read it, don't just blindly pass a warning screen as I'm sure lots of people do... :D
[Spirit FM] raghavendhrarahul:
Spirit Fm no sound

Hi,

I am from india.i use ics with cm7 in my i9000.

I installed spirit fm and set region as india.

No sound comes out.It shows some signal bar at the top.I dont know whether it works or not.What should i do to make it work
[Spirit FM] mikereidis:
I presume you mean CM9.

It will only work if you set Menu->Settings->Audio->Method to "GalaxyS Danger".

But some people have had speaker damage problems, and I had one new report today, despite that he didn't use the speaker. I made some changes recently but it's not clear yet if he was using a newer version.

So, use "GalaxyS Danger" entirely at your own risk, or just wait for a better solution.
[Spirit FM] mars3910:
Preset switch

Hi Mike,

Using your app with MildWild V-3.5 Based on Oxygen 2.3.2. Is it possible to switch presets with stock HTC Desire headphones.

Thanks
[Spirit FM] raghavendhrarahul:
GalaxyS Danger

So u mean that even if i plug in headphones it will affect my speaker.
[Spirit FM] mikereidis:
Well here's a laugh. :)

I got a Motorola Droid X the other day.

I installed one of Motorola's FM apps, identified as "com.motorola.fmradio", which is different than the Droid X app.

I look at my apps in the Market, and it's identified as the stolen Motorola "FM Radio" app that "Sutton Shin" is selling for $2. LOL.

That's because the name matches.

I wonder how many people with stock Motorola FM apps see this. It might be a way to get around the rule that free apps can't turn into paid apps. Is that why there are 5000+ downloads ? Are people paying $2 for what looks like a Motorola update ?

Google doesn't care. They're making a few bucks, LOL.

And the other day "Sutton Shin" adds me to his Google+ circle.

And how the heck did his app get 82 +1s ? I've only got one, and a heck of a lot more downloads. I smell manipulation.

All I can do is laugh and move on... and wonder if hard work is a scam, and scams are acceptable...
[Spirit FM] mikereidis:
Could be. Hard to say. I'm still waiting to hear back from that person if it happened with Feb24+.

I'm about ready to remove the method, or at least protect it with a super secret unlock code.

I tried to find a way to hook up a voltmeter to the speaker connections to see what's up, but those ribbon cables are so tiny I don't stand a chance.

I'm going to get some EBay speakers, pop at least one open and see if there's an easier way to attach test equipment.
[Spirit FM] mikereidis:
Not yet. I support seek up and down on 3 buttons, or just seek up on one button. I've been meaning to add next preset and previous preset and a paid customer request or 2 might speed that up.

But all the media button support is limited to the paid Unlocked app. :)
[Spirit FM] mars3910:
Will be buying the app asap you add support for it :)
[Spirit FM] sweettaniyaa:
Thank you for clearing it to me. But I don't know... something weird happened to me. I was using Spirit FM radio app whole day yesterday but the Blue-tooth icon never showed up. But today when tried the app again It has been showing the Blue-tooth icon. I don't get it. What changed? I tried re-booting and everything. Still the same.
[Spirit FM] onesolo:
Hello,

I have a Desire HD running a ICS rom

I can search and get radio stations, but I can't get any sound from headset or speaker...

Can anyone please help how to get sound ?!?

I tried to change several settings, but nothing works...

Thkx
[Spirit FM] mikereidis:
Hmm. Here's how it goes:

- If you deny the app SU or are on an un-rooted ROM, it first tries the OEM Proprietary FM API modes. With SU it bypasses that for Broadcom chips. But on most CM ROMs, including for the P500, the Proprietary BT stack isn't there so this won't matter.

- Next, Spirit tries to access the FM chip with the current Bluetooth power state. So if BT is off, for Broadcom chips, the direct UART mode is attempted. This works with BT off, and requires that BT remain off.

If BT is on, Spirit will try to access the chip using HCI sockets mode and if that fails it tries to use hcitool mode. Both require BT on.

- If access isn't found using the above, in the original BT power state, Spirit will toggle the BT state and try the above again.

So if everything is OK, IE BT works and Spirit has no related bugs, with Broadcom chips the app should work in whatever BT state it's started with.

But sometimes there might be some problem that requires toggling the BT power state.

You can get info about what happened in the RadioText area. There is a debug line starting with "FM:". This post has details: http://xdaforums.com/showpost.php?p=14391233&postcount=381

If you want, you can send me a debug log with Menu->Help->EM Logs and after a few seconds, enter your phone model and ROM in the email text and press send.

With this log I can see if something unexpected is happening.
[Spirit FM] mikereidis:
I have the same problem on my DHD.

I tried IceColdSandwich-4.1.1.AOKP-signed.zip tonight, but no change.

The qdsp5v2 audio method usually works on DHD ROMs with no specific FM audio routing support.

Something tells me Google removed or at least neglected to put the FM parts into the driver. Or something like that. :(

I or the ROM builders will figure this out eventually. It's one of those things that's probably easy once you know the "trick" but learning the trick is the hard part that takes a while.
[Spirit FM] mikereidis:
OK, I'll hold you to that. :D

I would have done next/previous preset the last time I added media button functions, but my presets code is in need of a re-design that would make it much easier.

I try to concentrate on one area at a time and fix it properly instead of adding hacks on top of other hacks. Makes for a bigger task, but better in the long run.
[Spirit FM] locomotive96:
What is the state with the development of this and Droid 2 Global?

I have a rooted Droid 2 Global and would really like to have broadcast FM radio. I am just wondering what is the status of this being in development for the D2G?
[Spirit FM] jb789:
Spirit works partially on the D2, probably similar for the D2G. Mike just got a DX which should eventually help both of us when he gets the time, but in the meantime, your best bet is probably here:

http://xdaforums.com/showpost.php?p=21982033&postcount=2163
[Spirit FM] mikereidis:
Thanks.

The Motorola's are a priority for me now. They are very popular but have suffered from low signal issues since before this thread was started 10 months ago today. But like most phones there is a steep learning curve to rooting and ROMing etc.

"Unfortunately" my Droid X doesn't seem to have the low signal problems. In low level mode my app has the same reception quality as the stock app.

That said, I think the signal quality may be the worst of my 6 phones, although I'll have to try the stock headset coming soon with the 2nd Droid X I bought. My most listened station has quite audible static "whooshing" when I move my hands near the cable.

I'll see if the second one has low signal. But it might also be a function of the SBF loaded. An SBF might have drivers that default to the antenna disconnected state, while my "4.5.602.MB810.Verizon.en.us" defaults to connected. If anyone has this 602 SBF and can report low signal from my app, but not the stock app, then it's probably a hardware issue.
[Spirit FM] yauluhim:
Hi Mike.

I bumped into this thread while searching google for a sollution to the...speaker damage. I saw you only got 3 reports from SGS1 CM7 users, so i registered on this forum especially so you can add one more report. I tried uninstalling the app and then rebooting and even powering off but nothing helped. I guess its permanent. At least untill i get it fixed.

Tzvika.
[Spirit FM] mikereidis:
Sorry for your loss, but thanks for your report. Did it happen with a February 22 or later version where I added a new warning, changed the mode name to "GalaxyS Danger" and removed speaker mode ?

For the brave do it yourselfer, here are some Ebay links for speakers and instructions on replacing them: http://xdaforums.com/showpost.php?p=23014977&postcount=2355

Some minor technical details about the simplification of this mode: http://xdaforums.com/showpost.php?p=22818750&postcount=2310
[Spirit FM] android1999:
Volume fix

For my galaxy mini that BC thing did not work so I used the fixed volume feature in debug. I recommend others having volume problems to do the same. :D
[Spirit FM] mikereidis:
On CM7 ? Which version and do you have a link to the ROM ?

Debug->BC 4330/20780 for newer chips now defaults to "Automatic", but you can also set it to Disable or Enable.

In the default Automatic mode, the *.hcd file name is checked case insensitively for "M433" or "M207". If either is in the file name, the newer chip support is enabled. This won't work though if the file is something like either of these:

/stock/system/bin/BCM4325D1_004.002.004.0218.0248.hcd

/system/etc/firmware/bcm4329.hcd

I tried to find a good method by reading the chip but couldn't.

It might not be fixed volume that helps so much as turning off calls to set volume on the chip. That can also be done by enabling Debug->HW Vol Off.

If volume control works OK after doing that, then something else in the system is changing the volume, and that's generally better, if possible.

Do you hear any hiss at low volumes ?
[Spirit FM] yauluhim:
I downloaded it from the market, so i assume it was the newest. I'm sorry to say that its becuase of my own stupidity because i did see the warrning but said "hey, what are the odds?" :)
[Spirit FM] mikereidis:
The Feb 22 version was uploaded just over 7 days ago. So I would guess if you say "newest" then you mean the Feb 22, 24 or 26 versions.

The Feb 21 and earlier warning said "Five people have reported speaker damage" but Feb22+ started with "FEB 22: WARNING" and contained "Seven people".

I think we are at 9 or 10 reports now, and the report rate seems to be accelerating, so I think I'll have to protect this mode with a password or something.

The odds are difficult to know. :(

I've been looking at offering at least a copy of the Unlocked app to those who have suffered this, but I'm very concerned that will encourage bogus reports. So at least, I will wait until the problem seems solved. But if you or anyone has already reported wants, send me a PM or email.
[Spirit FM] mikereidis:
...........
[Spirit FM] mikereidis:
EDIT: Now on Market.

March 4: http://www.mediafire.com/file/cbem84b9a83blk2/Spirit_FM_Radio_v120304.apk

I believe and am very hopeful the GalaxyS ALSA speaker damage problems have been resolved as of this March 4, 2012 release, but who knows for sure... ?

This audio method now uses pretty much the exact same methods as the CM7 libaudio, and produces pretty much the same kernel messages, so I'm at a point of cautious confidence.

If you've been burned, please email me at mikereidis@gmail.com to report and I'll offer a complementary Unlocked app or 2...

I don't know how well it reacts to phone calls, but eliminating breakage is the priority. Speaker mode is re-enabled.

I've tested this release briefly on my 5 other devices, but priority was given to the above. Unless there is some problem, I will push this release to the Market within the next few hours.