yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Current and next phase of Spirit:

I think I'm ready to call the current 2011-2012 phase of Spirit FM mature and essentially feature complete.

The next few months I will devote my non-support time to minor fixes, code cleanups, documentation and design of the next phase.

Licenses for Unlocked will likely transfer, either with the current package name (easier) or a new package. I'll have to see what's best.

The next phase will see the next generation of features, including recording, Bluetooth output and some forms of signal processing (VU meters, visualizations, who knows ?). Perhaps some "scanner" and "squelch" features for those using the Japan band for public service listening (ambulance, police etc.)

Likely much more of course. Perhaps some open sourcing, support for custom UI apps, plugins for different chips or APIs... I've had some interest from a well known streaming app development company; would be nice to find a way to leverage help from others.

In order to do this and remain sane, with some personal life, I'll have to narrow my focus:

- Probably ICS and up support only. Heck, maybe JellyBean+ by the time we get to 2013. Most of my (expected) customers are running custom ROMs and I suspect most of those will be running JB by that time.

- Support for low level APIs only. Again, most customers run custom ROMs that have no other app for FM. It would be easier if I didn't have to deal with "normal" users, who already likely have an FM app on their phone.

- Limited support to selected popular devices among custom ROM users. IE, mostly Samsung and HTC. But we'll see, LG and Motorola both now have "this or next generation" Qualcomm MSM8960+ SOCs and maybe Qualcomm 3660 FM too.

Basically, if a phone looks like a good bet to help me maintain the half decent income I now thankfully have, without requiring me to work 70+ hour weeks to support it, then I will buy one, or at least a very similar device, so that I can support it properly.

- I will explore options to open source at least part of the code, support external apps for UIs, create a plugin system for new audio methods of FM chips/APIs and whatever else might improve things without increasing my workload.

Thanks for all your support, recommendations, etc. :)
[Spirit FM] Nogardrevlis Lectar:
Oct 16, also on Play: http://d-h.st/aOS

- Fix Galaxy S2 and Note no speaker problem on Oct 14 release.

- Maybe fix for Galaxy S plus GT-i9001. Please report.

This version works with GT-i9001 without crashing but i got no audio of it
[Spirit FM] alezas:
Great App. Good work! thanks
[Spirit FM] Batman66:
Mike, can't blame you... I was planning on getting another HTC, after my good experience with my old HTC Aria. Initially looking at the Rezound, then leaning toward the newer Incredible 4G. However, since this is my work phone, I needed one able to work also on GSM network and I had to go with Verizon, hence my options got restricted essentially to Motorola phones only.

OTA FM radio is certainly not at the top of the list when it comes to phone selection criteria, however what annoys me is the arbitrary decision on part of Google and/or the provider to remove access to it even when the hardware would allow it. So much for the "freedom" of running on Android (I know, I know, opening a Pandora's Box there...)

Our phones get loaded with bloatware that only a fraction of us will ever use. Most of us find it annoying and will disable it under ICS (finally possible!) or even remove it after rooting. Why not leave FM operational and give to the user the choice to use it or not? Even if they do not want to bother with making an app for it, they could at least leave the hardware accessible so that developers like you can do their stuff! I know, preaching to the choir :o
[Spirit FM] mikereidis:
Thanks for your report. 3 "thanks" on your post leads me to believe you're not alone with this problem and it's important to get it fixed.

Anyone with this phone, please send me a debug log with Menu-> Email Logs or Menu-> Test-> Email-> Logs.

This is a good example of how difficult it is to support devices I don't have.

I don't recall the "back story" right now, but if someone could tell me it happened between this date and that date, that would be great. As far as the less frequent Play updates go, I presume Sept 24 worked, and Oct 14-17 didn't.

I guess my biggest question is does this work: Oct 5: http://d-h.st/PA6 ? I imagine the big changes in this started the problems: Oct 12: http://d-h.st/fRQ

Thanks !
[Spirit FM] mikereidis:
Hmm, with my winding down the "current 2011-2012 phase of Spirit" I thought perhaps I should just say "support not expected".

But someone sent me a debug log and I'm thinking that I've never tried the ALSA controls to get FM. And there is some reasonably good documentation for TI chips including OMAP...

I guess there is a TI TWL-6040 audio chip. It has analog Line In pins specifically marked as recommended for FM I guess. And it looks like a simple analog path from there to the speakers or headset.

So I'll try to come up with some commands to test. If anyone is capable/comfortable running "adb shell" commands, I could post some to try.
[Spirit FM] Jiangyi:
There is indeed a TWL6040 chip inside the I9100G, if my memory serves me well. I'd be more than happy to test out those commands for you. :)
[Spirit FM] mikereidis:
Oct 27 Free: http://d-h.st/AKM

- Possible GT-i9100g audio enable solution.

- Galaxy SL GT-i9001 possible enhancement. No longer automatically enable Play Audiotrack on qdsp5v2 audio method devices, except for qdsp5v2 Plus AIC devices such as Desire HD/Z with AIC3254 DSP.
[Spirit FM] mikereidis:
Wonderful. :)

