yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
That's just a cosmetic change.

"Su:1" used to mean "Have SU", then it meant "No Su" while 0 meant "Automatic / Not Set" and that kept confusing me, so I subtracted 1 from the number and present it as "Su-:".

Numbers higher than 1 now indicate a different SU method than the default "Echo" method.
[Spirit FM] mikereidis:
Yes, that's what I said. It just LOOKS like it worked.

The Audio Method switching code does a mute with the old method first, before enabling the new method, to avoid these confusions.

But in this case it doesn't appear to work.
[Spirit FM] mikereidis:
Wonderful ! :D

If you haven't already, I hope you'll consider the Light or Unlocked versions to encourage my further work.

I keep track of the Market/Play statistics for different phone models and Android versions to see which ones I should concentrate on.

This week I bought a Motorola Droid 2 and an HTC Desire Z, and I'm hoping to get a Samsung Galaxy S2 soon. These phones aren't free and neither is life. :)
[Spirit FM] mikereidis:
I hate to get TOO "Markety", but emails like this make my day and help balance the nasty free version Market comments: :)

Thanks for your purchaseS ! :)

I've seen several people buy both, and I've been curious about why, but I haven't used my access to their email to ask, at least yet.

Anyone who asks can have their order cancelled, even months later, and that includes people who upgrade to Unlocked of course.

Let me know if you have any questions or concerns.

Thanks,

Mike.
[Spirit FM] vispinet:
new semaphore kernel

Hi mate,

in the last semaphore kernel the changelog says: - "Radio FM support as module".

Could this be of any help regarding the Galaxy S issues?

Thanks for your work. I'm always following the thread :)

EDIT: of course I'm talking about the semaphore kernel for ics (I'm using aokp).
[Spirit FM] mikereidis:
No, it's not for FM audio.

It provides a /dev/fmradio or /dev/radio0 device that FM apps need to use the si4709 FM chip.

So it's essential for FM, but doesn't address audio routing.
[Spirit FM] mikereidis:
For Galaxy S2/Note using "Galaxy S2 Test" Audio Method:

April 13: http://www.mediafire.com/?g4d0at7b3nc3p1z

I took a new approach. I examined the FM stuff in a Note ICS ROM that includes a working stock Samsung ICS FM app.

The ROM is AlBa_ZCLP5_ICS_Full_Repack_v2.zip available here: http://xdaforums.com/showthread.php?t=1579301

Then I implemented pretty much what I see the Samsung app uses.

When you test, be sure to try the speaker mode, as it contains an extra function.

This Audio Method will likely not work on pure AOSP ROMs without any Samsung audio libraries. It is more likely to work on ROMs that include Samsung libraries, especially if any Samsung FM app runs on it.

Beyond this attempt, I can try to tackle direct control of the Yamaha C1YMU823 / MC-1N2 codec drivers. It seems that FM start and stop functions are built into the driver.
[Spirit FM] mfenetre:
Working on SGS II with CM9

Whhoooooooooooooooooooooooooooooooo !

Amazing. It. just. *******. works !

I just tried it on my SGS II with CM9 (your April 13th build) and it WORKS with the Galaxy S2 Test Audio method.

One small issue though: I was not able to have the sound only on the headphones, it kept using the speaker, no matter what volume level I used. (I mean, with headphones on, the sound was on speaker

and

on headphones). But since I have the Free version, I'm not sure if this behavior is expected or not, since I was not able to use the speaker icon at the bottom.

Dude, this is just fan*tas*tic. I am so happy. Let just us know about this headphone/speaker thing and I'll be sure to buy the full version of your app, you deserve it for your great work.

Anyway, thanks again for your work!!! :cool:
[Spirit FM] tltan86:
Its works for me too! :D

Running on

CM9 0411.

Sent from my bot crawling all over the web
[Spirit FM] mfenetre:
What about the headphone/speaker glitch ? Have you noticed it too ?
[Spirit FM] confusedmuse:
Great! Working here on SGS2 + CM9 0411 (no custom Kernel).

I have no speaker glitch!
[Spirit FM] mfenetre:
No more glitch...

Okay, I just received a phone call. After that, I tried the app again, and the sound was only on headphones, no more glitch. I unplugged and plugged again the headphones, it works correctly now. Great !

Mikereidis, please let us know when the app will be updated on the Play Store, so I can buy the full version !:)
[Spirit FM] SwissResl:
Could someone please share it on a mirror? (e.g. on dropbox)

That would be great
[Spirit FM] jawsm:
How to install sgs2 test version?

