yashsingh1/xdaforums huggingface dataset:
[Spirit FM] SagiLo:
Hi all,

The app is working great with DesireHD, well, almost great.

It seems to have a conflict with the notification sound,

If i hear radio and the device uses the notifications (message received or something) the radio stream stops and doesn't continue by itself.

I have to pause and resume it in order to continue listening.

I got the same behavior when getting a call while listening ...

Any ideas?

Thanks!!!
[Spirit FM] mikereidis:
:)

I've seen cases where CM9 devs seem openly hostile. They've threatened people with bans for mentioning FM.

But that may just be because people keep asking about FM in their threads, and they get tired of saying no or pointing people to the FAQ or "What works" list.
[Spirit FM] mikereidis:
:)

The free app is not on Google Play anymore. Links are at the top of post 1 of this thread.

I am the developer of Spirit FM. I have scripts that create 3 package files from the same source code: Free, Light and Unlocked. Light and Unlocked are on Play, or available from me via email for customers.

Also, the Free app can attain Light or Unlocked features if you have a valid license file. This saves me from having to send customers the latest paid packages.
[Spirit FM] mikereidis:
The Desire HD audio method (qdsp5v2 Plus/ICS) is kind of a hack.

The problem you describe is, I think, minor compared with missing phone calls, or having to reboot after running the app. And that's what we had prior to that hack.

I'll take a look at my DHD again, after I have a meal, and I'll see if I can offer any ideas.
[Spirit FM] mikereidis:
July 22 for Galaxy S3 on recent CM9 ROMs: http://d-h.st/GOf

- Manually set Audio-> Method to "Galaxy S3 ALSA". WARNING: Using an ALSA method on Galaxy S1 has produced speaker damage on some devices. I have no reason to think any such risk exists for GS3, but you never know for sure. Use this at your own risk, thanks...

This is a very crude, quick and dirty hack to enable FM audio via ALSA, instead of the stock audio library FM audio functions.

It is virtually certain to cause other audio problems. I'm amazed and very happy I got this far this quick.

As an alternative you can use July 9 or earlier CM9 SGS3 ROMs such as cm-9-20120709-EXPERIMENTAL-i9300-VOLUMEDROPFIX.zip .

- I also see the problem now where the 2nd start of Spirit after a reboot hangs. As has been reported, this might happen a bit less often when using the NEAK kernel and/or replugging the wired headset after shutting down Spirit.

I get the impression this is due to some bug in the Samsung FM driver in the CM9, NEAK and Siyah kernels at least. After running Spirit once, removing and reinstalling the FM driver manually results in a reboot, or a hang sometimes.

I'll see what else I can find and hopefully fix.
[Spirit FM] groksteady:
Whoops, I got a correction. I guess in Phnom Penh only one station is broadcasting RDS info. I was just scrolling through and one popped up. Shows up in app and in notification bar pulldown.

Spirit UL from Play, Galaxy S, pawitp's unofficial CM10 and Semaphore JB 2.0.a1. So I guess audio method Galaxy S ICS can Aldo include JB. So far works on Slim Bean and pawitp and DerTeufel's CM10. Spirit continues!

sent from a telephonic device
[Spirit FM] mikereidis:
I have aospX loaded on my DHD now and it doesn't seem to have this problem. BUT, for aospX I have to enable Debug-> Silent Loop, so that might help on other ROMs too.

Try enabling Debug-> Unmute Extra (3rd from bottom) and restart Spirit. This effectively turns Unmute into the sequence "Unmute, Mute, Unmute".

Depending on the ROM and audio libraries, you might have better luck setting Debug-> Mute kill mediaserver to "Disable". With this, you probably don't need the Silent Loop and Unmute Extra settings, but can try with and without those.