If this works, especially if it's stable, it's a much simpler solution than I had thought. And it appears FM audio digitization is possible, for record etc., just so long as you don't need one of the microphones active, such as during a phone calls.

Step 1: Install Oct 27 linked in above post.

Hopefully it just works. If still no audio, try get the audio chip powered by enabling Debug-> Silent Loop and restarting Spirit.
[Spirit FM] Jiangyi:
Thanks for this Mike, I'm getting audio output now on the I9100G! Only thing is that the pause and speaker/headphone switches are extremely wonky (Sometimes they work, other times not, and sometimes music would come out of both speakers and headphones). Sent you a log, hope it helps. :)

EDIT: Also, there's no sound without attached earphones to act as antennas, but that's not really an issue.

EDIT 2: Volume adjustments don't seem to have an effect.
[Spirit FM] mikereidis:
Try Oct 27: http://d-h.st/AKM

Or just set Debug-> Play Audiotrack to "Disable" and restart Spirit.
[Spirit FM] mikereidis:
WooHoo ! :)

Well, if you want it to run well, and for FM recording to work, I need to get one, and I'd appreciate support with a purchase of Unlocked so I can get one.

Feel free to let me know you're a customer with a GT-i9100g with a post or PM or email. and I'll use that support as a guide to what I can bid on Ebay.

And $600+ for new is pretty darn high. I don't even care if I find a unit that's half-broken, in the right places, as long as I can test with it.
[Spirit FM] Jiangyi:
I had some trouble with my Email client, it seems like it didn't send. Just to be on the safe side, I have attached the log here instead: http://www.mediafire.com/view/?5f6un408fh2wdwp

I haven't purchased the light/unlocked version as of right now as I was uncertain of whether it would work on my device or not, but now there's some good news, I think I should get around to that sooner or later. :)
[Spirit FM] mikereidis:
Antenna is normal. Without it only the cheaper Galaxy 5 etc. series works decent.

Try Oct 27a: http://d-h.st/JJ6

Volume control might work better if you enable/check Debug-> Silent Loop and restart Spirit. Or uncheck it and set Debug-> Play Audiotrack to "Enable" and restart Spirit again.

EDIT: Oh, yeah, do we Blame Samsung ?
[Spirit FM] Jiangyi:
Tried those 2 things, no luck.

New log gotten after trying the Play Audiotrack trick: http://www.mediafire.com/view/?bhv6g44vtwy6um4

Sent from my GT-I9100G using the XDA-Developers app
[Spirit FM] superlik:
Tried 27a, volume not working properly, and not loud, irresponsible to the scale set..anyway, didn't expect this at all to work for g version, appreciate your work, you are genius Mike

Samsung galaxy s2 I9100G, Cyanogenmod 10 latest nightly, stock kernel, mixer theme
[Spirit FM] mikereidis:
98% perspiration. :)

I think the Samsung FM driver is different than other devices. RSSI doesn't appear to work, and same with volume I guess.

On the free version I think this adb shell command would work to set volume to maximum of 7:

/data/data/com.mikersmicros.fm_fr/files/ssd 4 2 67 7

Range should be 0 - 7. I can put this into the code. I look forward to a bump in sales as encouragement. :)

But time now for pizza, a gory "guy movie" and bed.
[Spirit FM] ZRong223:
Mike, you saved both my phone and life!!!

It's a great start.

Please don't give up! We support you!! :D

Will buy your app after my exam when you success.

Found one more bug...

The FM will mess up the CM volume settings.

The phone must be restarted to restore the settings back.
[Spirit FM] :
Working great (Rootbox 3.0 G)

Volume control not working. Gonna buy this app!

Doesnt mess up Rootbox volume setting.

Not compatible with my phone on Play store. Hope will come very soon.
[Spirit FM] bsd350:
CM10 latest gt-i9100g

