yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
I don't know how to enable FM audio with custom ROMs using AOSP audio libraries on the LG P970.

I don't have a P970, and don't expect to get one. I'd be very happy if someone was able to tell me how to enable FM audio, but my attempts to "remotely" enable in the past failed. If and when CM9/10 supports FM, I can support it too, as I think may have been with CM7.

With stock or stock derived ROMs, one of the "LG..." Audio-> Method settings should work.
[Spirit FM] mikereidis:
Yes, the issue is still there and I more or less gave up on fixing it. I'm getting about 1 damage report every 1-2 weeks now, and virtually always from people within the first week of use.

That said, I think there is some hope from my current work to improve audio on many devices. Among other things, I hope to build some audio libraries that support FM properly, as CM7 did. I hope to know more in the next few months.
[Spirit FM] KrisPerry:
Any possibility of this working with the chipset in the accer a110
[Spirit FM] mikereidis:
Oct 3: http://d-h.st/sMP

Experimental, only for Desire HD and similar "qdsp5v2" devices with various audio problems.

Hasn't been tested on other devices, and could mess things up on many, particularly Galaxy S GT-i9000.

Seems to work well on my Desire HD with Jellytime JB. Audio notifications are good. Ringing seemed good, but now I hear no ringtone, but other than that phone calls seem OK.

But my Desire Z with Mimicry still shows some problems.

The former "Mute kill mediaserver" is replaced with "Power restart media". The mediaserver is only restarted on power off, not on every mute. This helps recover from problems that still occur when a short sound is played without Spirit being notified of an audio notification, ringing or phone call.

For example, using a camera app usually plays a "click" noise and this messes up other audio if FM is playing.

It remains VERY important to go to System Settings-> Sound and ensure these are turned off:

- Touch Sounds.

- Screen lock sound.

- Dial pad touch tones off may help if you dial while FM is playing. Better to mute FM manually for a phone call though.

Still, the only proper solution is in the audio libraries, but the two new fixes/workarounds will hopefully be good enough until this long term solution is in place.

The first fix was streamlining the code to ensure FM audio is turned off as fast as possible when a notification or ringing happen.

The second fix was a new way to ensure background volume control worked with Spirit. When it went to ringer volume, a short "volume adjust" sound would be played and that messed things up.

All these problems are due to the fact that when the audio driver/library encounters an error turning audio on (because FM is already on), it "freaks out" and never recovers, producing endless famous "ObtainBuffer timed out" log messages. And this is why the brute force method of resetting the mediaserver was used.
[Spirit FM] Kirot:
Quick question, is there any specific configuration for the GTi9100 International?

I installed the app, and I do get radio, but when I make/receive calls I can't hear the other person unless I put them on speakerphone
[Spirit FM] mikereidis:
I presume you're running the Sept 24 release. October 3rd above hasn't been tested on anything but Desire HD & Z and has a good chance of problems on other phones.

Does Spirit's speaker mode work ? I've had a report or 2 that it doesn't work on GS2. You can try setting Debug->Galaxy S2 to one of these settings:

- June 15. Speaker mode for FM shouldn't work, but it might resolve your issues.

- July 12. My early tests showed this would make the FM speaker mode "stick". It wouldn't go back to headset after selecting speaker.

- July 27. FM speaker and headset should work but some people have had other audio issues.

Please let me know your results, and same to anyone else who trys these.
[Spirit FM] otraver:
Firstly excuse me because my English is not as good as it should.

I have a HTC Sensation with v3.33 firmware and v9.1 CyanogenMod9 Rom and standard kernel.

For various issues I need the radioFM (I tried TuneIn, but I quickly runs out the data) so I opted for SpiritFM app because CyanogenMod9 don't have any FM radio app. This app (at least on my terminal) is not working properly. I tell you my experiences.

Problem 1: When running the app, after requesting root access, starts playing the selected station but once pass four seconds the audio stops in headphones and in the speaker. I found the solution to this which is to press the speaker phone button (the one between the pause button and the off button) and press it again to send the audio back to the headset.

Problem 2: While using SpiritFM any notification sounds, not through headphones or the external speaker. You know there's notification because the audio stops for 2 seconds and the phone vibrates. In most cases, once the notification arrives, then you have to exit the SpiritFM app and restart again for the audio does not stop after four seconds.