"Mute kill mediaserver" is automatically enabled with the DHD Plus/ICS audio method (also automatic). It's a nasty hack needed for normal audio and phone calls after Spirit is muted or turned off, at least on the DHD ICS ROMs I've tested (except the stock ICS ROM for a OneV or whatever.)
[Spirit FM] m1la:
dude you're great! july 21st gave me a signal but no audio. just noise. july 22nd works. i got a signal and audio. but closing the app and starting it again did not work. guess this is still work in progress?

do you need any log or something to investigate?

ps: this stupid captcha! it always takes hours to figure them out.
[Spirit FM] mikereidis:
RDS at the transmitter requires RDS encoder equipment and maintenance time and time to enter song info etc. It also "steals" some of the transmitter power. So if a station has limited resources, RDS is one of the first things they won't support.

Yeah, the Audio Method should work on any version of Android, as long as the ALSA driver is there and doesn't change much. But there are better audio methods on stock ROMs and CM7 ROMs, or their derivatives.
[Spirit FM] mikereidis:
Post 4115 says: "...very crude, quick and dirty hack to enable FM audio via ALSA... It is virtually certain to cause other audio problems. ". It also explains the 2nd start problem.

No log is needed when I have the hardware and can reproduce it easily.
[Spirit FM] mikereidis:
July 23 Free: http://d-h.st/org

- For Galaxy S3 on recent CM9 ROMs. Fixes second start problem.

Manually set Audio-> Method to "Galaxy S3 ALSA".

WARNING: Using an ALSA method on Galaxy S1 has produced speaker damage on some devices. I have no reason to think any such risk exists for GS3, but you never know for sure. Use this at your own risk, thanks...

- For Desire Z w/ CM9 port.

Enable Debug-> Silent Loop to get volume control w/ hardware buttons.

EDIT: I hear clicking noises after running Desire Z for a while. Am now trying with Silent Loop disabled.

Other ROMs or similar HTC devices may require setting Audio-> Method to "qdsp5v2" or "qdsp5v2 Plus/ICS".
[Spirit FM] fotoingo:
This does work on my phone but is there a way to use this fix with my paid light version?

Thank you in advance!

Ingo

Send from my SGS3 CM9 RC2!
[Spirit FM] m1la:
Just wanna give you a heads up. It's working here as well. Still no RDS but I think you are aware of it.
[Spirit FM] dboechat:
Is it possible to "unlock" these free versions or we have to wait for the paid versions update on the market?
[Spirit FM] SagiLo:
Hi

Any news ?

The suggested unmote/mute option didn't work ..
[Spirit FM] bsd350:
on cm10 experimental preview gt-i9100g i hear sound but a little quieter than can be on max volume, but no signal (with headphones! = 0 number on the top). So, i hear noise, my region of russia.
[Spirit FM] tarekkkkk:
YES ME TOO finally someone who understands :D

Mike please fix it for us i really need that app the unlocked version but it should work first right ? :D
[Spirit FM] mikereidis:
Yes. Email me for a license file. It gives the free app Light or Unlocked capabilities and avoids any need for Google license validation every 2 weeks.

And I can email you the proper package too.

But the license file is a good idea for the future, and allows you to use the free package just for testing without messing with your normal package.
[Spirit FM] mikereidis:
If you see 0 RSSI at the top with wired headset connected, then most likely the Samsung FM driver is not loaded properly. In that case Spirit will try to use the Broadcom chip and that won't work.

Unless you are telling me you hear some FM audio... Just hearing some noise indicates the i9100g audio method is still not working.

I'll try to put some time into the i9100g again tonight. Wish I could find the contents of that pastebin that went missing...

The Free package is fine for compatibility testing, if that's what you're asking.
[Spirit FM] tarekkkkk:
No i meant i wanna buy this app but i need to make sure it works first :)
[Spirit FM] mikereidis:
Was testing the latest DHD version 8.4 of IceCold Sandwich last night.

I find that after I run Spirit once with Audio-> Method set to Automatic (or the equivalent "qdsp5v2 Plus/ICS"), I can then set it to plain "qdsp5v2".