I tried using cwm, but installation failed:(

Edit: works, changed extention from zip to apk, didn't notice it while downloading...:)

Verstuurd van mijn GT-I9100 met Tapatalk
[Spirit FM] Nitemare_real:
It's just an APK, tap on it and install...
[Spirit FM] tltan86:
Me too! :thumbup:

Sent from my bot crawling all over the web
[Spirit FM] kyraxyg:
It really works. I will buy the app as soon as the new version for galaxy s2 is out.

Having FM in CM9 makes samsung roms useless.
[Spirit FM] mikereidis:
Lucky Friday 13 ! :D

Holy carp, there's 77 downloads already in under 3 hours. Seven & seven counteract Fri 13 I guess, LOL.

I'll update the Light & Unlocked versions on Market/Play in the next few minutes.

Please test the phone functionality especially w/ calls coming in while listening to FM.

The SGS2 I'm looking to buy doesn't have a working phone portion, I think. But if phone calls are going to be a nasty issue I'll have to get one with a working phone.

Anywho, if I have the only working FM app on SGS2 w/ CM9, perhaps CM7 and other ROMs, then I think buying a better SGS2 or an International Galaxy Note will pay for itself soon. :)
[Spirit FM] plazzTT:
This is great, thanks! Never thought an app would be able to get FM working on SGS2 with CM9, considering FM radio is officially "not implemented" on this rom.

Just purchased the full app.
[Spirit FM] Pondy:
FYI this works on my DHD running ICS (Lords 7.2 AOKP). Choose :

qdsp5v2 Plus/ICS as the method
[Spirit FM] Spyr0s:
There is one lib not present in SGS2 AOSP roms, libfmradio_jni.so, do you think that will make any difference in solving the speaker/headphone problem if i put it in /system/lib?
[Spirit FM] mikereidis:
http://dl.dropbox.com/u/72464322/413fr.apk

I just got this dropbox account and this is my first file, so hopefully that URL is good.
[Spirit FM] mikereidis:
Thanks ! :)

I thought the FAQ said "Not yet implemented".

But as I pointed out a few pages back, the CM9 folks for SGS2 seem to be hostile to any questions about FM, and seem like they may never support it.

And in fact, if my app will fill in that gap, that may make it even easier for them to ignore FM.

Long live "ancient", analog over the air technology ! :D
[Spirit FM] mikereidis:
Works on my DHD too. :)

But it tends to mess up other audio, including phone calls sometimes.

The improved HTC method works much better, but it requires a stock derived ICS ROM such as Primo 3.3 or IceSense V.
[Spirit FM] mikereidis:
It can't hurt to try, but I seriously doubt it, with 1 possible caveat.

That library provides the Samsung FM framework code with a way to access the FM device driver at a low level. My app doesn't need it in low level mode.

IF the Samsung FM framework code is present, then it could use that library. Then Spirit could use the Samsung OEM API.

And it's possible that using the Samsung OEM API will clear up some audio issues. But I doubt it.

If a person or two could send me debug logs after switching speaker / headset and mute / unmute a few times, I might get some clue about the glitch.

But I'll be able to deal with such issues MUCH better when I get an SGS2 of my own to test with.
[Spirit FM] plazzTT:
It says "FM Radio: not implemented" here, and you're right, it doesn't look like it would have been officially implemented any time soon.
[Spirit FM] mikereidis:
At the risk of reading WAY too much into simple sentences, the FAQ here: http://teamhacksung.org/wiki/index....quently_Asked_Questions#Is_there_FM_radio_.3F Says:

But as I've said, they've been threatening to ban posters for even bringing up FM.

Funny thing is that someone tried to add patches to CM7 last year, but they were rejected, it appears, at least in part due to the use of proprietary APIs.

I have no qualms about doing whatever needs to be done, proprietary or not.
[Spirit FM] mfenetre:
Do you have the speaker/headphone bug too ? I encountered it once, and since I've received one phone call, the bug has disappeared. I was not able to reproduce the problem, but I'm gonna try anayway later today.
[Spirit FM] kulas2004:
I want to ask why i could't buy light version? Full version is available but not light. I got SGS2 and Poland carrier.
[Spirit FM] mikereidis:
Poland and 3 other countries were just added to use local currencies a few days ago.

For some reason, my updates didn't get saved for the Light version.

I have hopefully corrected that now and you should see that within 15 minutes.

Thanks !

==================

Had an email about "happy with tears", re the SGS2 ICS FM. :)

