yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Thanks ! So it's similar in the SGS2, except it starts with speaker on.

This might be due to the slightly different ports used for audio between the SGS2 and the Note. And/or some config change the Note CM dev made to what was originally the SGS2 CM.

Don't worry about your English, but I think we shouldn't say "spirit change the output device to headset".

It seems to me that it's the system/ROM that is changing the outputs.

When speaker switches on, with volume control at Home screen trick, I see these lines, among others in the kernel log:

<6>[ 1692.243532] mc1n2 6-003a: write 17 = 19

<6>[ 1692.244072] mc1n2 6-003a: write 17 = 1919

<6>[ 1692.244562] mc1n2 6-003a: write 17 = 1999

<6>[ 1692.244991] mc1n2 6-003a: write 17 = 9999

When returning to the app, this is seen:

<6>[ 1695.886880] mc1n2 6-003a: write 17 = 9980

<6>[ 1695.895426] mc1n2 6-003a: write 17 = 8080

<6>[ 1695.895647] mc1n2 6-003a: write 17 = 8000

<6>[ 1695.895828] mc1n2 6-003a: write 17 = 0

So for some reason, the system/CM9 is making these changes. Spirit does nothing directly that I can imagine would cause these changes. The only thing is that the ROM may be changing audio focus.

Try enabling Debug->Silent Loop, restarting the app, and see if the switches stop occurring.

It's also possible that setting Audio->Volume Ctrl Stream to 8 or 10, and restarting the app, may change things.

I'm going to try some different ICS ROMs to see if anything is different.

I also have an EBay bid in again for an SGS2, so hopefully I'll get one within a week or so.
[Spirit FM] groksteady:
I actually hear a notification tone. I just received one for K9 email; it should be in the logcat that I emailed you. That also will have the logs for receiving a call, in which call audio isn't totally lost like in 18b, but I had to toggle speakerphone on/off to get the call going.

One thing I did notice: I use Podax for podcasts; when it automatically updates in the background (i.e., not playing at all), it kills Spirit. But then, when I play Super Daddio, I can keep the audio on -- with or without game music -- and still listen to Spirit. I suppose this is something that is wrong with Podax, but just thought I'd mention it.

I'm currently on the April 21 release, Galaxy S ICS/ALSA method, on an SGS with AOKP build 33.
[Spirit FM] mikereidis:
As I just emailed you:

Hi, thanks for the log...

>I unplugged the headphones and answered the call, but heard nothing.

I think I've seen this even on the stock ROM with stock app. If you plug the headphones back in, you may hear the phone call OK. But I've seen this and been unable to speak to the caller, I think because I use the stock earphones that have no microphone, but the system seems to think it has a microphone and switches to a non-existent mike.

Or perhaps on CM7 I saw that, or both.

>Podax will update in the background, killing Spirit

I don't need a log for that. The app plays a silent audio file over and over again, every 20 seconds. If 10 (or 3 ?) seconds elapse, without Spirit being able to re-start the audio loop, the audio chip powers down and you have to hit Mute/Unmute or Speaker/Headset to restart. You can enable Debug->ALSA PCM Open for another way to keep the chip powered, but it creates other problems.

Perhaps I can add code to detect the loss of the loop. I could also create a longer loop. But there's only so much that can be done if another app "hogs" the CPU for too long. Spirit does everything an app can to inform the system it's a background music app that needs background processing time (AFAIK).
[Spirit FM] mikereidis:
SGS2 / Galaxy Note speaker issues.

I saw no change when changing Volume Ctrl Stream on CM9 or on ICS Stunner ROM for Note.

When Debug->Silent Loop was enabled and the app restarted, sound would go to the speaker only when the earphone was unplugged. When replugged, sound would automatically go back to the earphones only.

That's pretty normal for music apps that don't provide a method to switch to speaker when earphones are unplugged.

When Silent Loop was not used, the same switching effect happened when Mute/Unmute or Speaker/Headset were toggled or pressed (but speaker/headset button had no effect, it was just based on earphone plugged or not.)

It's all related to the fact that if a ROM's audio libraries don't know audio is playing, strange things can happen, like the audio chip gets shut down, or hardware volume buttons don't work when app is off screen, etc.

And Silent Loop plays a silent audio file which the system sees and tends to accommodate.

Silent Loop uses around 4% of CPU or so, which uses battery a bit. There are better potential solutions, once the bugs are worked out and stuff is learned. Yes, learning new stuff happens every day, LOL. :D
[Spirit FM] i_rnb:
how to make RDS work on galaxy3 aka GT-i5800 ??
[Spirit FM] mikereidis:
Purchase the Unlocked version:

https://play.google.com/store/apps/details?id=com.mikersmicros.fm_unlock&feature=more_from_developer

:D

If you already have then your signals might be weak, your broadcasters might not transmit RDS, or there might be some bug.

If there's a bug, send me a log with Menu->EMail logs.
[Spirit FM] ang89gunner:
oh ,,work for my galaxy s2 ice AOKP
[Spirit FM] i_rnb:
never mind , it s working.. its just my FM stations dnt support RDS ! but i luckily got one RDS supported & it is workin.. :)
[Spirit FM] Souf0:
Hi, i try to Debug->Silent Loop and restart the app, and the headset works ok, no speaker. I reboot the device (SGS2) and i start spirit, and.... It sounds on headset, not speaker..., IT WORKS!!!

I try this option (Debug->Silent Loop) with the pay version and it works (i reboot my device to check this), and if i unplug the headset it works on speaker, and if i plug the headset, it change to headset...

I supose that it's not spirit who change the output device from speaker to headset, it's the os, although spirit fm have root privileges.

A lot of thanks!, great WORK!
[Spirit FM] lrbpereira:
Notification bar icon

Please consider improving the notification pull down bar area. The icon that it´s shown is really pixelated and not "in line" with you excelent grafics on the app itself.
[Spirit FM] mikereidis:
WooHoo ! :) Silent Loop also allows you to change volume when the screen is off or the app is not on screen.

I will make "Silent Loop" the default for "Galaxy S2/Note", just as I do for "Galaxy S ALSA".

It would be really nice to be able to select Speaker with earphones plugged in for antenna of course, and I'll see what I can do.

Note that holding a finger near the earphone jack can improve reception when an earphone is not plugged in. It may also be possible to leave the earphone jack only partly inserted, or possibly to wire up something that won't switch from speaker to headset.

Yeah, but in the end I'm responsible for trying to make FM work as well as I can.

I'm happy to report I won the Ebay auction for an SGS2: http://cgi.ebay.ca/ws/eBayISAPI.dll?ViewItem&item=261005842924

$332 + taxes and shipping about $390. So Galaxy Note and SGS2 total over $1000, thanks to the purchase support of all you SGS2 and Note owners. :D
[Spirit FM] davidcd13:
SGS CM9

I had to reboot the phone to get the phone call audio working again.

The bug is alway present.
[Spirit FM] lrbpereira:
390 ca dolars is how much in us dolars? Will you able to make it work?

Glad that you will have the ability to trail and error till the app is perfect!
[Spirit FM] mikereidis:
Canadian and US dollars are about the same these days, and tend to be when natural resources like oil are at present price levels.

Yes, physical hardware is essential for an app like this that does low level, or otherwise very hardware dependent things.

OEMs and ROM devs only need to make sure the app "variant" works on one phone, with one specific ROM version.

My app runs on hundreds of different phones, from different OEMs, with different Android versions and ROMs, different FM chips and chip families and about 9 different FM APIs now.

I challenge anyone else to achieve the same and compete with me. ;)

Many people don't think about all the combinations supported, they're just concerned with how it works on their phone model/variant with their current ROM. But as time goes on, and they get new phones, I hope they'll realize that the one time app purchase will likely run on all those new phones too (if FM is possible).
[Spirit FM] coloxim:
Wow...tell us when recive the s2;p

Inviato dal mio GT-I9100 usando Tapatalk
[Spirit FM] lrbpereira:
Great answer! But was I was trying to ask you is if the broken phone will work...

390 us dollars seams to much... Mine custed 400 euros new in the box... more less what the are pricing in Europe at tjis point.

Hope you pass this test that is makinh Spirit FM work 100 % in the ultimate price winning phone of 2011!

If you need something please ask... translations etc...

Chears
[Spirit FM] mikereidis:
Well, $332 before taxes and shipping. The minimum EBay price otherwise is around $400, with more expensive shipping usually. A new SGS2 is $550 Canadian on Newegg, a good price, more or less I think, and same as the Note.

That company puts "cannot guarantee it will be able to make/receive calls..." disclaimers on all phones. I've bought 2 others from them with no problem. That one only has a "short battery" problem.

And the prices are good with that company because they only ship within Canada, so there is no bid competition from the US etc. AFAICT, they handle pretty much every phone returned in Canada and many of the problems are rather minor.
[Spirit FM] keyra74:
hi,

