yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
August 15: http://d-h.st/Obe

Mostly for various audio problems on Desire HD, Z, Sensation, etc. using qdsp5v2 or qdsp5v2 Plus/ICS.

See post above re turning off system sounds. This was required on my Desire Z with ICS/JB ROMs for good results.

Mute kill mediaserver now also kills "android.process.media" for best results. This is the default for "qdsp5v2 Plus/ICS", which is the default for any device using /dev/msm_audio_dev_ctrl except "VISION" aka Desire Z.

For these devices, you can try setting Audio-> Method to "qdsp5v2" (plain). If FM audio works, and it still works after reboot, it is generally better than "qdsp5v2 Plus/ICS".

In some cases it may help to enable Debug-> Silent Loop and restart Spirit. In many cases however, it will cause problems.

One could also try setting Debug-> Mute kill mediaserver to "Disable", but that will usually cause more problems than it solves.

There is also a "qdsp5v2 old" Audio-> Method that should act like the old "qdsp5v2 Plus/ICS". It does not have the added code that can eliminate the after FM battery drain problem.

Overall the whole qdsp5v2 set of problems is still not resolved and is under examination.

I need to take some time to learn about the woefully un- and under-documented Android audio architecture. Hopefully a better set of hacks, or pushing/proposing FM audio patches to open source efforts will result, but that will clearly take some time.
[Spirit FM] R2D2_NZ:
Thanks for the direct app support for my Frankenensation, Mike. Appreciate the time you took to answer and follow up on my feedback.

As I said in my email, without your terrific app, my JB powered Sensation would have no FM and as it is, the FM part is working perfectly. Hopefully the CM chaps will sort out the sound libraries so that the touch sound workarounds will no longer be needed, (but I'm not going to hold my breath).

Great app and spectacular product support. :good:

Cheers,

R2
[Spirit FM] stoopid2001:
Can anyone confirm FM Recording works on a ATT HTC 1X?

Thanks!
[Spirit FM] mikereidis:
:)

I hope so too, and there are encouraging signs of CM9/10 re-creating the FM support in CM7.

On the plus side for you, I hear FM audio support is easier on HTC devices than Samsung, likely due to a saner library architecture. On the minus side, Samsung is getting more official CM attention than HTC. At least one person is now calling CM "SamsungMod", LOL.

If needed and feasible, I will consider submitting patches to CM etc. or helping in any way I can. But first there's a lot more I need to know about Android audio.
[Spirit FM] mikereidis:
I can confirm I've never seen it working on my ATT OneX, nor on my International Tegra3 OneX. But I don't think I've even tried it yet.

Have you ever seen this feature on the stock HTC FM app, or even working with an external recording app ? I seem to recall the SoundHound song ID feature, which requires digital audio capture I think.

But I don't see SoundHound anymore on the stock derived ROMs I've tested recently, except for unsupportable devices like Desire HD or Z.

I've also tried to see if I can get FM over Bluetooth A2DP, but was unsuccessful.
[Spirit FM] mikereidis:
If anyone has questions, please post or email in the next 8 hours.

I'll be family vacationing in Toronto from Sunday to Wednesday, and this time my computers will be off. :)
[Spirit FM] Pseudonym:
Hi. Why is there no sleep option? Or Im just missing it?
[Spirit FM] mikereidis:
Menu-> Sleep and enter number of minutes.

It's not in the Free version, only Light or Unlocked.
[Spirit FM] Pseudonym:
Oh! That's why I'm missing it. I only have the free version coz I'm still studying. Thanks btw!
[Spirit FM] mhulsegge:
Hi Mike, just wanted to say, again this app has helped me a lot, this time on my HTC One X.

Since the latest update of this phone to 4.0.4 when in build in FM app signal is slightly low, it jumps to mono, which somehow also halves the volume.

Thank heavens your app does not suffer from this.

Money well spent back then on the unlocked app on my HTC Desire :)

Thanks again!
[Spirit FM] Laur3nt1u:
would be awesome to have this interface Holo FM Radio
[Spirit FM] mikereidis:
That's interesting. International OneX, I presume, which has the TI WL1283 FM chip.

Spirit generally doesn't touch any FM chip register it doesn't have to, so generally the defaults are used. I'd guess the OEM API/FM app must change some of those defaults.
[Spirit FM] mikereidis:
Yes I've seen that app.

AFAICT, it's a UI modified Motorola app and only works on Motorola TI FM chip based devices.

If enough customers asked for something like it, I'd consider it more strongly.