Problem 3: The most tricky. When the radio is playing and you receive a phone call, the speakerand headphones does not sound, the cellular vibrates only (if you have activated the vibration) and if you do not respond immediately, the native phone app is restarted and you are asked to insert the pin again and once re-inserted you get a message indicating that it has installed a new sim and it is necessary to reboot the terminal. If you have achieved respond, once the conversation ends, is reproduced the problem explained in section 2, we must shut down and restart the app.

Reading the thread I changed the Audio Method to "qdsp5v2 Plus/ICS but the problem continues.

Thank's for your attention.
[Spirit FM] xhejtman:
this works for me, it leaves audio running and eating battery not any more, audio notifications work except ringing as stated. I didn't try phone call, so don't know whether it is ok or not.
[Spirit FM] Kirot:
The issue persists, I do get audio from radio, but I can't hear the people that are calling me
[Spirit FM] mikereidis:
Good. :)

I'm continuing to work on this tonight.

Ringing started working for me; I'm not sure why; I've tried several different ROMs on Desire HD and Z and One V.

Some ROMs have problems with the 2nd fix I did, for volume control. This includes Mimicry 1.5 and another ICS ROM on Desire Z, but a JB ROM was OK. On Desire HD some JB ROMs were fine, but IceColdSandwich was not.
[Spirit FM] mikereidis:
Can you try the Oct 3 test release linked, and the system sound settings here: http://xdaforums.com/showpost.php?p=32324037&postcount=4511

These "qdsp5v2" problems have been plaguing us for many months. I think I've finally found some good fixes/work arounds and hope to have them working smoothly within a week.
[Spirit FM] mikereidis:
Did you read and try this ? : http://xdaforums.com/showpost.php?p=32347964&postcount=4513

If you want help, I need answers to my questions. Thanks...
[Spirit FM] xhejtman:
I use jellytime R15 right now, it is the first and the only ROM I tested.
[Spirit FM] RsOnAndroid:
I installed your Sept 24 version on my CM10/Flinny's JellyBean on my G2/DesireZ. Its working perfectly fine..Do you want me to try this version and report?
[Spirit FM] mikereidis:
Sure. If you try Oct 5 linked below, it's better to set Debug-> Play Audiotrack to "Enable": http://d-h.st/PA6
[Spirit FM] mikereidis:
Oct 5: http://d-h.st/PA6

Pretty much the same as Oct 3, but the problematic 2nd fix I call "Play Audiotrack" is a non-default option. This release should work on just about any device.

If possible, it's better to set Debug-> Play Audiotrack to "Enable" and restart Spirit. This seems to work OK on JB ROMs, or those with better/more recent kernels. On others, audio gets messed up, or the phone may reboot. I hope this is a problem that gets fixed in other ROMs eventually.

What this gives you is background volume control, which can create short beeps that mess up the audio. Some ROMs allow disabling System settings-> Sound-> "Volume adjust sound", which may work around this problem.

On some other devices, enabling "Debug-> Play Audiotrack" may be a better alternative to Silent Loop to keep audio running and provide background volume control. For one thing, no data gets transferred, and this may save a bunch of CPU and battery.
[Spirit FM] otraver:
Yes, just this morning I tried the release you indicate and the problems continue.

I will try the 1005 release...
[Spirit FM] xhejtman:
btw, volume of radio seems to be much higher than volume of mp3 player for instance. Is this intended?
[Spirit FM] mikereidis:
No.

On most phones (Broadcom and TI chips) the quick fix is to set Audio-> Volume Scale to less than the default of 100. On some devices people set it as low as 2. BTW, decimal points can also be used, eg: "33.333" for about 1/3rd.

Most phones have one or more external volume controls, for FM, digital sources, or everything with a master setting or 2.

In most cases Spirit does not touch those controls that are external to the FM chip. It's been a major challenge just to get FM audio working reasonably on so many phones, and this adds more complication, reverse engineering, etc.

I have just recently started adding some small support for this. On LG P500 it's done, and there is a related Debug-> External Volume setting that can be set from 0 to around 20 or so I think. I will add more as I can, and as most needed.

There is an ALSA mixer control app on Google Play that can be used on systems that support ALSA, assuming you know which controls to set to what values.
[Spirit FM] mikereidis:
Anything that produces a sound while FM is playing can create trouble. Exceptions hopefully include audio notifications and ringing or an active phone call, both of which Spirit is notified by the system.

If any of these make a sound, normally at least, it's a problem:

- Pressing app buttons.

- Screenlock or screen on/off.

- Camera app "shutter" sound.

- Adjusting volume, especially with Spirit in background if adjustment goes to ringer.

