yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Email:

I call the current 2012 GUI "functional", old school physical like "button-oriented" and better than 2011 was. :)

GUI is not among my strengths; low level hardware oriented is.

If you can write decent Android Java apps without any tutoring from me, you can certainly help. You could write apps, widgets or whatever you want to the Spirit2 & ST-Ericsson proposed Android FM API. I might also eventually support an API usable by App Inventor, for those with little or no Java background.

There are sample receive and transmit apps here: https://android-review.googlesource.com/#/c/21829/ and the implementation code and APIs are here: https://android-review.googlesource.com/#/q/owner:benn.porscke@stericsson.com+status:open,n,z . There's an ancient 2+ year old document available as well.

I am currently prototyping Spirit2 within the existing Spirit1, so it's possible now for external apps to interface to the low level Spirit FM server API. And some Sony 2012 phones support this API.

As far as I'm concerned, anyone developing such an app can open source it, give away, or sell it; doesn't matter to me. BUT, the app would be dependent on Spirit, unless it was a Sony phone, or the stock or custom ROM was built to support the API.

In a perfect world, Google and the OEMs & carriers would have blessed such an API years ago, and we'd all be able to write simple apps to this common API, without needing all sorts of proprietary undocumented stuff and kernel and HAL/library hacks.

If you aren't able to independently code Android Java apps & just want to offer advice, I'm happy to hear it, assuming you're putting it in the public domain and won't sue anybody next year. :)

But I can't commit to anything that requires a bunch of work from me at this time. GUIs can be nice & pretty, but pretty doesn't help much if there's no reliable, maintainable and upgradable infrastructure underneath it.

Regards and Merry Christmas,

Mike.
[Spirit FM] antonio89drop:
Thank you!
[Spirit FM] steph2007:
Hello all,

Recently purchased a Motorola RAZR i (UK - XT890) which I've been happy with except no FM radio by standard :mad: I was about to buy a copy of Spirit FM but glad I found this forum first!

Anyway, reason for signing up and posting here is that whilst I haven't risked Spirit FM so far, I have managed to get the FM radio on this working with this FM radio app by Sutton Shin?

https://play.google.com/store/apps/details?id=com.motorola.fmradio&hl=en

Although the volume isn't particularly loud - but it does tune in fine.

In which case, I wondered whether Spirit FM would work on this specific model of RAZR? It's all very confusing with the conflicting info out there of it's not hardware enabled vs it is capable but disabled in the firmware, etc! I can only so far work out that the RAZR is different hardware to the Maxx?

Thanks in advance!

Steph
[Spirit FM] mikereidis:
Perhaps you're not aware I'm the developer of the Spirit FM apps. See post 1 if you want to try the free version. Anyone can try a paid Play version as long as they want; I cancel any order at any time on request.

Search this thread on "Sutton" for some background info. He posted the unmodified Motorola FM app as a paid app, and when Google finally figured that out I think they changed it to free.

Yes, Spirit works on Razr I, stock and un-rooted, as do a number of Motorola FM apps and modified versions.

The Razr I (Intel based) is very different than the Maxx. AFAICT the Maxx is not capable of FM.
[Spirit FM] Yansuke:
Can you show me how to Use busybox pro?
[Spirit FM] mikereidis:
I'm happy to report I've had some successes in prototyping digital audio for Spirit2 within Spirit1. At this point these test features will be available in Spirit1 (as unsupported test features) well before Spirit2. So Spirit1 isn't dead yet.

AFAICT, I think this will make Spirit the first FM app anywhere that can do FM over Bluetooth. :) And finally, I can see FM audio working with the CM spectrum live wallpaper...

My GS2 GT-I9100 running CM10.1 seems to be working well with a "full digital" (after the ADC) architecture. DSP Manager doesn't seem to work at this point though. Bluetooth A2DP headset works fine and recording WAV files should be fine also.

My GS3 GT-I9300 on the other hand doesn't seem to be wired as needed for a full digital architecture for stereo, but mono seems usable. Bluetooth A2DP was fine in stereo, and recording should also be fine. But this unfortunate wiring means the simplicity of full digital isn't possible and will require extra work. EDIT: Found a nice digital stereo trick. :)

AT&T HTC OneX LTE was partly working but I couldn't get it stable over a 16 KHz sampling rate with mono audio. But the Qualcomm devices aren't my main target at this time.

It remains to be seen what hassles will arise and what workarounds will be required. Audio notifications and phone calls may and likely will cause some trouble.

I suspect audiophile ears will be able to detect a reduction in audio quality with digital audio, due to the added A -> D -> A conversion, but it seems to sound fine to my tin ears.