just wanted to thank you and confirm that aprill 22 release works like a charm on galaxy s with latest ics cm9
[Spirit FM] mikereidis:
Great ! :)

I had one report that it leaves the speaker on a bit. Let me know if you or anyone with an S sees or hears that. I added the code that does it because otherwise phone calls result in no audio.

Hopefully there will be no more speaker damage reports. But only time will tell.
[Spirit FM] mikereidis:
April 23 Free: http://www.mediafire.com/?1bg3a1ixi3ulr6d

Not on Market.

- Minor adjustment to automatically enable Debug->Silent Loop on S2/Note. No different than setting that option manually however, so no real reason to update unless you just want to test it with Silent Loop set to off.

- MOTOROLA "antenna switch" and bad reception fix for Texas Instruments (TI) FM chip in low level mode.

FINALLY ! :) After I think a year that this problem is unresolved.

Some Droid X's and Droid 2's and others of that generation ran my app OK in low level mode, but couldn't get a signal.

I got a Droid 2 recently and thankfully it had this problem. It also appears that it may increase signal strength on the Droid X I have which otherwise seemed OK.

This fix currently requires "hcitool" installed on the device and working. Do the following:

Set Audio->Method to Motorola.

Set Debug->FM API to "Low Level".

Restart the app.

If it works, or doesn't, PLEASE let me know.

I think there are likely millions of Motorola phones that can be supported now, including on the unofficial CM9 I'm running on my Droid 2: http://rootzwiki.com/topic/18697-cyanogenmod-9-unofficialbeta-43/page__st__730

The Motorola FM app and stack/API included on that ROM is not very stable, and I've seen the same on some other Droid* ROMs. The low level mode in Spirit can bypass that stack and it's issues when it's copied onto another device or ROM.
[Spirit FM] ghassir:
Hi everybody;

Can we see a FM Transmitter for Galaxy SII?:confused:
[Spirit FM] mikereidis:
Nope.

si4709 FM chip only supports receive.

And the Broadcom FM/combo chip has the antenna pins not connected to anywhere useful.
[Spirit FM] ghassir:
Thnx for the answer.:)
[Spirit FM] fredvermejo:
Hi Mike, just concerned about the speaker pop noise after switch off the app.

What I´ve done was:

SpiritFM on with headset plugged;

Switch to spearkers;

Switch off SpiritFM;

after that, I can hear a pop noise from the speakers. To stop that I have to reboot the phone.

Phone: Galaxy S (I9000) using CM9 nightly-20120419

Regards.

PS: The lite and unlock version have the ability to seek station with .1MHz steps? I´m asking because Free version doesn´t, only .2MHz

In US, Brazil and whole SA, the stations are .1MHz spaced.
[Spirit FM] FabricioGS:
Quick feedback on latest free version for Galaxy S2: headset/speaker button still not working. Got audio only from the headset (which for me is already great).
[Spirit FM] terrornoize:
Galaxy note, ics 5 stunner:

with the last upgrade, every time you launch the application you do not hear the sound from the headphones, and even from the speaker.

If I select the automatic mode, restart the app and select s2/note galaxy yet, you hear the sound everywhere at the same time.

Until the last update, the app for galaxy note was perfect!

Fix it please! :)

Ps: sorry for my bad english.
[Spirit FM] JLowe:
Concerning sgs2 and cm9 sorry if that have been mentioned already:

If you have this issue that sound comes through headset and speaker together, plugin headset if not done yet and just start the music player then try FM radio again ;)

Should hear the sound through headset only
[Spirit FM] HSishi:
Various issues with Spirit FM UL

I don't know if this question was asked in the few hundred pages before but is there some sort of a manual of this app, which describes the large amount of configuration and test settings?

I want to listen to radio music the whole work day (9 to 11 hours), so I'm in the need of a "as least battery consuming as possible" setttings setup. Basically a question of "which settings lower the battery consumption?".

Finally I have some sort of a bug:

I listen to a radio station and a notification event (SMS, email, alarm, etc.) occurs. The music stops playing, the phone plays the notification tone - and that's it. No switching back to music. Even the "play" button in Spirit FM UL app doesn't change its state.

I have to press it so the "play" icon appears, wait two seconds, then press it again to resume playing.

Is there any setting which allows playing radio *and* notifications together or the automatic music resuming?

For the moment I use a work-around which mutes all phone events via "Voodoo Sound" control app when a headset is plugged in. FM music is not interrupted but now I miss the events mentioned above.