- Anything else that makes a quick click/noise/sound without qualifying as an audio notification.

Many of these sounds we don't even notice I think, because we get accustomed to them. In our brains, it's the phone "camera" or the power button or screen that we think makes the click.

That's the idea; to fool us and make us feel comfortable with the illusion of a mechanical device.
[Spirit FM] yadavjpr:
GT-I9000 :(

Hi, I have Smasung Galaxy S (GT-I9000). When I think to install Spirit FM on CM10, I see your warning(Speaker damage) and I revert back my decision.

I have a question, if I will use headset mode, is there any possibility to damage my hardware?
[Spirit FM] rmont:
Same issue with GT-I9300.

Enviado de meu GT-I9300 usando o Tapatalk 2
[Spirit FM] dark_knight35:
Yes, there is.
[Spirit FM] mikereidis:
dark_knight35 is correct. From post 3: http://xdaforums.com/showpost.php?p=13380066&postcount=3
[Spirit FM] mikereidis:
Which ROM, and did you manually set Audio-> Method ?

Setting it to "Galaxy S3 ALSA" is needed on recent CM ROMs and is likely more trouble prone.

Setting it to "Galaxy S3/Note/S2_ICS" should work OK on stock or stock derived ROMs, I think.

Both of the above are done automatically depending on whether a CM ROM past early July is detected or not.

You can try setting Debug-> Mute kill mediaserver to "Enable" and restart Spirit. On the most recent Free test release use Debug-> Power restart media instead.

EDIT: I finally got my SIM cut to micro-sim and see the problem after a phone call.

Setting Debug-> Mute kill mediaserver to "Enable" worked.

Another workaround, on the stock, rooted official JB ROM was to set Audio-> Method to "Galaxy S3 ALSA", but that results in some volume shifting issues.
[Spirit FM] rmont:
I´m using CM10 and latest spirit fm unlocked available on PlayStore, audio issues are present when i use speaker, it causes problems in audio calls and interface sounds, all are muted. Using earphones i have no problem.
[Spirit FM] tejadakenneth:
is this radio available in philippines fm radio station?
[Spirit FM] Lagkage:
Try the free version from the 1st post. If it works then yes. Remember to set Audio->Method to Galaxy SL/i9003
[Spirit FM] mikereidis:
Thanks. I'll see what I can do by sometime this weekend.

I'm still in the midst of attacking the Desire HD and similar device audio problems. But thankfully I'm learning lots of new audio "tricks" that will help on many other phones.
[Spirit FM] mikereidis:
Thanks Lagkage.

So Audio->Method isn't getting properly set automatically ?
[Spirit FM] Lagkage:
I just wrote what the Compatibility List say: "Custom ROMs use Audio->Method = "Galaxy SL/i9003".

I am using Spirit on an I9100 with CM10 so I don't know about the I9003.
[Spirit FM] mikereidis:
:)

It should be automatic now, but you never know when a ROM might misidentify a phone requiring a manual setting. There are several ROMs that do this, either by port from another device or because the dev used a non-standard device name.

There's a heck of a lot of trivia in the compatibility list and some gets outdated.
[Spirit FM] mikereidis:
Next page...
[Spirit FM] mikereidis:
Oct 12: http://d-h.st/fRQ

- Better support for some older Motorola devices such as Droid 2 CDMA with stock rooted ROM.

- Wonderful new audio stability and battery savings for Galaxy S GT-i9000 and Desire HD / Z / One V / many other "qdsp5v2" devices.

If you've set debug options in the past to deal with audio on these devices, it's best to reset to defaults by removing and reinstalling or clearing app data.

It's possible this will fix the Galaxy S speaker damage problem, but only several weeks with no reports will tell.

This release will automatically turn off touch sounds, dtmf dialing tones, screen lock sounds, and sometimes volume change sounds. Trouble could still happen with camera click or other short sounds. At FM poweroff, original values will be restored, unless Spirit or the phone crashes/reboots unexpectedly.

Not tested much on other devices.

If problems, you can try setting Debug-> Play Audiotrack to "Disable".
[Spirit FM] Midomad:
What about update for unlocked version still 24sept!

Envoyé depuis mon GT-I9000 avec Tapatalk
[Spirit FM] skezza:
Hi Mike,

