yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Thanks Arobase40.

I'd guess there aren't any references to "FM" in those files ?
[Spirit FM] mikereidis:
Hi sibere.

If you could send me the output from "adb logcat -v time" I can try to determine why it's not working for you.
[Spirit FM] mikereidis:
Yes, I'm aware of the effort by SonyEricson to create an Android FM Radio API.

The last I checked a few weeks ago, there was not a single Android device I could obtain that supported this API.

And I'm not aware of any company besides SonyEricson that has committed to supporting this API.

I will be VERY happy to support this API when it makes sense to do so. It could help solve most of the problems I currently have trying to support many different devices with my own "FM driver API".
[Spirit FM] aniketkau:
default rom is 2.3.4 and rom you just mentioned is said to be - stock 2.3.5(in spice mi-289 community) but the point is that Spirit FM is working on it.
[Spirit FM] mikereidis:
Thanks...

Sending logs is easy. Use Menu-> Email Logs and after 10-20 seconds press Send. On free versions use Menu-> Test-> Email-> Logs.

The REALLY hard part is finding the 5-10-15 minutes to analyze it. Right now my wife needs help with groceries and our pizza dinner is getting cold. :(

See my post 4395 for my long diatribe.

I simply don't have much time now to deal with OEMs such as Spice, never mind OEMs that aren't Samsung or HTC.

Thanks for your understanding.
[Spirit FM] RsOnAndroid:
Tried on G2.. ICS rom (just trying my luck).. 'Unfortunately, the FM transmitter has stopped' error is recieved.
[Spirit FM] mikereidis:
HTC G2 is pretty much a Desire Z. With Mimicry ?

Heck on my Z for Spirit I can't even figure out how to restart the mediaserver on Mimicry 1.5 without rebooting the darn phone.

I absolutely guarantee there is no way in heck to get the HTC FM transmitter app working on anything except the Broadcom Bluetooth stack with whatever else HTC adds. So if the HTC FM receive app won't work, the transmit app won't work either.

I will likely eventually add a transmitter test function to Spirit, and/or create a separate app, that should be usable on almost any ROM. But it will only be useful on phones that connect the FM transmit pins to the wired headset, and AFAIK, the only such phone ever is the T-Mobile MyTouch 4G HD.

There might be some other phones, and with a test function people will be able to test and see. But I wouldn't be surprised if that damaged some chips with the transmit pins grounded. Might only affect the transmitter section, which would never work anyway, so no loss it seems, but who knows ?

And even on a usable MyTouch 4G HD, there is no guarantee that any specific ROM will allow audio to be routed as needed, or that the "tricks" to do so can be figured out.

Heck, the original Motorola Droid came out 3 years ago, and only recently was it discovered that the FM audio can actually be enabled. LOL. :)
[Spirit FM] itandy:
Mike, I also have similar issue using Aug 11 version. Most of the time, the app just cannot be closed when I hit the close button. But I got a complete freeze today when I try to close the app. I'm using HTC method. Any suggestion?
[Spirit FM] hama2:
htc desire hd /ace

no volume keys works is screen of.

google play music, apollo .. working

on cm10 jelly bean ( codefireX, ) synergye..
[Spirit FM] RsOnAndroid:
On mimicry 1.5, your free version is working. Of course, after I use it once, I cannot use any other audio app without rebooting the phone (as I told you in my last post) earlier:

But a worthy trade-off till you fix that small issue. The app itself, has no issues while its on, on mimicry 1.5.
[Spirit FM] aniketkau:
spice mi-280

I understand your problem. I have still sent you the logs, analyse when you have time. I am in no hurry.

Let me know here or email back.
[Spirit FM] mikereidis:
Does your sig apply, that this is on HTC Incredible S with Virtuous Infinity 1.35 beta ?

Does the problem stop happening if you set Debug-> Mute kill mediaserver to "Disable" and restart ? I expect doing this will prevent phone calls and other audio until a phone reboot, but this is a useful test.