Device:

Galaxy S (I9000), Infinitum ROM 2.2 (ICS 4.0.4), Devil2 kernel V0.72.

Spirit FM UL operates with "Galaxy S ICS / ALSA (danger)" audio mode on my device.

Thanks for the answer(s) :) .

//HSishi
[Spirit FM] mikereidis:
One some devices I have a hack that kills mediaserver (which restarts) at mute, including at power down. I could add an option, and a test function that does that. Restarting the mediaserver tends to fix any audio problems that otherwise require a reboot.

Tuning is the same, Free, Light or Unlocked. Can you try "World" ? AFAIK, 100 KHz steps for seeks are working, unless there is some new bug. Enough people need this that I think I'd have lots of reports otherwise. In fact many places only need 200 KHz but on some chips at least we are stuck with 100 KHz.
[Spirit FM] mikereidis:
The button doesn't work. If you unplug the earphones, audio should go to speaker and vice versa. Best I can do for now at least.
[Spirit FM] mikereidis:
April 23 works fine on my Note. Same on April 22 if you enable Debug->Silent Loop and restart the app.
[Spirit FM] mikereidis:
Thanks.

Enabling Debug->Silent Loop is effectively the same I think.
[Spirit FM] mikereidis:
I have a messy document I haven't updated in a month or more that I haven't released. But things keep changing... :)

There's not too much that can be done to save power. I can add an option that disables "Silent Loop", but that will cause problems until the better solution works.

I'm aware of the SGS Notification & Phone call issue that requires a manual re-enabling. I'll fix it when I can, but I hesitate to add too much complication while I try to figure out if speaker damage has stopped.
[Spirit FM] mikereidis:
Spanish (Spain) article/review: http://www.xatakamovil.com/aplicaci...ndadas-para-android-xviii-xataka-movil-market

"Recomendadas"

:D
[Spirit FM] Souf0:
Yes, recommended (sí, recomendada).

If you need translate it to spanish, tell me.
[Spirit FM] sjod8998:
Greetings. Latest version posted on the Market. Galaxy S device with ICS ROM SLIM 3.4 (ICS 4.0.4). Method for Galaxy S ALSA does not work, all the sounds off. Only a slight click. Changing to method OLD / DANGER. Works
[Spirit FM] mikereidis:
Thanks. :) Translations eventually.

Just looking now at my app statistics and Spain has been surprisingly strong over the last month.

---

And Japan is finally making an appearance in the stats too.
[Spirit FM] mikereidis:
It seems OK on CM9 which seems to be the most popular Galaxy S ICS ROM for my app.

But I'll try out Slim and see what's up.

Thanks for your report.
[Spirit FM] Straputsky:
Just to clarify: Will it be possible to record FM with the Galaxy S in future? Or at least store the RDS information somewhere? Sometimes I hear a song on the radio I like and can't remember later. Would be some nice help.

Never understood why Samsung didn't give this capability to the Galaxy S although they gave it to their first Samsung Wave. As it seems, both share the same hardware... Is Android that tough to develop?
[Spirit FM] mikereidis:
I'm running SLIM 3.4 on my GS now and have no problems.
[Spirit FM] fradav:
HTC One V FM support ?

Hi

Will the HTC One V FM chip be supported ? I don't know which chip it uses, sorry.

Currently I'm getting a lot of interferences with the stock fm app, especially in the move, is it something which could be improved by the spirit fm app ?

With my previous htc legend (cyanogen 7 enabled) and spirit fm unlocked, I was getting near perfect fm reception, in the move or not.

Regards,
[Spirit FM] mikereidis:
Not easily I think. I will test to see if it can be done via ALSA, because it won't work in the normal and easy Android way.

The normal easy Android way works on Sony Ericcson X10 mini and my Galaxy Note with a stock ROM. I will support that, and already do via a test function at Menu->Test->Record.

But first, it's more important to make Galaxy S audio as flawless as I can and ensure no more speakers get damaged.

Storing RDS info is a thought I've had. I'll keep it in mind. But yours is the first such request I think, and I've had several for some other things such as foreign (to me, LOL) language character support.

In general, the more advanced the feature, the more likely it is to be exclusive to the Unlocked version. But that's true for RDS anyway.
[Spirit FM] mikereidis:
ABSOLUTELY ! :)

As will the One S and One X and Galaxy S3.

The HTCs are likely to use Broadcom FM/combo chips. The Primo S ICS ROM I've had on my DHD worked fine, and it was derived from a stock ICS One V ROM, which is very similar to the DHD. I enhanced the "HTC" audio method to work on HTC's ICS method of enabling and switching FM audio.