But my time is limited and I expect to focus on the many known major technical issues, especially related to unstable or non-existent audio support.

I've also considered an API so that a UI dev or two could create alternate UIs, but there have been virtually no requests for that.
[Spirit FM] mikereidis:
I'm just getting now to 5 days of backed up email due to some wonderful vacation time.

If you're waiting for a reply, I thank you for your patience.
[Spirit FM] ruvort:
Theming is definitely not a huge rush or the highest priority, but I know myself and others would love to see it down the line.
[Spirit FM] mhulsegge:
Hi Mike, yes this is the international version.

I am rooted, not sure if that matters in this case.

However, as said, I'm just very glad about it :)

Welcome back by the way, hope you enjoyed your holiday
[Spirit FM] Nitemare_real:
Two days on my Galaxy S (i9000) with Jelly Bean 4.1.1 (Elitemovil RC10) and no problem.
[Spirit FM] mikereidis:
Happily, on the OneX International it doesn't matter about root.

The new way to do low level HCI FM chip access is via /dev/tifm, and the permissions are left open on it. Normally Spirit is forced to use the OEM API without SU, but an exception is made when /dev/tifm is present and accessible.

Yep. :) 5 glorious days with no email, extra sleep and family visits to the Toronto Zoo and Canadian National Exhibition (CNE), etc. Did the roller coasters and bumper cars...
[Spirit FM] danielalarcon:
I'm interested!

Hey Mike,

I'm no Android developer, but seriously would like to work on getting a new GUI for this great app! I have developed, but not for Android, so starting up in this project (GUI) is a challenge I'm interested.

---------- Post added at 07:13 PM ---------- Previous post was at 07:08 PM ----------

Hey Mike, just wanted to give you an update from my last week usage on SGS2 CM9 nightly (Aug 19), as you suggested, I've been using it set to July 27 method, and I can say, no issues at all, no issues with notifications, calls, speaker, nothing, works like a charm, I'm really sure the CM team has made some really good work in the CM9 guts for the Galaxy S2.

Keep up the great work!
[Spirit FM] mikereidis:
How's about MIT App Inventor (AI)? : http://appinventor.mit.edu/explore/ AND http://www.appinventor.org/projects

A year and a half ago it was Google AI, and I used it to learn Android GUI and create Spirit v1.0. I think it's the best way to get started if you don't know Java and don't want to spend months reading Android docs, at least to start.

I concluded it wasn't possible to create a professional app with AI, but for GUI and prototyping it wasn't bad.

I recently revisited AI and created a working prototype that functions on top of Spirit, using the service portion for the "hard stuff".

Great ! :)

Next release, July 27 will be the default, and the minority (I think) who have problems can switch to June 15 method.
[Spirit FM] Nexxusel:
Are you working with the CM team in the SGS with this app?
[Spirit FM] denzel09:
Hi, i have cm10 jb unofficial for my lg p690 but market says me that device is unsupported. With stock ginger rom or cm 7 works great. What happens?
[Spirit FM] mikereidis:
Hi,

I just now enabled in Play the device identified as "unknown(p690)", but I'm not sure that is the proper ID for LG Optimus Link/Net/Spirit (P690/P690B/P690F ?). I can't see any other obvious match.

Can you try now and let me know ?

Can you send a debug log from the P690 with Menu-> Email Logs so I can see the ID used, etc ? AFAICT I don't have any logs for these devices.
[Spirit FM] denzel09:
Now works. You have a mail w log.
[Spirit FM] weihan1102:
samsung galaxy w , if a listen radio and have a call, it will hang and need to reboot , why?
[Spirit FM] mikereidis:
Are you running August 15 release ? Link for Free version in post 1.

Does this only happen with a phone call, or also with mute ? What about a quick mute, unmute, mute ?

Does the reboot happen when the phone starts ringing, when it's answered or after the phone call ?

Galaxy W has had lots of problems with Spirit. There are settings we could try changing, but it usually doesn't help too much.

For example, try setting Debug-> Mute kill mediaserver to "Disable" and restart Spirit.
[Spirit FM] s0ulreaver:
I have tested the Aug15 build and here is my feedback:

- I confirm the bug with the battery drain after the program gets closed on the Desire HD seems to be fixed (I'm still testing this);

- When listening to the radio, I used to hear the ring or alarm tones but not anymore. Now I realize that there must be some event as the radio gets muted while the other event happens;

- Sometime I just try to start Spirit and it crashes but I start it again and it's starting fine. Same thing happens sometime when I close the app: it would FC 1st but close fine after.

- Beside alarms/ring tone, I have no other tones playing on the phone (keyboard, etc). I'm using Aospx (CM9).

- While Spirit is active, the bluetooth can't be turned on (same chip/circuits maybe?). If I turn off Spirit, I can start the Bluetooth just fine.

- If I have a Bluetooth headset active and headphones and use Spirit, I will have the ring in my Bluetooth headset and Spirit will function just fine until I answer the call. Then the FM radio gets muted I guess. Once the call is finished, Spirit stays muted but I can activate it just by switching to speaker and back to phones and it starts again.

- If while listening to the radio while having the bluetooth headset connected I turn off bluetooth, Spirit stops playing too (I guess it's normal). This time to get it working again I have to power off Spirit then power it back on. If I do it this way the bluetooth shows started back again. I guess while having Spirit on, the bluetooth is active too but just not showing active, right?

- On the latest GB ATT Sense 3.0 ROM, while having only the HTC Radio on the power consumption shows ~60mA. With Spirit on ICS it's ~75mA (even undervolted and at 192 MHz). With both ROMS in deep sleep the power consumption gets to 1-3mA. Does this mean GB Sense ROM is better at managing the power consumption while the radio is playing?

- In the upper left corner, the signal strength is displayed. On my phone it goes from -12 to 30. Are those just some arbitrary values?

Thanks again for this great app!
[Spirit FM] mikereidis:
Thanks, good re battery. But that was fixed by re-enabling a line I disabled some time ago, possibly due to one or more of the problems you've stated.

Vibrate is also possible for notifications. Hypothetically Spirit could play a ringtone or notification sound, but I hate to create too many layers of hacks.

I haven't seen the crashing on my DHD w/ IceColdSandwitch. Hmm...

I'm currently trying to improve the DHD/qdsp5v2 audio methods though, so I'll test as much as I can.

Yes. Unless you are using the OEM FM APIs, Spirit requires Bluetooth state to stay constant. The CM7 or any non OEM FM app will have the same issues. It's possible to add code that could recover from a switch, but most people don't change BT state so almost nobody reports this as an issue.

If Spirit is started when Bluetooth is off, on Broadcom chip based devices, it communicates directly via the BT "UART", just like the BT stack does. Otherwise, Spirit acts more like a client of the BT stack.

I'm not positive, but I think BT on takes relatively little power if a BT device is not currently connected. Of course the FM part takes power when active.

Spirit isn't an ideal textbook app; many shortcuts were taken in order to get it out there with the level of device support it has, including support for 10 different APIs.

One shortcut is that Spirit does "polling". 10 times per second a timer routine wakes up to take care of such things as volume changes, RDS processing, etc. Ideally I will convert some of this to callbacks, but there will probably need to always be some polling, even if it's only once per second or so.

At one time I would turn off RDS if Spirit was not on screen, and the internal AF function was not in use. But then I added RDS on the notification screen, so if RDS is in use at all, it will be on all the time.

I'm happy to have found the solution for the power drain bug; I enjoy doing things "right" as much as I can. But the fact remains that very few people report concerns about power drain, so it tends to end up lower on my priority list.

It tends to be whatever the chip manufacturer decided. I don't recall about Broadcom just now. I'm trying to do a FAQ and this will be included.

For Broadcom the value reported actually has 144 subtracted first, and it may be a negative single byte number possibly representing db uv or some such.

On some other chips, the value is scaled such that strong stations tend to be in the range of 40-50. Values around 0 imply no signal other than the normal static cosmic background radiation echo of the big bang. :)
[Spirit FM] xmguy:
I am considering getting a Droid 2. Is it still limited to just the right channel via headphones?
[Spirit FM] Android1989:
I read that the 2011 Xperia models are not supported so?
[Spirit FM] Metallico:
Hi Mike, how are you?

There's any new about I 9100G support?

Enviado desde mi GT-I9100G usando Tapatalk 2
[Spirit FM] Android1989:
project is in the future to support these models Xperia 2011?

thanks
[Spirit FM] Lagkage:
Is support for TA (Traffic Announcement) possible? I want to Spirit turns up the volume when TA is received.

If it's possible i would like it to put music player on pause and back again when TA is no longer received.
[Spirit FM] weihan1102:
yes i am using August15 and set mute kill mediaserver to disable ,i can answered the call normaly. but i end the call it will hang and need to reboot(pull out battery)

---------- Post added at 12:42 PM ---------- Previous post was at 12:33 PM ----------

ok i tried mute kill media server to off , it will no hang , but fm is no sound , i try to exit spirit fm, it will hang

---------- Post added at 12:49 PM ---------- Previous post was at 12:42 PM ----------

sorry : i try mute kill mediaserver to enable
[Spirit FM] SingerGuy:
No speaker audio after exiting program?

I'm running the TeamBAMF leaked ICS on an HTC Thunderbolt. After installing the new radio I was able to get the app to work correctly (thanks for your help). Now the problem I have is that when I exit the application the audio doesn't return to the speakers, so I can't hear the phone ring or any notification sounds. I have tried every combination I can think of as far as headphone/speaker settings and such, but the only thing that has worked for me is to restart the phone to get the sound back.
[Spirit FM] mikereidis:
Yes it is still limited to one channel, but of course you can make that mono in the Audio settings.

---

Sorry all for my 2 day delay in getting back online.
[Spirit FM] mikereidis:
See this post for a possible Sony/Ericsson solution with apps FMCyanogen.apk or FMCyanogenHoloStyle.apk :

http://xdaforums.com/showpost.php?p=27560996&postcount=1

I've never had an SE device but I've made several efforts to support them over the last year+. But only the X10 mini worked, and I've since had 1 good report about the X8.

At this time I'm not making any efforts to support Sony's, but I'm keeping an "eye" on them.
[Spirit FM] mikereidis:
Fine thanks.

No I'm afraid not and I haven't heard anything promising from the direction of CM9/10.

AFAICT the audio is digital and Spirit doesn't have any code to directly setup digital connections yet. Adding such code in an app may not be feasible.

In the next few months I will consider learning what goes into Android audio libraries, and possibly creating and submitting patches myself. The proper long term solution has to be in the libraries and not in an app.
[Spirit FM] mikereidis:
Hypothetically yes, practically no, at least this year 2012.

I have too many other higher priority issues to resolve and requests to fill.
[Spirit FM] mikereidis:
This is a case where enabling Debug-> Mute kill mediaserver can help. But I think I recall that caused problems for you ?

Perhaps I should add a Menu-> Test-> "Exit and Kill mediaserver" function that can be manually selected. Or an option that kills mediaserver on power off, but not on mute.

Killing "mediaserver", and in recent test releases "android.process.media" first, seems to more or less do a complete reset of the audio system. It's an easier/faster alternative to rebooting the phone.
[Spirit FM] mikereidis:
OK. All I can offer for now is that I will try to improve the various "qdsp5v2" audio methods on HTC Desire HD, Desire Z and OneV.

And hopefully that will help with the Galaxy W too.
[Spirit FM] SingerGuy:
Enabling Debug-> Mute kill mediaserver did the trick.

Thank you!
[Spirit FM] xmguy:
That would be OK. Would that enable audio in the rear speaker and use both headphones? Also could a future version include a stereo on screen indicator?
[Spirit FM] mikereidis:
From post 2:

- Motorola Droid 2 A955. Must be rooted. One channel only. Wired headset only. (CDMA only. Not Droid 2 Global A956)

I never got around to building OSS support into ssd, or otherwise testing it out. I'd hoped to experiment to see about speaker output, or enabling the other channel.

I recall someone mentioning the left channel actually worked, but the volume was VERY low. A theory has been that the left channel was used for a microphone input, and perhaps that messed up the gain, but it might be a software thing.

I have a Droid 2 to test, but since it's such an old device now, and since I have to make a living, I'm concentrating on the latest, greatest, most expensive phones now, like GS3, Note, OneX etc.

Speculation about manager <> developer/HW engr conversation:

Mgr: Is FM working ?

Dev/HWE: Yeah, but we needed the left channel for the mike and this and that.

Mgr: Oh well, we just won't support it and nobody cares about OTA FM anymore anyway.

Anything is possible. :) If you mean status from the FM chip, it was there in the distant past, and still has an on-screen area reserved, but "flickered" for some weird reason and was disabled.