My theory at this point is that there were AOSP changes within the last month or so, and that these changes are trickling down into various ROMs, and thus I am getting more reports, even though Spirit hasn't changed.

"Mute kill mediaserver" is of course a horrible hack I've been desperate to get rid of, but I haven't yet found a proper solution that actually works to restore normal audio, short of rebooting the phone.

And my experience with Mimicry 1.5 on Desire Z is inconsistent. I no longer get reboots when muting once or twice (which kills mediaserver). This MAY be because I no longer have a SIM in the Z.

And I have reports of another Desire Z with Mimicry 1.5 that just can't get Spirit started.

Investigating stuff like this ends up chewing up ALL my time and makes me just want to throw my hands up and give up. :(

And this is one reason why there is not yet a Google Play update since August 11.

I think things are worse because there is no official CM9/10 for phones of the "Desire HD generation". Previously, many ROMs used CM7 as a base for their ROM, which provided some consistency, and had the MAJOR advantage of proper FM audio routing support in the much simpler GingerBread audio libraries. Now there's more of a free-for-all among ROMs, although I guess most are AOSP derived. And AOSP == Google and Google continues to hate FM. :(

I'll continue to bang away at it though and see if I can find a fresh approach to solving it.
[Spirit FM] mikereidis:
Try setting Debug-> Silent Loop to "Enable".
[Spirit FM] mikereidis:
:)

Debug-> Mute kill mediaserver tends to more or less completely restart the audio system (on mute or power off), which avoids the need to reboot the phone.

But unfortunately this hack is causing more and more problems lately.

I'm considering an option that would do this only on power off, possibly selectable with a Menu-> Test option.
[Spirit FM] :
Awesome App! As my MIUI port doesn't include an FM radio I tried this one yesterday.

It worked instantly on my HTC Wildfire S (no need to enable bluetooth). However I've got some small info ...

- If you need some more testing for the HTC Wildfire S, just PM me. All our ICS/JB roms don't contain an FM radio.

- When pressing volume buttons in other app, radio sometimes pauses.

- Can't test much as I can't buy unlocked version (no credit card ...).
[Spirit FM] hama2:
thanks.. working now..

:good:
[Spirit FM] mikereidis:
Wonderful. :) The last time someone posted here running MIUI was May 25; I don't think I've ever tried an ICS/JB version of MIUI.

I offer Paypal sales for the Unlocked version. Anyone can email me.

Volume issue is probably resolved by setting Debug-> Silent Loop to "Enable" and restarting Spirit. This comes at the cost of using a bit more CPU and battery while playing.

I welcome any testing you want to report on, but I'm limited in my ability to do much fixing or investigating right now.
[Spirit FM] ponchofiesta:
If I'm one of them:

I tried Fusion kernel but it crashes too.

If I should try something else, I didn't get it :)
[Spirit FM] PaQ666:
another i9000 buzzer dead

I have i9000 and unfortunately I also damaged my speaker (I knew the danger so I am only one to blame). I am writing to let You know exact conditions it happend, so maybe other might avoid it.

I was using it for 3 weeks already but it didn't eliminate the danger.

I was using spirit fm on headphones only

I switched to safe galaxy s methood

The problem was that even if I was listening fm radio on my headphones, I disconnected them but left (unfortunately) spirit fm still running and then someone called me (damn him!!!). Phone used the buzzer while running spirit fm and killed it.

My hypothesis is that any i9000 is prone to damage, just some plp don't use it the way it might. Remember - never disconnect headphones if spirit fm is running (if You didn't and speaker broke anyway - remember it is still not my fault, I have only one phone and don't have any plans of further testing :))
[Spirit FM] mikereidis:
After some "lobbying", I got some kernels changed with the "no crash" change that was needed: Building radio-iris-transport as a module instead of directly in the kernel.

This unofficial CM10 for OneS has the change: http://xdaforums.com/showpost.php?p=31408261&postcount=107