I've read all your warnings and I acknowledge them, so I've taken a chance. I'm trying to understand your app a bit (im not a complete noob) but I'm unclear. You said that to enable radio on ICS/JB I would have to activate I9000 ICS mode, which is the supposed speaker killer mode? On my Jelly Bean, I've clicked on Mode and it just says Automatic. What exactly is Automatic? Is that just i9000 ICS mode or is that something else?
[Spirit FM] Silentbob999:
I have the paid spirit light, will I have less functionality if I install your last free version of Oct 12? Or can I expect the new driver to be push in the Google Play app soon?

Also on another subject, if at some point in the future I want the expensive pro version, are you giving discount for those who have the lite version :p

Envoyé depuis mon GT-I9000 avec Tapatalk
[Spirit FM] mikereidis:
I cancel any order at any time on request, and do that for anyone wanting to upgrade. AFAICT I can even cancel orders made over a year ago.

I'm hoping to get this update out quickly, likely this weekend, once it seems to be stable on my other 15 or so phones and I get no particularly bad reports.

Any customer can always email me for the latest Light/Unlocked test release.

I can also provide a license file that effectively turns the Free version into Light/Unlocked.

Free, Light and Unlocked are seperate "packages" so you could have all 3 on your phone at once. This may be useful if you don't want to mess up your paid app with an experimental version. Just don't run 2 of the 3 app packages at the same time.
[Spirit FM] mikereidis:
If you've run Spirit for a week at least, usually it appears this problem won't affect you. Only in 1 case, of some 50+ reports, was a long time user affected.

The default Audio-> Method setting of "Automatic" means that Spirit will attempt to automatlcally select the best method. At present there is no easy way to determine what method was selected, but I hope to change this.

Automatic or not, you will always be presented with a warning with the title "Galaxy S ALSA Warning !!". This happens automatically (often at first run) or if you try to manually select the bad method. If you press OK it proceeds to use that method, anything else aborts.

There is no such thing as a stock or stock derived ICS or JB for the GT-i9000. So if you are running ICS/JB, this is the only method that works.

I'm REALLY, really hoping these changes for Galaxy S resolves the problem. I'm cautiously optimistic, but have been several times before.

With these changes I haven't yet been able to re-create the random "startup with no audio problem" that produces some "scary" clicking and other noises.
[Spirit FM] skezza:
To be honest Mike, I've been running it for the 2 days (headset only) and it's been brilliant. I found it very bassy at first but I think that may have been in part due to the earphones and DSP equalization options. I did get the initial warning, but I figured 21 people in x thousand is pretty good odds, if you're not a betting man of course and I aren't ;) ;) Very impressed.

One recommendation for your newer versions, sticking with the ICS/JB style, do you reckon it's possible to get a swipe to kill on the notification bar? Currently it's static so only the traditional methods of closing it work ;) Just a thought!

Thanks again!
[Spirit FM] mikereidis:
For the most part, I have no control over frequency response. Soem chips/APIs may have a setting to reduce noise by reducing high end response, but so far in those cases, I leave that at the defaults, which tends to automatic based on signal strength or maximum bandwidth.

On most phones there is no way to tailor frequency response or do any audio processing. This is because most phones use a special analog audio route that injects it after processing. More and more mostly higher end phones are using digital audio now however. This will allow direct recording and DSP stuff.

The pattern for long running media players and similar is to present a static notification. To get rid of it you can set User Interface-> Notification Display to "Off".
[Spirit FM] hasbai:
Hi

i have buy the Spirit FM Radio Unlocked, but i miss the samsung galaxy note 2 support.

can u do something pls?
[Spirit FM] The Flashek:
Don't work on neo v no sound (only RDS)