It's the end of my working day; will be back in 8-9 hours.
[Spirit FM] njitram2000:
I can confirm that on the SGS2, receiving an incoming call while using the app (you don't have to answer) will disable the speakers and make audio go through only the earphones. BUT, now it's impossible to get the sound through the speakers again. The toggle and the settings have no effect and unplugging the headphones just leaves me with no sound at all.

On the other hand, I do want to to congratulate Mike with being the only person to have a working FM Radio alternative. This allows me to try out roms without having to give up radio.
[Spirit FM] lrbpereira:
I have Mar25 unlocked version, how can I update to Apr13 unlocked? Get a market link but it changing me again...

Want to express my biggests congrats to the developer, radiofm is a big + for me in my SGS2, use it a lot, and there are a lot of haters out there that dont think the same! Many thanks!
[Spirit FM] otorrisi:
Hi, thank for your work, i live on colombia, south america region, the spirit fm app, is not working on my device, in setting i have tried every region with no luck, any ideas?.

Device: SGSII GT-I9100

Rom : CM9 20120411 Nightly

Best Regards.

Edit: I didn't mention that i have no sound, the application did not crash or anything, sorry for not to mention early. Regards.
[Spirit FM] kyraxyg:
Bought the app. Thanks for your effort.
[Spirit FM] Zewsan:
I have been waiting for this and following the thread, i knew that if someone could do it, you could.

It works!

Will buy the app to support your efforts, i read how much work you do on this app.

Thanks a million, i went back to stock roms a few times, just to get radio..

Currently located in Romania, Hope you can add it also, but Europe setting seems to work.
[Spirit FM] SmXtrem:
I have seen some interestingh things, today i installed the spirit free on my Samsung Galaxy Mini, and i see when the hadphones are pluged i must lisent to radio on minimum volume while its to laudon a stage higher.

Its safe to use for Audio default\CyanogenMod ?
[Spirit FM] mikereidis:
Try Audio Method "Samsung BC".

EDIT: Oh, you are running CM9 for the 5570 ?

I think the only solution for now is to set Settings->Audio->Volume Scale to a number much lower than the default 100. You might try values around 15 or 20.

This is less than an optimal solution, because the audio will be noisy, noticable most at low volume.

We've had the same problems on CM7. Maybe we can convince the ROM dev to fix this, as the best solution is probably in the audio library. I'll try to find out what I can.
[Spirit FM] mikereidis:
Woohoo & Wow ! :) :D

777 downloads on mediafire, a new record for me, and broken in just 13 hours or so. (Again with the 7's and 13, LOL.)

And a WHOLE LOT of Light and Unlocked sales, though I see a few are cancels, tsk, tsk...

I have to go make dinner for my family now, but I'll be back in an hour or so to deal with all the emails and posts. And yes, I make dinners during the week, my wife on the weekends, since I work from home. :)
[Spirit FM] mikereidis:
:)

I'll probably remove a lot of those countries soon. Only about 5-6 sets of settings are needed, and I won't just add every country in the world to the list, or it'll end up way too long.

And the names and borders of countries etc. is always changing anyway...
[Spirit FM] mikereidis:
The LONG sought after and hard won "secrets" to get FM audio working on ICS (& GB ??) for Samsung Galaxy S2 and Galaxy Note and perhaps other related devices, including the upcoming Galaxy S3.

Some devs with paid apps might consider keeping these secret, and I've considered that too.

But FM on Android is much bigger than one dev and I need all the community help I can get, so I share this info with the expectation that it will benefit all of us in the long run.

I would be very grateful for any help in improving this. This code is merely a first run at a quick hack. I don't even have any phone to test this yet, and I think it should be considered a "small miracle" that it works as well as it does at this time.

For Mute/Disable:

setRadioSpeakerOn (false);

setParameters ("fm_radio_volume=off");

//muteFmRadio (1);

setParameters ("fm_radio_mute=1");

setParameters ("fmradio_turnon=false");

For Speaker:

setParameters ("fmradio_turnon=true");

setParameters ("fm_radio_volume=on");

setParameters ("fm_radio_mute=0");

muteFmRadio (0); // Don't really need.

setRadioSpeakerOn (true);

For Headset:

setParameters ("fmradio_turnon=true");

setParameters ("fm_radio_volume=on");

setParameters ("fm_radio_mute=0");

//muteFmRadio (0);

setRadioSpeakerOn (false);

- SetParameters() and SetRadioSpeakerOn() are in "android.media.AudioSystem" aka AudioManager.

- muteFmRadio() is in "android.yamaha.media.AudioHardware". I think it's equivalant to:

setParameters ("fm_radio_mute=X");

But it might work in cases where the basic audio libraries don't support "fm_radio_mute=X".

======

Spirit uses those 3 audio functions (Mute, Speaker, Headset) for all audio switching/enabling. Eg, if Mute is pressed, or a phone call comes in, Mute() is called. If Mute (Unmute) is pressed again, or the phone call ends, Speaker() or Headset() is called, depending on the previous state.

Spirit also usually calls an FM API specific mute/unmute function for Mute() and Unmute().
[Spirit FM] mikereidis:
:)

Issues with Google Play Store are best handled by email. Then I can email you a copy and try to figure out what's going on.
[Spirit FM] mikereidis:
Region shouldn't matter for getting audio working.

You set Menu->Settings->Audio->Method to "Galaxy S2 Test" (near the bottom) ?

And you're using the April 13 version ?
[Spirit FM] otorrisi:
Hi, thank for your help, is working perfect right now. Tomorrow i would by the full version.

I would promote your app on CM9 thread, there are a lot of people requesting fm radio, but the developers always say it's imposible. great work.

Best Regards.
[Spirit FM] mikereidis:
Just be very careful you don't get banned or otherwise chastised for bringing it up.

And many CM9 devs and fans don't like the idea of commercial software...

I was threatened with a ban on the CM7 SGS thread many months ago for what they felt was promotion of a paid app, despite that I just made a few posts and that my free app was more capable than the CM app at that point.

So I generally don't discuss my app on most of the CM threads now, and rarely even post on them for unrelated issues.
[Spirit FM] ouija147:
THANK YOU!

Couldn't download the free version...so I took a chance and bought the lite version.

WOW, it works on my SGS i9100 international model.

I don't need anymore features than the light version, but this is so unexpected and welcomed that I am buying the full version just to support an awesome dev.

Thanks and thanked, and purchased. :D

the ouija
[Spirit FM] mikereidis:
Thanks ! And you're not alone in buying both today. :D

And thanks for the support of SO many people !

I sold over 30 copies of the Unlocked version alone today, and even considering that Google only pays 70%, today was my best day ever, by over 50%.

Most of that was outside the US of course, since US GS2s have no FM. Darn you, US carriers...

And I guess it helps a lot that this is an expensive phone and that demand is pent up due to lack of support or info on custom ROMs.

Support like this cements my decision to buy at least one GS2, and maybe even a Galaxy Note. And of course I'll put the proportionate time in to ensure it eventually works as flawlessly as possible.

RECORD ?

And... since the audio circuitry seems similar to, if not identical, to the Galaxy Note, I'm thinking that FM record may be feasible. (It's theoretically possible on the old GS, but without library support I can't do it.)

Searching for "record" in the stock GS2 FM apps shows me a few strings, but none of the recording code that is in the Note FM app.

If someone wants to try, on the paid versions only, while FM is running, select Menu->Test->Record and then "start 8 (Galaxy Note)". Then. after several seconds select "stop". There should now be a file named like "FMRecording-1731335741.3ga" on the /sdcard/.

If that doesn't work, "start 9" or "start 10" might work also, after the previous start was followed by a stop.

This might work on GB ROMs also, especially stock ROMs.

If FM recording works well on the GS2, then recording will likely become a "live" feature of the Unlocked version. As always, I cancel any order on request, so that provides an upgrade route from Light, even months later.
[Spirit FM] ouija147:
No joy

All three modes create recordings that are zero byte files...so no joy

using latest cm9 from 4.13

edit:

one of the reasons I bought the international version was to have the radio, but CM7 and now CM9 are just far and away better than anything samsung has put on the phone
[Spirit FM] mikereidis:
Galaxy Note N7000 International w/ FM & FM recording: I think I'm going to buy one.

Newegg sells the Blue one for $560 shipped, or $580 here in Canada: http://www.newegg.ca/Product/Product.aspx?Item=N82E16875176317

I've bought computer parts from NewEgg before and they are pretty good.

If anyone has thoughts about buying the Note from them, or prices or whatever, post here, or better yet on the Note Q&A thread I opened here: http://xdaforums.com/showthread.php?p=24833848

Thanks !
[Spirit FM] mikereidis:
Thanks.

It's possible it's just a problem with some of the parameters, but I will wait until I get an SGS2 to explore too much further.

But it may be promising that you got 0 byte files, instead of a microphone recording. The app silently limits the number (8, 9, 10) to the maximum available, so this may mean the number for FM recording can be used.