Also, the official CM10s for OneS/OneXL/EVO 4G LTE have allegedly been changed, but I haven't confirmed yet.

But I think we need some audio modifications also. I've been able to record FM audio on my AT&T OneXL. I hope to produce a hack based on that, or a better/proper solution soon.

The dev tested the record on the OneS Unofficial CM10 though and apparently had no luck.

Progress at least. :)
[Spirit FM] mikereidis:
I'm sorry to hear about your speaker, but thanks for your reports and thoughts. I'll presume you didn't send the email report I had yesterday, the first in a few weeks.

I'll try your scenario and similar ones and see if I can create damage on my GS.

It's true that I rarely use my phones as phones, and when they ring it's usually just because I'm testing.

It makes sense to me that any sound on that back ring/music speaker would increase the chance of damage. I think what happens is there is a DC "offset" voltage on the speaker, which moves the cone in one direction. Any sound on top of that will cause the cone to move even farther in that direction during the cone oscillation.

BTW, there was another damage report that indicated it happened as soon as the phone was plugged in for charging.

Do you know if your GS is an early built one ? I've had a theory that earlier units are susceptible, but who knows...
[Spirit FM] PaQ666:
Speaker should not be a problem, replacements are accessible in my area for $3 - $5, and I have already disassembled it once.

The email report is not mine unfortunately, I can send one if You need them for stats or something.

My SGS was manufactured on June 2010, so it is fairly old one.
[Spirit FM] ponchofiesta:
In the next (14th I think) build of CM10 nightly for One S is this change:

https://github.com/cyanogenmod/andr...mmit/e6a66d93cecda02a88e0c8ecc1864fe0aacc2e79

Perhaps this helps us!?
[Spirit FM] mikereidis:
By itself, not much.

I've verified the latest CM10 nightlies have the FM driver module needed, for OneS, OneXL and EVO 4G LTE.

But unlike the weekly CM9 for OneXL, the FM record trick does not work. I'll see if fixing it is as simple as restoring the /system/etc/snd_soc_msm/ files, or other audio config files.

The weekly CM9 for OneS seems to have the needed audio files, but does not have the FM driver module. Maybe/hopefully the new CM9 weekly on Sunday will have it.

There seems to be no CM9 for Evo 4G LTE.

I tried to do an FM recording hack for audio on OneXL, but it wasn't practical. Now I'm looking at how the stock ROMs setup digital audio.

I'm happy to see that both the stock and CM9 ROMs for OneXL allow FM recording. CM for Galaxy Note and S3 doesn't allow this, and may never.
[Spirit FM] joederp:
Not directly related, but just FYI if anyone cares, the Galaxy S3 i9300 uses Silicon Labs SI4705 for the FM radio.

http://xdaforums.com/showthread.php?p=31576462
[Spirit FM] nazeeh4:
What Can i do if my country is not listed??
[Spirit FM] mikereidis:
There are really only 5 bands, and 3 only differ by channel offsets for channel up/down and GUI frequency select:

Europe: 0.2 Mhz

Australia: 0.1 MHz

World: 0.05 MHz

Pick whichever works best for you, or for other world regions:

North America 0.2 MHz odd channels, RBDS

Japan 76-90 MHz 0.1 Mhz
[Spirit FM] mikereidis:
September 18: http://d-h.st/Sj9

For HTC One XL, OneS, Evo 4G LTE on CM9/10/AOSP:

- Digital audio enabled. For headset/speaker/, insert/remove partially to switch. Not yet tested with other audio and phone calls.

- If Spirit crashes on startup, a kernel is needed that supports radio-iris-transport.ko .

For other:

- It's been over a month since last August 15 test release. Many small fixes and adjustments have been made that are not well tested.

- On HTC Desire HD and similar w/ ICS/JB, the aic3254 dsp/codec continues to give trouble on various ROMs. Work is ongoing.
[Spirit FM] hama2:
hello mike,