Plain "qdsp5v2" works much better.

I'll put some further effort in tonight.

EDIT: I see the Pause/Play button gets stuck on pause. Setting Debug-> Audio Focus to "Disable" and restarting Spirit avoids this, but then you may not detect audio notifications.
[Spirit FM] mikereidis:
Hmm. If Menu-> About says "...Unlocked..." then I think you are the only one reporting no RDS.

I added some additional RDS logs due to your problem, so if you can send me a new debug log I can look.
[Spirit FM] KrellaKrentoshi:
Thank You!

Thank you so much for this app, threads and helps! I finally took the plunge and rooted, Spirit FM works GREAT!! Again, Thank you!!
[Spirit FM] fabfor:
I'm on GS3 CM9 with SiyahKernel S3-1.3.8a and tried what you suggested. None of those audio method works for me. Good signal but no audio. Do you need debug?

With "Galaxy S3 ALSA" in free edition it works.

Also, if I remember correctly, you mentioned that I can have UL features in free edition, having the registered file on the device. Right?

What could be the reason why I have a clean free edition?

Thanks
[Spirit FM] mikereidis:
That was the "ancient" advice from a few days ago. Now that I've rooted and CM9'd my GS3, July 23 is the current best answer. :)

Yes, but this is intended for customers only.

I don't understand your 2nd question. Feel free to email me at mikereidis ..AT.. gmail.com
[Spirit FM] tarekkkkk:
great so now you can work for the s2g :)
[Spirit FM] dboechat:
Going from work to home right now, listening to radio with the latest July 23 version of Spirit FM on my SGS3 with CM10 Preview 8.

Everything working flawlessly! :D
[Spirit FM] Danezz:
Huawei Ascent P1 (U9200)

I have a new phone, the Huawei Ascent P1 (U9200) and would like to get my Spirit FM Unlocked working on it. Atm it is blocked, as i saw that most Huawei are blocked.

I already installed the newest Spirit FM Free app manually, but after starting it it seems to hang, and after some time Android comes up with "App not reacting...". I also tried with activating BT before, nothing changed.