OTOH, if the GS2 audio chip ADCs are decent, it's possible a high quality BT headset might sound better than wired headphones. The GS2 audio chip is considered lower quality than GS or GS3, but I'm not sure if that extends to the ADCs alone.

I hope the GS4 has FM, and has a full digital connection to the FM chip. The GS3 chip supports digital, but it seems not connected.
[Spirit FM] steph2007:
Thanks Mike :) It's a huge thread and was half asleep last night when checking it out :embarrassed:

I've just installed your free version and that's working a treat! I only looked on marketplace originally and could see the paid versions - but will definitely sort a paid copy soon as it's excellent.

I wonder why the default FM radio wasn't added in the Razr I?! :strange: Oh well, I'm happy :)

Steph
[Spirit FM] belizaire:
Please please pleas!!!

I have the samsung GS III running CM10. I need this app in my life.... Will it work 4 me and if not will it ever?
[Spirit FM] PiotrekStargard:
Hello Mike. As far as I could read, the Motorola XT557 has the same on-board chip like lg p700 (msm7627a). Could I ask you for help to write a hint how to make my LG phone play sound on your app? I tried all methods listed thorough this thread, unfortunately still no audio. Keep up your great work and all the best in the new year:)
[Spirit FM] mikereidis:
I think you need a phone with usable FM, more than my app, or at least before.... but whatever.

There's a GT-I9305 (and or GT-N7105 ?) thread somewhere in which at least one person seems to think there is no si4705 FM chip, as is in the 9300 and 7100. I'm not 100% convinced one way or another yet. I'm waiting for the service manual/schematic to come out.

Anyone is welcome to try and get an FM driver loaded in the kernel on one of these phones. I don't have these phones, and don't plan to get one so somebody besides me will need to take the initiative.

Spirit investigation can start once an FM driver is loaded in the kernel. If there's no chip shown in the schematic, I think chances are very low though.
[Spirit FM] mikereidis:
If it's the same SOC then this line I wrote is important:

- Audio-> Method = "msm7x30 Custom" for future devices. Set Debug->msm_snd speaker & msm_snd headset.

Just need to know the values to set. Send me a debug log from the latest release with Menu-> Test-> Email-> Logs and after 20 seconds press Send. That should give me the numbers.
[Spirit FM] PiotrekStargard:
The mail with the promised log file has been sent. Regards, PiotrekStargard.
[Spirit FM] pguasta:
Hi,

I have and Motorola RAZR i and I recently downloaded the free version to try it. It's works, BUT its stops the vibrating of all the phone (when I touch the screen, in the keyboard, etc.). If I reset the phone everything is working again, until I open the app.

There is a solution for that?

Thanks in advance
[Spirit FM] Derzis:
for Sony Xperia use this: FMCyanogen

http://xdaforums.com/showthread.php?t=1717236
[Spirit FM] mobileacc.ma:
Error: No FM accessible. SU:1 Fm:BC Su:0 Bt:1 Ht:0 Mo:BCU

Hi What does this mean, am getting "Error: No FM accessible. SU:1 Fm:BC Su:0 Bt:1 Ht:0 Mo:BCU" - I have galaxy Samsung SIIx from Koodo. SGH-T989D and Android 4.0.4

Pls clarify.. thx in advance..
[Spirit FM] mikereidis:
You can set Debug-> Suppress System Sounds to "Disable".

But that will likely cause FM audio to stop when some system sounds are triggered.

AFAIK, there is no better solution than these 2 choices, or at least none I'm aware of now. Does using one of the Motorola apps cause one of these problems ?
[Spirit FM] mikereidis:
SGH-T989 does not have usable FM, and that's pretty much what the debug info is telling us.
[Spirit FM] mikereidis:
Thanks.

I can't get the info though, because your phone isn't rooted, and even with the info, root would be needed.

This is the info from my old compatibility list, and I guess nothing has changed:

I see there is a stock FM app. Assuming it works, the secret to enabling audio is within it. But it would take me several hours to several days to figure it out, and sorry to say, I don't have that time to spare for this phone.

If none of the existing audio methods work, a brave person willing to possibly risk damaging speakers etc. could try the various functions in Menu-> Test-> Audio to see if one worked. I don't think any risks are huge, but you never know. I don't personally hesitate to try them. Many will likely mess up audio on the phone until reboot though.

A reverse engineer would look through radio.apk for clues.
[Spirit FM] mikereidis:
(Potential coming Broadcom & TI FM chip problems noted at end of post.)