whats last version for htc desire hd with

offical codefireX jelly bean (cm10) ?

my last version is 23july UL
[Spirit FM] Nexxusel:
Hi mike, i just found this, http://opensource.samsung.com/reception/receptionSub.do?method=search&searchValue=i9000 , this maybe can help about the speaker problem , it says GT-I9000_GB_Update3.zip and GT-I9000_Opensource_GB_Update2.zip

go for it !! :good::good:

plz let me know what you find ;)
[Spirit FM] ponchofiesta:
Using One S with CM10 build from Sep 18 and this Spirit FM version: works

Great job Mike!

When will you push it to the market so I can install my lite version again?
[Spirit FM] mikereidis:
Great ! :)

It's best to email me and I'll send the new version. Market/Play may take a week or so because I need lots of testing now to prevent new problems on other phones.

Note that RDS is still not working on these Qualcomm FM chips using AOSP based custom ROMs. It's OK using the proprietary API on stock ROMs though.
[Spirit FM] mikereidis:
I don't think there's anything there that helps; It was released long ago.

OEMs do not have to release the source code for their audio libraries, and other parts of "HAL", and they usually don't.
[Spirit FM] mikereidis:
August 11 on Play.

September 18 if you email me.
[Spirit FM] ponchofiesta:
As I understand so far, on the One S it's possible to record. In HTC FM radio it's possible to use soundhound directly from the App to get song infos. This and recording would be a nice feature... if you find time :)
[Spirit FM] mikereidis:
Yes.

Menu-> Test-> Record-> Start 8 was working on stock and CM9 I think. On the current CM10 I found a low level way to record, to an uncompressed WAV file at least.

FM record on capable devices is one of the few things I expect to spend time on in the next few weeks & months. Eventually, official record buttons will be available.

And I will be concentrating more on recent higher end devices like Galaxy S3 and OneX/XL/S which have more digital audio capabilities.
[Spirit FM] RsOnAndroid:
Hey Mike,, does this version has any upgrade related to HTC G2/Desire Z (like the other audio not working after using spirit, till rebooted) ? or are we better off with the Aug 11 version only?
[Spirit FM] joederp:
DC can hurt speaker but these should be piezo, and probably have a DC blocking capacitor. (Check service schematic maybe) but too loud might have done it
[Spirit FM] mikereidis:
Nothing particularly useful I'm afraid. I spent quite a few days trying to get a handle on this, before I took a needed detour to get OneXL/S/etc going.

And detours are good when they help me learn more of the mysteries of Android audio systems.

Right now I have a theory that old custom ROMs didn't enable the DSP (/dev/codec_aic3254) and this avoided the current problems. I'd like to find an easy switch to turn it off. I'll be trying some old 2011 ROMs to see what I can find.

In the end I still think I'll have to learn enough to modify the audio libraries as needed, and submit patches where I can, or try and find better external approaches.
[Spirit FM] mikereidis:
Galaxy S ? See post 3: http://xdaforums.com/showpost.php?p=13380066&postcount=3

With no offence or condescension intended to anyone, there is a specific "Think you have an idea about how to fix it ?" section, but the whole post is useful to read for useful discussion.

:)
[Spirit FM] omek07:
Mike thank you

Can i ask you for the volume+ app.

I have install it and i have increase the system volume but i cant tell that i can see this increase on the spirit fm

I have the hd2

thank you
[Spirit FM] mikereidis:
HD2 uses one of the "qsd8250" audio methods via /dev/msm_audio_ctl .

I'm not aware of any method to raise the top end of the volume for FM radio. FM uses it's own special analog audio path on most Android devices over a year old or so.
[Spirit FM] rmont:
Any chance to use parts of stock fm radio app to fix sounds issues on Galaxy S3 using CM10 ?
[Spirit FM] nitrobg:
Hello, any chance to provide support for Xiaomi M1? It already has built-in radio app, but I'd like to use Spirit FM.
[Spirit FM] mikereidis:
The important code is in the audio libraries, not in the Samsung FM app. That library code is closed source, but so is the FM app.