The stock FM app works. (But has no RDS :'()

The phone has a TI chip (TI OMAP 4460) .

Is there a possibility i can help to get it working? Or at least try and give you some feedback?

Thanks in advance.

www_huaweidevice_com/worldwide/productFeatures.do?pinfoId=3298&directoryId=6001&treeId=3745&tab=0#

huaweidevices_de/telefone/ascend-p1.html
[Spirit FM] mikereidis:
Do "Clear app data" on Spirit, or just remove the app and re-install.

When you get to the intro screen, press the Back key so it doesn't start.

Then use Menu-> Test-> Email-> Logs and press Send when it finishes.

A TI SOC makes it more likely to be a TI FM/combo chip, but it's not guaranteed.
[Spirit FM] Danezz:
I don't even get to the intro screen, it just stays blank with the "Spirit Free" headline. (see photo) And there I can not do anything.:(

Maybe I have to add that the phone is not rooted (yet).

EDIT: In logcat I see "D/JFmRxNative(20054): Unable to open /dev/radio0 .." and a lot of "E/JFmRx (19540): create: exception during nativeJFmRx_create (java.io.IOException: No such file or directory)"

EDIT2: This is the logcat of the stock fm app. View attachment stock-fm.txt
[Spirit FM] tarekkkkk:
Spirit needs root....

Sent from my GT-I9100G
[Spirit FM] mikereidis:
Not always, even on custom ROMs.

On stock ROMs with an FM app, Spirit can usually work without root. It supports these 5 Proprietary FM APIs without root (in addition to 5 low level APIs):

- Broadcom

- TI

- Motorola

- Samsung Silicon Labs

- Qualcomm
[Spirit FM] mikereidis:
Thanks.

It looks like it's a Broadcom chip, but for some reason it isn't detected and the code for TI chips is having some problems.

If you root the device, perhaps we can get the Broadcom UART mode support working.

For stock unrooted I'm going to have to say it's unsupported for now. I have too much work in progress.
[Spirit FM] mikereidis:
GT-I9100G:

I put another 4 hours into trying to find out how to enable the G version FM audio tonight and came up empty again. Among other things I can't seem to find the framework jar code that was in the pastebin that disappeared.

So I think I have to abandon this effort, at least for the next several months, unless I or someone comes across some particularly useful information.

AFAIK, Spirit can work OK, with audio, on I9100G stock and stock derived ROMs.

Even if/when the first breakthrough for non-stock ROMs is made, there are virtually ALWAYS many fixes and adjustments required, and in the end I have to get a test phone. I only see a few on Ebay and they are rather expensive.

It sucks that Samsung came out with this very different Galaxy S2 with a TI OMAP SOC etc. and that people in some countries aren't able to get the regular GT-I9100.

I have several new very popular phones on the test bench that require my attention to fix their problems, and I'm happy to recommend them as generally nice devices with a good deal of custom ROM support and good support for FM via Spirit or other apps:

Samsung: Galaxy S3, Galaxy S2, Galaxy Note.

HTC: One X, OneXL/OneX LTE.
[Spirit FM] m1la:
Oh noes! My mistake! You are absolute right.
[Spirit FM] tarekkkkk:
:(

Sent from my GT-I9100G
[Spirit FM] Metallico:
Then all G users should lost our hope.

Thanx for your hard work Mike and this its a sadly new

Best regards from Uruguay
[Spirit FM] Lagkage:
The latest version on Google Play works great on a GT-I9100 with CM 10 Release Preview.
[Spirit FM] Jiangyi:
Well, thank you for trying, your efforts are appreciated. It's really too bad that Spirit FM won't run on AOSP ROMs for the G, it's really a great phone (I wouldn't trade it for an I9100 ever), and I hope perhaps things may be different in the coming days.
[Spirit FM] Danezz:
Ok I finally got root. App asks 3 times for root but then same result as before.:crying:
[Spirit FM] groksteady:
Hi Mike -- trying out the new Slim Bean on a Galaxy S i9000, and Spirit UL 14July is starting Bluetooth, which I never use, and then I hear no audio in my headphones. I tried this debug fix with UART, but I get a popup that says "Error: No FM accessible. SU: 2 FM:BC2 Su:1 BT:0 Ht:0 Mo:BCU.

Anything I can do?
[Spirit FM] mikereidis:
All somebody has to do is find the "trick" to enable FM audio.

But even though it's sometimes as "simple" as finding an "ssd" or "ioctl" command or two, finding it is very hit and miss and can take hundreds of hours of work.

And in the 1.5 years Spirit has been around, not once has someone come to me and said "this is how I enabled the FM audio". In fact Spirit started (or was preceded) with a month+ long quest to find the magic for the HTC Legend, which consisted of a single "ssd" or "set sound device" command/ioctl.

The si4709 FM chip has analog audio outputs, and I see evidence they may be available on AuxL/AuxR or Auxiliary Left and Right inputs. But I also see evidence that the I9100G FM audio may be digital, and that adds a new dimension and more complications.

If somebody builds a ROM that uses the stock audio libraries, the FM audio may work using the stock audio method. This was the case until recently with the GS3 running CM9. But like so many AOSP ROMs, sooner or later they are changed to use open source libraries. And as with CM9 on GS3 I have to figure out the low level tricks that don't require help from the libraries.

And this often results in a requirement for LOTS of new tricks, and even then it never seems to work right. (For example, broken speakers on Galaxy S.) When the audio libraries don't "know" about FM, lots of bad things can happen when phone calls come in or audio notifications play.

Modern audio hardware and libraries are very complicated. Trying to get FM audio enabled, disabled, etc. from an app, with no help from the audio libraries is like trying to sneek a few more instruments and musicians into the back door of a concert, and hoping they don't wreck the music.

Unfortunately, Android audio libraries from the OEMS (that support FM) are rarely open sourced. AOSP source code rarely (never?) supports FM. Android is not as open source as many would think.
[Spirit FM] mikereidis:
HCI or UART etc doesn't apply to Galaxy S/S2/S3/Note/Player.

You need to get an FM driver loaded. Without the Samsung driver for the Si4709, Spirit tries to use the Broadcom chip. An alternative kernel may help.

I'll see if I can try a JB ROM tonight.

It's starting to seem that the ICS excitement is dying already and being replaced with JB excitement, now that some ROMs are rolling out. So I may just switch my priorities towards JB ROM support.

Other than FM not really working, due to no FM antenna connection, Spirit runs fine on my Nexus 7 with JB, and is reported working more or less on other JB'd devices.

Time for dinner now...
[Spirit FM] groksteady:
ah, OK -- I know Semaphore can enable this, and there's a JB version. Thanks.
[Spirit FM] mikereidis:
One of these days, Spirit should be smart enough to tell you this.

But I get a LOT of satisfaction when a pirate emails me or sends a log and I get to say:

"I have the answer, but it appears you are running the pirate version with the nasty virus".

LOL.

Some of these people become customers at least. :)
[Spirit FM] mikereidis:
Email:

Hi, I wish I COULD fix it.

It doesn't work on my N7 either. I'm pretty sure the antenna pins aren't connected anywhere useful.

I plan to open up the RF shield and see if I can make a hardware mod.

Beyond that I have some FM USB dongles that I'm doing some preliminary testing with. With some work, it might even fit inside an N7.

But I'm pretty sure this will require a custom kernel configured to support USB OTG, as well as the V4L Si470x driver and the Si470x main driver.
[Spirit FM] tarekkkkk:
Mike i just an idea, you might benefit from it:

- Build a tiny Fm radio that connects to any android phone

- Build a software that works with this module on any running firmware, it doesnt depend on the current rom/phone.

- Profit.
[Spirit FM] mikereidis:
Profit ? LOL. :)

I've been thinking about this for the last year. I'd love to do it but I don't think it's viable. Of course I'm putting some test effort into it with the above mentioned $10 USB FM devices based on the Silicon Labs reference design.

But I don't think too much will come of it. Nobody wants a big dongle hanging off their phone. There WILL be people trying to fit tablets into cars, such as the $200 N7, and a dongle might be OK for them. But I'm not in any hurry to try and support hardware that only 10-100 people might use, especially since it will require special kernels.

Hypothetically it's possible to build something tiny that fits into the headphone jack or USB jack. But nothing exactly right exists AFAICT, and if it did I'd question how long it might be available for sale.

And there's no way in heck I can let myself get bogged down in a hardware project, in addition to the "too much work" I have going on in software.

If a phone doesn't support FM, a good option is the Sony BT + FM MW600 headset, as cheap as $40 on EBay. I just bought the new one, a $140 MW1 and it's nice and has RDS, but no presets.

I've poked around in the MW1 firmware a bit and hypothetically, if I had many months to put effort into it, I could likely create custom firmware for it and maybe even have it show RDS and allow presets from Spirit. But that's a "pipe dream".
[Spirit FM] mikereidis:
July 26 Free: http://d-h.st/kMA

- Various small fixes and adjustments.

If no major problems are reported this will go on Play soon.

I tested various CM10 / JB ROMs:

Galaxy S: First ROM had no audio, 2nd worked fine.

Galaxy S2: Good.

Galaxy S3: Good.

Galaxy Note: Good.

Desire HD: Good.

Desire Z: Only JB ROM rebooted. I think an alternate kernel would fix that.
[Spirit FM] dboechat:
Cool! Hey I've been testing the 23 July version without problems on my GS3, just wanted to know if it's still necessary to use the Galaxy S3 ALSA method. Not that I'm worried of possible problems with the speakers.... :)