Any disappointed GS3/Note2 user should note my EDIT. Fully digital audio advantages are worth finding tricks for.

I've noted FM over Bluetooth can use 40% of the CPU (one core ?), with over 20% for just the Bluetooth portion which I thought was excessive. Then I tried a music player over Bluetooth and saw it did the same, so it's an inherent Bluetooth A2DP issue.

I've learned that I'll have to "attach" an equalizer or whatever to the audio stream, to get those features. At least it's easier than building my own equalizer, and should work.

Regarding Bluetooth, I've noted that Android 4.2 JB is getting rid of the open source Bluez BT stack, in favor of a much expanded "Bluedroid" stack, which has been written by Broadcom, the biggest Android OEM for BT/WiFi/FM combination chips.

I'm not sure yet, but this may impact Spirit1 support for Broadcom and TI FM chips. Broadcom chips with BT off may still use UART mode, but there may be problems with Bluetooth on.

But I wouldn't be surprised to see AOSP based ROMs like CM at least continue to use Bluez for a while.

It remains to be seen how much work it will be to move Spirit to support Bluedroid, in addition to Bluez.

Strangely, given the (previous) popularity of Broadcom combo/FM chips, at this time there is no support for Broadcom chips planned for Spirit2. There are simply no popular high end devices in late 2012 using Broadcom chips for FM (although Samsungs use it for BT & WiFi).

High end Samsungs use dedicated Silicon Labs FM chips and the few S4 devices with usable FM use Qualcomm WCN3660 combo/FM chips. Even if I support HTC OneX(+) International, with the possibly doomed TI WL1283 combo chip, the interface is via a /dev/tifm driver and not directly to the Bluez API.
[Spirit FM] pguasta:
I tried a "FM Radio fixed" and it had the same problem.
[Spirit FM] mikereidis:
These can be among the down-sides of using a phone with no official FM support.

...

Was just reading a reason why some system sounds aren't easy to disable. In some countries a picture without a camera click is illegal. Probably an anti-voyeur/upskirt type measure, LOL.
[Spirit FM] mikereidis:
Happy New Year ! :)

Dec 31, 2012: http://d-h.st/GCI

The first FM app that can do FM over Bluetooth, in high quality stereo. :)

This is a test release only. Tested mostly on CM 10.1 nightly Dec 29, but should work on other ROMs, including stock. Tried stock JB leak at one point and was OK.

Digital audio seems to be running pretty well on GS2 GT-I9100, Note GT-N7000, GS3 GT-I9300 and probably Note2 GT-N7100. No others are supported, unless they are very minor variants.

Set Audio-> Method to "Digital Test" (near bottom). Spirit will crash. Restart it. If no audio, or if audio disappears, try mute / unmute slowly.

Speaker won't work, unless you partially remove the headset plug. A2DP Bluetooth headsets should work.

Set Home/Lockscreen live wallpaper to spectrum to see the frequency spectrum.

Recording won't work.

The digital audio is in stereo, but the free version sets the FM chip to mono. As always, use an Unlocked license file, or email me for Unlocked if you're a customer.

This isn't a "supported feature" at least until I get a better idea of the problems and limitations.

I'm very interested in audio quality impressions.
[Spirit FM] skdubg:
happy new year. :)
[Spirit FM] PiotrekStargard:
[/QUOTE] A reverse engineer would look through radio.apk for clues [/QUOTE]

Is it possible and difficult to modify the on-stock fm app to make it support RDS data? Could you please share some link with the tutorial how to do it?

I also remember you mentioned the "msm7x30 custom settings". Despite my SOC is msm7627a, I remember you wrote something about values in msm_snd speaker and msm_snd_headset. There are some values stated in fact. Do you think changing them can make Spirit FM sound work? If so, what range of values would you suggest? Thank you in advance for support.
[Spirit FM] mikereidis:
Anything is possible, but it's way too difficult, and there is no such tutorial.

Rev-enging the audio and letting me in on the secret is easier.

It's easier still to root your phone, but I can't guide you on that.

Easiest solution (if funds allow) is just to get a phone with a stock FM app you'd like.
[Spirit FM] AF_624:
Happy New Year...

What a great work you have here bro... :)

I m using a Sony Ericsson Neo V with a CM10 (JellyBean 4.1.2) based rom.. Can i have some hope to have your radio working on it?

Also, i m forom Portugal....

Thanks in advance...
[Spirit FM] mikereidis:
:)

Sorry, no, Sony & I haven't gotten along too well.