The Galaxy S3 will, I think, have a si4709 FM chip, just like the Galaxy S, S2 and Note. My guess and hope is that Spirit will work on it at release. :) If not, I'll make it work.
[Spirit FM] mikereidis:
April 24b Free: http://www.mediafire.com/?v369y5839c7dgoz

Also on Play Store.

- April 24 B fixes issues on stock Galaxy S2 & Note present since April 20. Update of April 24 earlier today.

- Some UI and other minor adjustments, including more automatic audio methods for SGS2 & Note.

- Relative to last Play Store release of April 22 also fixes Motorola devices with bad signal and Galaxy S2/Note speaker issues.

On my Galaxy Note I am able to leave the headset jack partly plugged in to listen via the speaker and still use the cable as an antenna.
[Spirit FM] fradav:
Hi Mike and thanks for your fast reply, I really miss the FM "happiness" I had with my legend (which has been stolen :mad: ).

Is your method improving the quality of the signal? do you know why it isn't used by the stock fm app ?

Will it require to root the HTC One V's stock ICS?

Regards,
[Spirit FM] mikereidis:
:D The Legend was the first Android phone I kept and the first one to see Spirit FM. With Blayo or CM7 it's still "old reliable". My wife has it now, she likes the unique aluminium body.

In general, I can't do anything about the signal. But unlike many other apps, you can switch to Mono which reduces noise.

The newer generation of Broadcom BCM 4330/20780 chips are MUCH better. I have an $80 Galaxy 5 with the 4330 that picks up RDS with no antenna !

No root required, but root tends to give you more options and advantages.

If it's from Samsung, HTC, Motorola or Google, and FM is possible, I will do everything I can to support it, rooted or not. LG and others also, when feasible.
[Spirit FM] fradav:
I had no problem with stereo signal with the legend and I already get the option to switch to mono on my new HTC One V with stock fm app, but it doesn't really help the interference problem. Now I think it is definitively a hardware problem, maybe a bad shielding (compared to the "almost" clean fm reception of the legend). So all I can do is to revert to my data plan instead :( I had been misleaded by the marketing of the one V as the worthy successor of the legend, but it is NOT.

Newer != better.

Thanks for your replies, anyway.
[Spirit FM] kilador:
Thanks for priorizing this issue so we SGS users can enjoy this app without risks. :)

Sent from my GT-I9000
[Spirit FM] mfenetre:
Minimal volume level on SGS2: too loud

Hi Mikereidis,

I know you're busy making the app work for many different mobile phones and that I'm lucky to have a functioning Spirit FM Unlocked on my SGS2 with CM9 :D

However, I have one comment about the app on SGS2: I find the minimum volume a bit too "loud". My headphones insulate me from outside noise, and even at minimum volume, it's still a bit too much for me. I tried using the "Volume Scale" option and setting it to=1, but it did not change anything.

In your defense, I had the same problem with the stock FM app on the stock Samsung rom. To decrease minimum volume level, I used the great application "Fine Volume Control" on the Play Store: https://play.google.com/store/apps/details?id=opotech.finevolumev2&hl=fr. Basically it allows you to control more finely the volume level. However the app did not work with the FM sound level on Samsung rom and the developer told me that the FM volume level could not be controlled directly with the 'Media' volume (I think Samsung is to blame here with their crappy FM implementation).

Do you think it would be possible to decrease the volume level somehow on the Spirit app ?

Thanks and keep up the good work!
[Spirit FM] mikereidis:
Hi,

The volume control inside the si4709 FM chip only has 15 levels, and that's all my app controls in the low level mode needed on non stock ROMs.

If the stock FM app was better, then my app would or could be better also, in the Samsung OEM API mode.

The main & possibly easiest chance we have is if there is some other method of setting volume, outside of the FM chip. Most modern/expensive devices have this and the Yamaha audio chip has hundreds of registers that might help.

But how to access any such functionality, and do it cleanly, is a mystery to me at this time. Stuff like this can be very difficult to almost impossible to figure out.

Hypothetically, if we can get digital output, as the Note does for recording at least, we could process, or get a DSP to process it. or just push it down the normal chain of audio.

All that said, Android only tends to provide around 12-20 different volume steps, but if the resolution is available elsewhere, a custom curve could be done to give the 12-20 steps that are good for you.

Does anybody provide a decent wired headset with volume controls, presumably resistive ?