;( any idea ?
[Spirit FM] Silentbob999:
Thanks for your answer, dedication and support. Continue your good work.

Envoyé depuis mon GT-I9000 avec Tapatalk
[Spirit FM] smurf3r:
galaxy s

Hello, after installed CM 9 stable version no FM was a big loss.

Thanks a lot Mike this works great .

What about recording, do u have it in plans ? That would be a perfect feature for unlocked version.

Would get it definately :D
[Spirit FM] homeplayer:
A Big thanks

Pandroid latest release,

on a i9300 (Samsung Galaxy s3)

No FM radio, and i can' t pay for apps on the market no credit card. ( i know there are options to solve this)

So I went on the net and found the latest apk of spirit FM

and after some tweaking it is working almost working perfectly.

I like to buy you some beers, but i need a paypal account or a other mean of paying you. 10 euro's

after the payment is done i'll come back to ask some questions

Thanks
[Spirit FM] mikereidis:
First Note 2 I've been asked about. Is there a stock Samsung FM app ?

Send me a debug log with Menu-> Email Logs and press Send after 10-20 seconds.

I've heard the International Note 2 supports FM, but I think the US and/or LTE versions don't.

I hope we won't have the situation with the new LTE GS3, the GT-i9305 / 9305T. I've heard it may have FM hardware but the stock ROMs don't support it, even outside of the US. :(
[Spirit FM] mikereidis:
Yesterday I disabled every Sony device except x10 mini on Google Play, so it shouldn't be possible to purchase or install via Play.

If setting Audio-> Method to one of the two "Sony..." methods doesn't work, then likely nothing will.
[Spirit FM] mikereidis:
FM recording: Not possible on most phones, but more likely on recent higher-end phones such as GS3 and OneX. I'm working on this, slowly...

Menu-> Test-> Record can work on stock Galaxy Note and GS3.
[Spirit FM] mikereidis:
I accept Paypal for Unlocked. Just email me. From the FAQ:

Paypal:

Spirit Unlocked: Email me and/or send funds to mikereidis@gmail.com . I prefer Play purchases, despite Google's 30% cut.

----

Between emailing me for a test release and/or using a free version linked in post 1, there should be no need to use a pirate version for testing.

Those versions may be old, and some of them DO contain malware. I got an email virus on two of my phones from running a pirate version of Spirit. (To be clear, running a pirate/modified version of my own app does not make me a pirate.)

Root apps are a perfect target for malicious code.
[Spirit FM] mikereidis:
Oct 14: http://d-h.st/GoI

- Minor changes from Oct 12. Matches Light and Unlocked versions on Google Play.

The new Debug-> Play Audiotrack seems to be a great alternative to Debug-> Silent Loop. It is enabled by default only on Galaxy S (along with PCM Open) and qdsp5v2 devices such as Desire HD/Z/One V.

Silent Loop was needed on some devices to prevent the audio chip from shutting off. It is also useful to provide background volume control via the normal phone hardware volume buttons, in those cases where it otherwise goes to ringer volume.

The biggest problems with Silent Loop however, was that it continuously played and looped a silent audio file. This consumed CPU time and lowered battery life.

Play Audiotrack uses a lower level Android "Audiotrack" API to do almost the same thing, except that the audio file data transfer is not done as it doesn't seem needed. The main downside is that some ROMs will generate a few more regular log messages, but that's a small price to pay.

On devices for which it isn't enabled automatically, such as Galaxy S2, Note and on some GS3 ROMs, it may be better to enable it manually, especially since these Galaxy devices automatically enable Silent Loop. If you set it to "Enable", you must also check (enable) the Debug-> Silent Loop Off option (right under Silent Loop). I saw that one of these devices had an issue that caused audio notifications to go to speaker, instead of headset however.

On other devices, Play Audiotrack may also be useful to enable background volume control.

Play Audiotrack has a good chance of becoming enabled by default on all devices using low level APIs (custom ROMs). After testing various devices only the -> speaker notification issue was noted.
[Spirit FM] claudiosala80:
Hello all

I used Spirit on my Samsung S+ for long time.

I upgraded at last version and stop to work. I did a downgrade and same problem.

Same day of upgrade, I installed Sony walkman and additional libraries under system/lib/soundfx.

I removed that, but nothing

Any idea about that?

I really need to use this fantastic apps!
[Spirit FM] mikereidis:
If you reverted to a version that worked before, I'm not sure what the problem is.

Is it a free version ? If it's from Play I presume you had a backup to revert ?

Can you send me a debug log with Menu-> Email Logs ? After 10-20 seconds press Send.

Thanks...
[Spirit FM] claudiosala80:
These are operation I did:

1. Installed Sony walkman

http://xdaforums.com/showthread.php?t=1804609

2. Update Spirit FM getting from the first post (version 12 Oct)

3. Spirit stop to work

4. Upgade Spirit to version 14 Oct but no work

5. Disistalled Spirit of 14 and installed version of 5 Oct

6. Not work

7. Removed libraries in soundfx folter (added following post of Walkan)

8. Not work

Tomorrow I do this

1. Restored libraries

2. Installed last version of Spirit

3. Reboot in recovery and clened cache and Dalvin chache

4. Tested spirit and not work

I'm sending the log.

My phone is Samsung S Plus. I'm using BioHazard, a ROM based on CM9

I'm available to do other test if you need.

I'm happy to help you.

Thanks