And talking about speakers, I noticed that now I'm able to listen the radio on them without the need of headphones as antennas! :good:
[Spirit FM] groksteady:
Rats -- I'm guessing the one that didn't work was Slim Bean 1.0. Which is odd, I've had Spirit work fine on Slim Bean alpha 5, DerTeufel's CM, I think v4, and the 0723 unofficial build of CM. Without using Semaphore and the FM radio scrip module script.

sent from a telephonic device
[Spirit FM] dboechat:
Well in fact there's a problem, after using Spirit FM the phone doesn't output any more audio and I have to reboot it...
[Spirit FM] mikereidis:
When I looked last night, the Galaxy S seemed to be "blessed" with a total of 6 JellyBean ROMs. Most devices only seem to have between 0 and 2.

I'd been planning to test all 6, but only had time for these 2:

Bad: JellyBean-MKalter-V6.zip

Good: cm-10-20120725-UNOFFICIAL-galaxysmtd.zip

The bad one had a working FM driver, but there was no audio, and I couldn't coax any out with adb shell ssd commands.

My guess is that the fault lies in the kernel code driver for the wm8994 audio codec. AFAIK, Google sabotaged the FM functions in AOSP, LOL.
[Spirit FM] Limpy0000:
Hi Mike

Thanks for all your efforts

I have been running

July 21 Free: on my Galaxy s2 and can't get the speakers to play even after re-plugging them. Is this something you are looking into ?

Thanks
[Spirit FM] mikereidis:
I've been getting a LOT of no speaker reports on SGS2, so I'll look into it more deeply. My SGS2 seems fine, but I don't use it much for other audio or phone calls.

Which ROM and version ?

By re-plugging, do you mean the half unplugged trick that was the only way to get speaker mode in older releases ?

Have you tried July 26 Free: http://d-h.st/kMA ?
[Spirit FM] mikereidis:
CM9 / 10 looks like it may be getting FM radio support again, including, or at least, for some Sony Ericsson device.

I will be happy if the CM devs will be taking care of the many audio routing issues I've been facing on CM9/10.

Changes are listed here, but I don't think they apply to SGS2 as this link might imply: http://changelog.bbqdroid.org/#galaxys2/cm9/next
[Spirit FM] mikereidis:
Slim Bean doesn't have the Samsung FM driver in it's kernel. You see RSSI jump around, -128, 55 etc. That's a hallmark of the Broadcom chip which isn't connected anywhere useful for FM.

I flashed the latest Devil3 kernel here and it works fine: http://rootaxbox.no-ip.org/divers/104/jellybean/Devil3_1.0.4_jb_i9000_CFS_BLN_CMC_20120727.zip
[Spirit FM] mikereidis:
July 27 Updates on Google Play.

July 27 Free: http://d-h.st/GAV

- Almost no changes relative to July 26.

Please give me bug reports or observations ASAP, as I will be going out of town in a few days.

I BADLY need some vacation and house/life-work time. The next month or so there likely won't be any new features or new device support. I'll try to tackle major bugs as time permits.

Just dealing with email and posts every day is almost a normal 40 hour/week full time job.

I expect to tackle the new Galaxy S2 speaker issue. I removed audio method functions to make it simpler and more robust, and not stick in speaker mode, but I guess some of those functions helped. Difficult to know why when my SGS2 doesn't exhibit the problem.

Anyone ever hear of slight audio system differences in Canadian Galaxy S2s ? I heard something about that for S or S2 I think.
[Spirit FM] groksteady:
July 27 UL working great on SGS with Slim Bean 1.0 and latest Devil kernel. Thanks for sussing that out, and all your work on Spirit in general.

Enjoy your off-time! Don't check-in -- you give us so much already .

Cheers

sent from a telephonic device