Generally, stuff like this takes a combination of reverse engineering, time and luck.

What problems ? It works more or less for me, but I've never tested phone calls yet, nor use other audio much.
[Spirit FM] mikereidis:
If Spirit is throwing a startup error, then likely not. It might use a Mediatek chip and I don't support those.
[Spirit FM] mikereidis:
September 21: http://d-h.st/bRc

For Desire Z (Mimicry 1.5 etc.), Desire HD and similar qdsp5v2 audio devices.

Uses a cleaner, more gentle restart of the audio system on mute or power down. Seems to be much less susceptible to causing the phone to crash and reboot.

It is essential to turn off / disable System Settings-> Sound-> "Touch sounds" and "Screen lock sound" or bad audio and/or phone crashing will happen.
[Spirit FM] nitrobg:
Yes, it is throwing a startup error, but it is not using Mediatek chip. It uses a MSM8260 chip.
[Spirit FM] rmont:
If i use spirit fm in speaker mode the rest of the sounds are muted (like interface sounds), also with the headphones do not see this problem. Any chance that audio libraries be present in the kernel code released by Samsung? :confused:
[Spirit FM] mikereidis:
I had a debug log from a "mione_plus_cdma" a few weeks ago and it shows:

Unlocked Debug Log version Aug11 Fm:BC2 Su:1 Bt:0 Ht:1 Mo:BCU SU: 2 pmo: MI-ONE C1 pbr: Xiaomi pd: mione_plus_cdma pbo: MIONE pv: hw: qcom pn: libra_mione_plus_cdma bp: msm8660

But I'm not sure quite what to make of it, except it has a Broadcom FM/WiFi/BT chip that Spirit couldn't initialize for FM for some reason. Rebooting with Bluetooth off, then on, and trying to start Spirit immediately after the reboot might help.

Feel free to send me a debug log with Menu-> Test-> Email-> Logs.
[Spirit FM] mikereidis:
No.

The Android/Linux kernel is the bottom layer of software. It is GPL licensed and pretty much all code in it MUST be open sourced.

Sitting on top of the kernel are the OEM HAL Hardware adaptation libraries. OEMs generally do not release these, but Google does, for Nexus devices at least. There is no legal method to force companies to disclose this code.

Sitting on top of HAL libraries is the open source Android code that Google provides. And on top of this are Android apps.

The closed source HAL libraries in the middle are one of the biggest headaches in creating custom ROMs, and a big headache for me too.

I'll see what I can do about the GS3 audio issues.
[Spirit FM] nitrobg:
Thank you. Xiaomi C1 is the CDMA version of M1/Mi-One.

The weird thing is that after starting Spirit, the program causes the bluetooth module to bug and when I turn it on, its startup takes a minute or so.

I don't think that I've got it working, I haven't heard a sound from the app.

I have sent you the debug log, I hope it helps.
[Spirit FM] mikereidis:
Got it, thanks.

All I can say is that Spirit connects to the Broadcom FM/BT...combo chip and reports RSSI signal strength in the negative numbers. If you were tuned, the values should be at least 10-20.

Sorry I can't help any further.
[Spirit FM] Midomad:
Hi

I just purchased spirit fm how can i configure it for my i9000?i'm using stable cyanogenmod 9.1 and semaphore kernel!

Envoyé depuis mon GT-I9000 avec Tapatalk
[Spirit FM] mikereidis:
It should work automatically.

The most likely problem is that you don't have an FM driver in that kernel.

I can verify if you send me a debug log. Use Menu-> Email Logs and after 10-20 seconds press Send.