1. Volume control does not work

2. When switching to speaker and than back to headphones, get 2 sound outputs, from speaker too.

radio works fine.
[Spirit FM] mikereidis:
:)

It's a "brute force" method that resets the entire audio system, but you can work around that by setting Debug-> Power Restart Media to "Enable".

Beats rebooting anyway.
[Spirit FM] mikereidis:
Thanks ! I've re-enabled the GT-i9100g on Play.

I'd forgot I disabled it. I think Spirit was OK on stock ROMs, but I was getting tired of too many people purchasing and having no luck on CM or whatever. Hmm, I guess that's a good sign of sales to come. :)

Bummer is the Play version doesn't enable audio yet. With some deftness one might be able to run Free and another at the same time.

Or for customers, just send me an email for the latest test release or a license file that turns Free into Unlocked or Light.

Back in 8-12 hours.
[Spirit FM] Metallico:
Thanks Mike.

You're doing a excellent work.

If this app can run properly i will purchase it

Edit: I tried it and it works but can't select the volume level.

Btw: I'm in Uruguay south America and spirit its not on market. I don't know why because it was

Enviado desde mi GT-I9100G usando Tapatalk 2
[Spirit FM] :
i

but the play store version is still oct17, possibility will not work on g version? gonna hold my purchase

somehow it disabled the touch sound when toggling headset and speaker
[Spirit FM] Metallico:
I found it in market.

My bad

There's some possible solution to the volume control?

Enviado desde mi GT-I9100G usando Tapatalk 2
[Spirit FM] Jiangyi:
I can confirm the command to be working and the range is indeed 0-7 (I would've expected 0 to be mute, but it doesn't seem to be that way). Thanks Mike!

Sent from my GT-I9100G using the XDA-Developers app
[Spirit FM] Metallico:
That means that you can choose the volume level?

Enviado desde mi GT-I9100G usando Tapatalk 2
[Spirit FM] mikereidis:
Good. :)

Well that's strange and annoying that 0 doesn't mute it. We can get one extra volume step this way, with the right code, but it's an exception compared to all else.

If you haven't already, I'd be interested to hear if -1 or -2 changed volume, or 8-15 or 4294967295.

I don't think anyone has said if Oct27 or Oct27a is better. I'll stick with Oct27a unless I hear otherwise.

I'll get a new version up on Play ASAP with a hopefully working volume control.
[Spirit FM] Jiangyi:
OK, so my testing shows that:

-1 is the same as 7;

-2 is the same as 6;

8-15 is the same as 0;

4294967295 is the same as 7.

Also, 7 seems to be extremely loud with quite a bit of cracking coming out of the speaker on the phone. I'm slightly worried that this may be too much for the speaker to handle.
[Spirit FM] mikereidis:
Thanks. Yes 7 may be too much. AFAICT 3 is the default, even though FM hasn't been started.

Block diagram of the codec shows output volume controls that are probably the right place to change. Thing is, if you have Debug-> Silent Loop enabled, a silent audio file is looped which should provide normal volume control. Debug-> Play Audiotrack is similar but doesn't actually start a data transfer.

I can probably change the ALSA controls in Spirit, but it's generally better to let the audio libraries handle that.
[Spirit FM] wcoast:
What's the status with Galaxy S III ? I tried the sep 24 but is not working

From The Next Big Thing
[Spirit FM] mikereidis:
Oct 27b has, hopefully, a temporary fix for FM volume control on GT-i9100g.

Based on the posts above, it is probably best to not raise volume over one half or 50% of full volume.

As always, unfortunately, I can never be sure that some inadvertent error might blow out a speaker or headset or audio chip. This is even more true in this case when I don't have the phone to test in front of me.

There are only 7 volume steps, or perhaps 3-4 if you keep it below 50%.

I've decided to be "evil" for now and only upload Oct 27b as the paid Unlocked app: https://play.google.com/store/apps/details?id=com.mikersmicros.fm_unlock . It should be visible within minutes if not already.

As always, I cancel any order at any time, so anyone can feel free to try for several weeks, and later cancel or downgrade to Light etc.

I had a $ 160+ bid in for a 9100g on Ebay but am now out-bid.

I haven't been able to check my email for 10 hours and have to get out and cut my grass now... :)
[Spirit FM] mikereidis:
Works fine for me and many others. :)

If you have Light or Unlocked, send me a debug log with Menu-> Email Logs and press Send after 10-15 seconds, after putting some text in to identify yourself and your problem.
[Spirit FM] wcoast:
I will try again and let you know, any special settings?