I'm now UN-officially supporting stock ROMs on Sony 2012/2013 devices that use Radio3.apk and that's the closest I've gotten or expect to get.
[Spirit FM] AF_624:
Ok bro, thanks anyway..

Keep up your great work...
[Spirit FM] aryehzev:
Happy New Year!

I have a sensation running cm10 and all i hear is static... is there any settings i can change to make it work?
[Spirit FM] mikereidis:
Ensure the wired headset is plugged in, and try a different one if you can.

Otherwise, the trouble-shooting tips are here, and at the end it describes sending debug logs: http://xdaforums.com/showpost.php?p=31983151&postcount=4465
[Spirit FM] makbil:
Just bought the top version from Google and very pleased with it. Worked almost out of the box on my HTC One X on ARHD 18.0 ROM, all I needed to change was the region (Europe or Turkey, both work). It's nice to see RDS finally working. It's a shame to have a top of the line device but no RDS in FM radio.

I've only had 2 issues so far but I must admit, I've just started reading the thread, so maybe they are already addressed. A few times I had the sound cut off when the screen turned off, finally I tried to put phone on landscape mode and let the screen turn off on its own and it's working now. Also had a few 'application stopped' messages when I switched from portrait to landscape but application restarted immediately and the music wasn't even cut off.

Overall, I'm extremely happy I bought this sw, well done.

As I said before, I didn't even do any specific configuration in settings for my device, I'll do my homework first before venturing that way :p
[Spirit FM] mikereidis:
Great ! :)

Bugs with changing orientation usually happen only at startup. You could try setting Menu-> Settings-> User Interface-> Orientation to "Automatic" if you haven't already, or back to Portrait if you have. It's worth a try & for info anyway.

For audio cutoffs on the OneX International with Nvidia Tegra SOC, you can try enabling Debug-> Silent Loop and restart Spirit. Or turn Silent Loop off and set Debug-> Play Audiotrack to "Enable" and restart. If it works, Play Audiotrack is better to conserve CPU & battery.
[Spirit FM] Sun90:
Hey @mikereidis

was a forced visit to ur thread, since some members @ RR Rom thread were complaining about ur app not wrk'ng properly on RR latest v3.1.3(4.2.1 based).

So being a beta tester of the said rom, just dwnld'd ur free version 12/21,2012 free and installed the same on my S2 running RR v3.1.3.

and my First impression on the app is 'WOW', wrks flawless, no issues of any sort found as stated over in my RR thread (neither from the app nor because of the RR Build).

Now i am forced to purchase the same, which i would do without a second thought;), i would thank u first for this Wonderfull app:)

and also to those members over there on RR thread, because of whom i got forced to visit ur thread:)

Now i feel no regrets with the same, as i found a wonderfull companion (ur app Ofcourse):)

thanks and regards

Sun90
[Spirit FM] franky_z:
Hi!

Can you make SpiritFM work for CM10 on LG 2X? CM10 is at a very good development state, but there is a FM Radio missing. On CM7 it works fine!

Thanks for your work, best app for FM!!!
[Spirit FM] mikereidis:
P990 has never worked on ICS+ ROMs for over a year now, despite several attempts at support.

I made a new effort 2 months ago with the "LG4/P990" Audio-> Method setting, but no success.

I know more about the wm8994 audio chip now, due to my recent work on digital audio for GS3. So I'll take another look; next release will allow forcing the GS3 digital mode, and that might prove at least one channel.

Try Jan 3 below. Please be warned that I don't have any really similar phone, so I have no idea if the new code might harm hardware. If you can't accept this risk (which I think is small, but who knows?), don't try it. Also see last bit in next post about Audio-> Method = "Digital GS3/Note2".
[Spirit FM] mikereidis:
Jan 3 Free: http://d-h.st/lfL

Also on Google Play.

- GS2/Note / GS3/Note2 experimental AOSP ROM WAV file record support.

Digital audio must be enabled. Unlocked has Menu-> Record and Menu-> Stop Record (when recording).

Files are date & time named and placed in /sdcard/Music/fm/ .

- GS2/Note / GS3/Note2 experimental digital audio support via Audio-> Method = "Digital...". Restart Spirit after setting.

Now only works for 5 minutes unless you have Unlocked version.

Bluetooth A2DP works. Speaker mode does not work, but removing the headset plug partly enables speaker and maintains antenna connection.

Set Home/Lockscreen live wallpaper to spectrum to see the frequency spectrum.

- Unlocked ICS+ lock-screen support. Works OK on CM10 and likely many other ROMs. Some stock ROMs may not support.

Controls are same as media buttons; pause/play, previous, next.

RDS PS and/or frequency/station ID is shown.