And due to few requests, was never fixed and re-enabled.
[Spirit FM] jm2k7:
Motorola Charm MB502 supports?

hello, this radio app, I wonder if it is compatible to "Motorola Charm MB502" I wonder if it would work on the stock rom 2.1 Eclair, as this phone has not cooked rom, rooting only been able, I would replace application "CMP" and replace it with a good music player and use this program to fm radio. :o
[Spirit FM] mikereidis:
Nobody has ever asked about this device before.

A quick Google seems to indicate it has stock FM. If so, it may work.

Just try it; see post 1 for the free version to test.
[Spirit FM] provaleriy:
HTC One S

Any news about HTC One S? Spirit FM still hang the phone.
[Spirit FM] mikereidis:
EDIT: See my next post: #4352: http://xdaforums.com/showpost.php?p=30941734&postcount=4352

No, but I'm happy to re-open the investigation.

I had about 50 tabs open in my browser this summer, with various ongoing investigations, and lost them all. And I was over-whelmed anyway so kinda welcomed it. :)

I wonder what's different enough to cause this given the working FM/audio on my ATT OneX LTE and the OneS with the more or less same SOC and FM...

Hmmm, I recall crashing occurring on my ATT OneX, as well as on FM-incapable LTE GS3s when radio-iris-transport.ko wasn't loaded, but the radio-iris FM driver was loaded. It's quite possible your ROM/kernel doesn't have this transport driver.