From The Next Big Thing
[Spirit FM] Metallico:
Hey Mike, when you talk about BLOW the speakers or audio chip, it means that really it can damage?

Sorry about my english man and thanx for the excellent work.
[Spirit FM] :
can someone pls translate this to simple English? this great app will cost $10 usd
[Spirit FM] jugg1es:
I basically means he won't hold you to Google 15 minute refund window

sent from the thing I stab with my finger when I get two minutes
[Spirit FM] :
so what happens after 15 minutes? still can get refund i guess
[Spirit FM] jugg1es:
email the dev directly

sent from the thing I stab with my finger when I get two minutes
[Spirit FM] mikereidis:
Disabling some system sounds is normal now, but I should probably restrict that just to Desire HD/Z and similar devices that need this to prevent problems.

Spirit should restore the values on exit, but a crash in Spirit or a crash/reboot of the phone will leave the changes active.

You can disable this feature be setting Debug-> Suppress System Sounds to "Disable".
[Spirit FM] bsd350:
i also found if other active application (e.g. icq) will give out sound while playing the radio in spirit - than fm radio get paused.
[Spirit FM] mikereidis:
Yes. My policy is that I want no unhappy customers. (Not possible, but whatever.)

So I cancel any order on request at any time, even a year old or more; I once did 10 months.

This is also a mechanism for someone to upgrade from Light to Unlocked for the difference.

I recognize that people have a choice to pirate if they want, and can find a good version without too many viruses (LOL, confirmed truth.)

So my customers are willing, honest and happy customers, who know I do all I can to make them happy on an ongoing basis. And if nothing else is valuable to you, such as ongoing support, you're buying a convenient update service at a minimum.
[Spirit FM] mikereidis:
I have no reason to be more concerned than for any other device, but yes, anything is possible and I just want people to understand any software has risks.

This is currently a problem for the Galaxy S GT-i9000 and has been for 14 months now. Long story, see post 3 if interested.

If you're worried, wait for others and/or myself to prove it works without problems.
[Spirit FM] :
everytime I launch the app, it requests for permission. a bit annoyying.. at least a dialog box. Any setting for SuperSU?

So far, no station show RDS info. Is it working for G version?

Preset now working. Can save but cannot retrieve and use
[Spirit FM] bsd350:
volume control now works fine, but 2 bugs:

1. Volume bug. If radio stands on pause, after resuming volume does not match the mark of volume control (e.g. we have 10 positions of volume, we set 8 position loud. After pause radio and resuming we don't have 8 but hear like 3)

2. after turning on speaker mode, to disable it we need to pause radio and than in menu! set to headphones and after that resume playing. So icon is not working properly. And without pause does not work too.

Supressing other sounds works, but it's not good because conflicting with other apps. So if i turning on apollo player when fm is on, spirit says bye...
[Spirit FM] mikereidis:
That's a SuperSU issue. It or SuperUser generally provide a checkbox to tick to not get prompted every start.

In SuperSU there's an "APPS" tab. Select Spirit and set Access to Grant. Or in the "SETTINGS" tab set Default access to Grant, but recognize this is dangerous if you run malware.

If you are running Unlocked and RSSI at top left is at least 30 or so, I'm guessing no. Only Unlocked supports RDS.

For some weird reason it appears the "Samsung Silicon Labs" driver being run on 9100G is different/deficient compared to other Galaxy S/S2/S3/Note/Player devices.

RSSI doesn't work, volume doesn't work and I guess perhaps RDS doesn't work.

I've never heard of this problem; Presets don't work at all in the free versions. If you're a customer running Light or Unlocked, please send a debug log immediately after setting, then trying to select a preset.

Use Menu-> Email Logs and after 10-20 seconds press Send.

Thanks...
[Spirit FM] mikereidis:
Oct 28 version from Play ? I haven't announced it yet, but there's a new hopeful solution for GT-i9100G volume in that release.

The problems you're seeing are understandable, so I will hopefully be able to resolve them soon.

But in the end I really need to get a 9100g myself.

I think you're talking about loss of "Audio Focus". It's normal and expected that starting a 2nd media player type of application will stop a 1st media player. This is called "permanent loss of focus" as opposed to the transient type from a notification, ringing, phone call, or even navigation audio.

If you don't like this official Android way of doing it, you can set Debug-> Audio Focus to "Disable" but this will cause problems with transient focus loss.
[Spirit FM] mikereidis:
Oct 28 is now on Play for Light and Unlocked. No corresponding Free release, at least for now.

- Hopeful fix for GT-i9100G volume. Probably still a bit "wonky".

I NEED a 9100g to make it work properly, and my EBay bid is outbid again. "Quid pro quo", don't ya know. :)

- Minor mods for other Galaxy devices.
[Spirit FM] bsd350:
yes, that was in october 28 version - volume control works, but with this 2 bugs i told.
[Spirit FM] Flint2:
Problem in Samsung Galaxy S2 AOKP based ROM

I've purchased light version, thank you very much for your hard work!

The problem i have is that there is no sound in internal Speaker after using your app.

Only solution is reboot or workaround using headphones for phone call.

I've submitted a debug log thru the app to mail.

Device: Samsung Galaxy S2 i9100

Rom: Resurrection remix 3.1.0 (AOKP Jelly Bean Build 5)

Kernel: Dorimanx 7.4.2
[Spirit FM] :
using Lite version on S2 G:

- volume control a bit unstable. I have problem the radio will mute/stop if i press something because pressing button will also make sound.

(meaning, if i use lite version, i can touch my phone/cant use/navigate)

- I will get unlocked version if confirmed RDS working for G
[Spirit FM] mikereidis:
We resolved in email. I've added this to the FAQ as several other people have reported GS2 /Note issues lately:

Problem on GT-i9100 (and other Galaxy's) on CM 9.1 and perhaps other ROMs: Speaker mode can stick when using speaker mode in Spirit. IE, mute or FM off from speaker mode makes music come from speaker instead of wired headset.

One solution to remove and re-insert the wired headset jack. Another is to enable Debug-> Power Restart Media. This will help after turning FM off, but won't help during mute.

Some other GS2/Note audio problems, particularly regarding speaker modes, can be solved by changing Debug-> Galaxy S2. The "June 15" selection seems to work best on stock & stock derived ROMs. The current default of "July 27" seems to work best on custom ROMs. Try them all if problems persist. A restart of Spirit is not required, but might be useful.
[Spirit FM] mikereidis:
OK, I'm looking.

RDS might require a differently configured kernel. It's weird that a different driver is used.

Can you confirm RSSI signal strength at top left doesn't work on 9100g ? I'll presume seek and all else works OK, besides the audio, RSSI and RDS issues.
[Spirit FM] mikereidis:
If Spirit disappears from Google Play, your device could be an inadvertent victim of my compatibility list cleanup. If so, let me know.

Too much of my time is used by people trying to use Spirit on incompatible devices. The way Google makes this configuration "opt-out", and the way perhaps hundreds of new devices are released every month make it difficult to keep up. And Spirit is a VERY hardware dependent app.

EDIT: See http://xdaforums.com/showthread.php?p=33751133

I wish Google would just let me set 200 devices (or device names at least) as compatible. But even then, it's a major pain trying to figure out every code for every phone, tablet, etc. Many are not listed by a known name, but a code.

Just one more reason why the next phase of Spirit, which I may call Spirit2, will be limited to a reasonable handful of maybe 6-12 "general device/architecture" types, and perhaps no more than 50 code-names total. This way, I'll be able just to spend a bit of time every week or month or so, to disable all the devices not on the supported list.
[Spirit FM] :
zero (o) or - 1 displayed at top left

- seek is working fine. preset working fine. can lite version display rds info?

- volume up down working fine (only works when radio is open/displayed), else volume of the system will change or best disable volume key press sound (sound adjust works even radio not on screen)

- toggle speaker/headset (need to pause and reselect to work properly)

update: suppress audio (enable) helps to reduce pause/stop when pressing/navigating

- AV apps and SwiftKey key press sound also stop radio
[Spirit FM] ReeSilva:
Is there any chance of see this awesome app on Motorola Razr I (almost the same of Razr M but with Intel Medfield (x86))? The sound doesn't work =x

Edit: no more problems, making some configs on debug page I get make it works well on Razr I :D

If anyone needs, I set FM chip to TI (Motorola), FM API to OEM Proprietary and check Silent Loop on Audio options.
[Spirit FM] mikereidis:
Thanks.

RDS requires Unlocked. If you see RDS on other local radios, send me an email and I'll send you a copy of Unlocked to test.

When I look at a few previous debug logs sent, I see no evidence of RDS. (Half are from pirates, LOL.)