See User Interface-> Lockscreen Display to customize.

- Changes to Audio-> Method = "LG4 / P990". Maybe it will work. Maybe it will melt speakers if we're unlucky; one never knows.

Alternatively, for Optimus 2x / P990, try Audio-> Method = "Digital GS3/Note2" within first 5 minutes of starting Spirit. One channel might work.
[Spirit FM] silvscorp:
Anyone get this fully working on HTC Amaze 4g? I got the Dec built paid version but it doesn't work for me regardless of rom i am using. Tried various setting and debug options found in the forum but just can't get any channel working, just the hissing sound as there is no signal at all.

Anyone can help? I'd love to get this working with the CM10 rom.
[Spirit FM] mikereidis:
The Amaze should work fine. I have 9 paid customers with it as of 2 months ago. But being a bit rare, I get little feedback on it.

As always, send me a debug log with Menu-> Email Logs and after 20 seconds or so press Send.

Trouble-shooting tips are here, but I can usually figure out problems from the debug log: http://xdaforums.com/showpost.php?p=31983151&postcount=4465

Make sure you have a wired headset plugged in for the antenna.
[Spirit FM] silvscorp:
hi mike, thanks for your fast response. Followed your link i am able to get some sound out by enable bt socket under hci access. However, still experienceing below issues:

1. rssi is very low. using the same stock htc headset the sense fm radio works flawlessly where spirit fm never reach above 5 rssi.

If get closer to window ro get outside, there is a small improvement but not much.

2. in setting, region is set as north america, but the channel selected work correctly. for example, if set channel to 100.3 (pop music) the output is always playing hispanic music.

not sure if these are related, and it seems its not seaching through the wrong region/bands. any input on these?

thanks
[Spirit FM] bobarune:
Latest Spirit UL update on Google Play killed audio for me on my Evo LTE. Version before worked but not anymore. I haven't changed any of the default settings.

"You might have a very minor case of serious brain damage."
[Spirit FM] mikereidis:
This part of your post I don't understand, unless you're saying the frequencies are wrong. I've heard a similar report or two in the past on TI FM chips, which the Amaze uses, but I don't recall if that was reported on an Amaze.

If you say "...NOT seaching through the WRONG region/bands..." then that implies it IS searching RIGHT. Confused...

Hmmm, once again, I have little experience with the Amaze. One person has always said it worked well, and another with the exact same ROM (Stock ICS I think ?) had a lot of problems.

The Amaze, like the International OneX(+), uses a new-ish /dev/tifm interface on stock ROMs at least. I tried via Bluetooth socket, on my OneX, like most other TI and Broadcom chips use, and it wouldn't work.

Maybe... it's possible via Bluetooth on AOSP based ROMs, but the firmware isn't getting loaded right. I've had similar problems with older TI based Motorola devices that wouldn't get a good signal unless the firmware was loaded.

Maybe we can use the same "trick". Set Menu-> Settings -> Debug-> Motorola FW Load to HCI and restart Spirit. If that doesn't help, try "Ext hcitool" and "Int hcitool", restarting each time.

I don't recall getting a debug log from you yet with Menu-> Email Logs.
[Spirit FM] mikereidis:
Thanks for your report, and sorry about that. It's tough to change code now without breaking some device...

Jan 4 Free is here with the fix: http://d-h.st/prK and is updated on Play as well. I also added a partial fix that affected media button pause/play on wired headset cable or new lock-screen controls.

BTW, if you have Unlocked and are itching for RDS on AOSP ROMs, you can set Debug-> FM Chip to "STE AFM RX" and restart Spirit. I don't think it's 100% stable yet though.

There's also an audio method for "Digital OneXL/S" now, but it's unstable and reduces the default 44.1K sample rate and stereo to 11.025K and mono. It's not clear yet if it's possible to be stable, but you'd think a mostly digital FM chip should be.
[Spirit FM] svetievboris:
Hi Mikereidis,

I'm trying to use Spirit FM on my Grand X In but so far it doesn't seem to be able to pick up a FM signal. The indicator for signal strength is at first on -128 and then goes to 0 and stays that way. I've tried some of the different settings debug mode with no effect but I'm basically poking in the dark here as I'm not familiar with the purpose of those settings.

So, what can I do to make it work on my device?

Thank you and have a Happy New Year,

Boris
[Spirit FM] mikereidis:
About the only ZTE device Spirit has worked on is the SanFrancisco2/Blade2/Crescent/Vivacity . And I'm not officially supporting that anymore either.

So, I don't know, and I think chances to get it working are pretty low.