If "start 1 (mic)" works to record from the microphone, after a reboot and no FM to be safe, then I think that means the parameters are OK. You'd probably see the same with "start 7", whether 7 is supported, or the limit drops it down to another of the many microphone modes.
[Spirit FM] on2a:
Great app. It's impressive to see FM working on this device, nicely done sir!

My only advice is to consider the User Interface. I understand it's early stages but a nice UI will definitely help to draw in more users.

An interface like those classic radios will do the trick!
[Spirit FM] vispinet:
So are you close to solve the sgs I9000 issues? I can't wait! :-)
[Spirit FM] Souf0:
Hi,

I've a SGS2 with CM9, and i check that the fm is ok for my phone with the free version, then, i bought few minutes ago the "spirit fm lite", but i can't hear the fm in the headset.

I change in Settings->Audio->Output Device->Headset, but i allways hear in the speaker.

A LOT OF THANKS FOR THIS APP

P.S.: In google play: "Please email mikereidis@gmail.com for ANY problems or questions.", but i think is better put this question in this forum, if it's not better, no problem, i can delete it.

Thanks

Sorry for my english :S
[Spirit FM] Tremosnak:
SE ST17i

I'm Android noob. I would like to try Spirit FM Radio. But on Google Play I got this report: This application is not compatible with your T-Mobile Sony Ericsson ST17i.

Is there any possibility that the Spirit will work on my phone?
[Spirit FM] Souf0:
Maybe it's not compatible with your android version.

What's your android version?
[Spirit FM] njitram2000:
If you want the sound through the headset, get an incoming call while the app in running (you don't have to answer). After that the sound will only come through the headset and not through the speakers (no matter the settings). This "fix" has worked for at least me and one other person on this thread. Mike is aware of this bug.
[Spirit FM] rederik79:
In my Galaxy s2 with the last cm9 version work flawless, thank you so much, finally the radio on cm9
[Spirit FM] otorrisi:
I can't buy

Hi Mike, i can't buy your application on google play, because my amex is not acepted (strange because i had buy other stuff from google play without a problem), do you have another option where i can buy?

Thank's and Regards.
[Spirit FM] mikereidis:
Yes that's very strange, thanks for your report. There's nothing about my app or it's settings that should do that.

I sell about 1% of apps via Paypal. The problem is that I still have to send updates manually by email. I expect to automate this soon, but it's hard to say when and it's gone on a while. Some people get annoyed because Google Play keeps telling them an update is available, but then they can't get it via Play.

So it's best if we can get it done through Google, even though Google takes 30%.

Sometimes Google's payment systems are fragile, especially for certain countries. If you email me I can send you a copy for now and you can keep trying through Play. If it persists you can complain to Google. Unfortunately they won't even talk to me as a vendor, but they will talk to you.

Email: mikereidis@gmail.com
[Spirit FM] mikereidis:
:D

But,... It doesn't matter what I do, there will ALWAYS be people who don't like the UI.

It looks best on ICS, and IMO best on stock HTC ICS. Your ROM has influence on how it looks. And try out the Theme and other options under the User Interface settings.

You can also setup your own background images with /sdcard/sprt/bg.png or bgl.png for landscape.

There's a LOT that can be done with the UI Elements settings too.

And, have you seen what it looked like a few months ago, Or a year ago ? If you're new to the app you may not realize how much has changed.

AND,... I'm trying to do a job Google said they didn't have the developer resources for, LOL. I'm still trying to support MANY devices and the reverse engineering required is VERY difficult and time consuming.

It's better for me and I think all of us for me to continue to concentrate more on device support. Over 50 people bought my app yesterday, not so much for how it looked, but because it's the first FM app that works on SGS2 on ICS ROMs, or at least CM9.

And I'd REALLY, REALLY like to find a way to stop breaking speakers on SGS.

Thanks for your thoughts, but feel free to see what you can do based on what I've written above.
[Spirit FM] mikereidis:
Give me a few days and I'll see if I can replicate the exact kernel messages as for stock or CM7.

But that will be no guarantee. Only 2-4 weeks with no further reports will give me some confidence, and perhaps 8 weeks to call it definitely fixed.
[Spirit FM] mikereidis:
Thanks for your purchase. :)

Many people have reported this issue, until they receive a phone call, then it seems OK. I presume a mere notification is not good enough,

I'll try some "random" things, and perhaps add a few test functions int the next few days, and those of you with an SGS2 can try them.

Once I get an SGS2 of my own, perhaps within 1 week, I'll be better able to fix issues.