If there's an alternative kernel with an included radio-iris-transport.ko, it might stop crashing and work.

If so, the time I spent investigating LTE GS3s will not have been in vain.

Feel free to fill me in with your ROM details; I'd guess Spirit may be OK on stock ROMs for OneS, but I'm not sure.

And please send me a debug log with Menu-> Email Logs.
[Spirit FM] quentin330:
Hello, I'm on i9100g CM10 based rom and I can't have any sound with the free version, I don't want to buy the paid one if the free doesn't work. Can anyone help me?
[Spirit FM] mikereidis:
I posted this a few weeks ago, and sent the info to 4 people who sent One S logs: http://xdaforums.com/showpost.php?p=30329570&postcount=580

So far I haven't heard back from anyone yet.
[Spirit FM] mikereidis:
9100g doesn't work.

I don't know if or when it might.

See http://xdaforums.com/showpost.php?p=30873266&postcount=4340
[Spirit FM] .:Crack:.:
Hey!

Since BCM4329 supports FM transmitter, is it possible to enable this somehow?
[Spirit FM] dwind:
Big Thanks

Hey Mike just wanted to say BIG thanks to you for Spirit FM. I am enjoying using it on my HTC Inspire jacked to CM9 (Thanks PipelinerArd). And of course major thanks to XDA crew for all the work in stretching the development envelop. Thumbs up to the MAX !!!! :laugh:
[Spirit FM] mikereidis:
In general, not usefully, no. :(

In almost every device the FM transmit pins are not connected anywhere useful.

There WAS at least one carrier specific (I think) HTC phone a few years ago that could transmit. They changed their mind about releasing this feature though.

Somebody even sent me an HTC transmit app that worked on that phone. I tried it on my HTC Desire HD and Desire Z, as well as an HTC Status, but it didn't work.

With some very rare exceptions there are virtually no Android devices that can transmit FM. My guess is that the delays and costs associated with FCC etc. certifications would be insufficient to offset the increased sales.

In many cases we are lucky just to have FM receive capability.
[Spirit FM] mikereidis:
Thanks for your feedback. :)

I'm continuing to see more signs of FM in CM ROMs for certain phones, and I look forward to that allowing me to support audio better. At present FM audio on various phones is a problematic hack.
[Spirit FM] .:Crack:.:
Thanks for the firt reply :)

My old LG KM900 is capable of transmitting, does this help? (hardware wise -> studying)

Whats a "useful" place? My i9000 is opened at the moment, since I'm fixing the GPS, so maybe I could have a look where they are connected?
[Spirit FM] mikereidis:
No.

Those who have the thousands of dollars of equipment needed, and the skillz to operate them, wouldn't be here asking me questions. (EDIT: no offence intended. :) )

The HTC phone with alleged FM transmit is the T-Mobile Mytouch 4g/HD. Not sure if the generic International Glacier would work, or even a production T-Mobile unit. For all I know it could have been a few early test models only.

If anyone has this device, and has or can load a stock or stock derived Froyo or GB ROM, and will commit to reporting their results, please email me and I'll send the APK.

If it works, I might pick up one or two on EBay. Would be nice to have transmitters for testing RDS, AF, etc.
[Spirit FM] .:Crack:.:
Sadly true. Just wanted to help somehow :D

Sounds great
[Spirit FM] zevero:
Small bug

On Fm Light and Europe Band Seeking always finds frequencies with odd decimals. Stepping up and down switches to even decimals. Nothing serious , quality is fine too, but its just inconsistent.