The semaphore app has a Kernel Features section that includes "Radio FM". Spirit can usually load the driver itself, but enabling "Radio FM" may help.
[Spirit FM] DevilTH:
Hi Mike, in yesterday I flashed on my HTC Explorer the unofficial Rom CM 4.04. Also on this version your app works very well and without mistakes. Thanks again for your great work. If you would get a debug log, let me know that.

Regards DevilTH.

Gesendet von meinem HTC mit Tapatalk.
[Spirit FM] nitrobg:
Oh, apparently it works. I didn't hear static noise which confused me thinking that the program isn't working.

You can add Xiaomi Mi-One to the supported devices. :)
[Spirit FM] desalesouche:
Spirit FM Radio Unlocked 11 aout 2012

working on huawei honor u8660 what a shame that it canno't be delivered by google play...they say app not compatible but that is not true...

the radio is working fine BUT only speaker no possibility to switch to earphone.... and no possibility to control volume with button ...volume stay at max...

on huawei honor u8660
[Spirit FM] KrisPerry:
Any further information on the Lenovo IdeaTab A2107. It appears rather difficult to get hold of
[Spirit FM] mikereidis:
I can probably fix that if I get the device name (ro.product.device).

There's a good chance I can get the earphone working too.

For the above, send me a debug log with Menu-> Email Logs and press Send after it finishes.

For the volume issue, set Menu-> Settings-> Debug-> BC 4330/20780 to "Enable".
[Spirit FM] mikereidis:
Hmm, This says "available in the Chinese market for ¥ 1,799" : http://www.theverge.com/products/lepad-a2107/5796

EBay shows A2109s available, but only listings for an A2107 cover.

Apparently it has dual SIMs and CDMA and GSM ? I don't think I've heard of any dual SIM devices outside of certain countries, such as India and China.

And devices with SIMs are usually sold by carriers in North America at least.

Maybe it's delayed. Maybe it may never come to "Western" markets. :(

Figures. "They" just don't want us to have FM, LOL.
[Spirit FM] KrisPerry:
Yeah what is the deal with that exactly.
[Spirit FM] mikereidis:
For tablets, or Android in general ?

- For tablets, my silly hypothesis had to do with higher import duties for a "radio" than a smartphone, and it became a "radio" at 6 inches.

- The most obvious explanation, on WiFi only devices (no cell voice or data), is that adding over the air radio would cost more than the OEMs would gain in sales.

I've heard some "university" holds radio tuning patents that require payments for the technology inside an FM chip.

- Carriers, particularly in the US, appreciate the added income from data plans due to streaming "radio". Ignore their excuses about how bandwidth demands hurt them; it's a ruse to raise profits.

- But also, carriers want to be the gate-keepers to content, not "dumb pipes" that must fight over price. Over the air radio, and TV too (some Asian devices have TV) are outside of the carriers control. They want you using their services, or at a minimum, their pipes to access your content.

Never thought of it much, or read anything, but here in Canada, Bell has mobile device TV for sale: http://mobiletv.bell.ca/

- Devices with SIM slots in them don't sell well in the US unless a carrier is pushing them. I don't think they like dual SIM devices especially, giving you fast carrier switching capability.
[Spirit FM] mikereidis:
September 24: http://d-h.st/UCi

Also updated on Play.

Since last Play version August 11, there have been many small fixes and adjustments.

The biggest change is CM9/10/AOSP support for AT&T/HTC OneXL, OneS, Evo 4G LTE.
[Spirit FM] omar300:
i have galaxy s3 canada aws version. i know my phone is not supported. thanks for confirming. :(
[Spirit FM] mikereidis:
Our Canadian carriers seem to be emulating US carriers, and leaving FM out, especially on high-end devices.

One reason may be the use of LTE models designed for the US market.

And even the very newest International Galaxy S3 LTE GT-i9305 doesn't appear to have FM.
[Spirit FM] gyankamp1:
My phone didn't allow me to record FM radio output.I change audio.so driver but no luck.Is some drivers corresponding for that ,the kernel, or something else;If someone now something please inform as.