yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Galaxy S2 with custom ROM ? If you had a stock derived ROM it would be interesting to know if this happened with Debug-> FM API set to "OEM proprietary".

So, if you're at 91.0 and the next station is at 91.6, does a seek up stop at 91.5, perhaps because the RSSI is high enough to stop 0.1 MHz too early ?

I think this is a general problem with some FM chips; there may be no way to tell the chip to only stop on even or odd channels. At one time I had a very sophisticated algorithm to deal with this, but it caused more problems than it solved.

I had also intended to add fine tuning for seek stop RSSI at some point, but never got to it.
[Spirit FM] RsOnAndroid:
Hey Mike - I downloaded this Aug 15 free build before buying the full version.I am using mimicry ICS 1.4 on HTC G2. The apps starts, but when I try to close it, it crashes the phone. If I use task manager to end task, then it doesn't crash. What could be the issue? I am looking forward to buy the full version, but want to make sure it will work.

Thanks
[Spirit FM] mikereidis:
There were changes in August 13 and 15 versions that caused this, and I see that on my Desire Z using CM9.1-vision-3.0-V4.zip .

Try August 11, which matches the latest version on Google Play: http://d-h.st/NfK

If you still have problems, it may help to set Audio-> Method to "qdsp5v2" (the plain, 1st one, near the end of the list.)

I'll get this fixed for CM9, then try Mimicry v1.5.0.
[Spirit FM] RsOnAndroid:
You were right.. I tried the Aug 11 version and that is not crashing... (using qdsp5v2, however, does crashes the phone).

I also noticed that once this app is opened and closed, other music apps like apollo don't work till you reboot the phone. is there some setting to be Corrected?
[Spirit FM] mikereidis:
I'm not sure "qdsp5v2" is what causes a crash, at least not on the CM9 I'm testing with right now.

It's the "Mute kill mediaserver" that seems to crash it, and "qdsp5v2" sets that value automatically to enable.

"Mute kill mediaserver" is my brute force hack to reset the audio system, which allows other audio to work after a mute or FM power off.

But for some reason "Mute kill mediaserver" is crashing, and I haven't gotten to the bottom of it yet. I'll be spending most of tonight trying to find a usable solution. I think this has become a problem on recent ROMs, so something in AOSP or whatever has changed within the last month or 2 I think.
[Spirit FM] mikereidis:
FM Transmit:

Anybody have a T-Mobile/HTC Mytouch 4G on which they have or can load a stock or stock derived GB or Froyo ROM ?

A few months ago a helpful person sent me an HTC FM transmit app. Apparently it was meant for the T-Mobile/HTC Mytouch 4G, and apparently that device is supposed to have the transmit pins connected.

I have no idea (yet) if that is true. Didn't work on my Desire HD or Desire Z though.

I'm sure this will only work on ROMs that use the Broadcom proprietary Bluetooth stack and that have sufficient parts of Sense present. IE, a stock or stock derived ROM. It probably requires Froyo or GingerBread. (That said, if the hardware is there, it's possible to make it work on any ROM, more or less.)

If anyone has or can load such a ROM and wants to try, and will commit to reporting their results, email me at mikereidis AT gmail.com and I'll send the APK.

I'll post a URL publicly at some point, but I really hate to see 20 odd downloads, and nobody ever reports back.

Thanks...
[Spirit FM] xmguy:
Mike I'm moving to the Droid 3 now. But I got a replacement Droid 2 before and the radio powered up but I got nothing but static even on local stations. I'll submit a log for you to look at.
[Spirit FM] iXanza:
Hey mike is there any chance for spirit fm to work on the i9100g? I've tried running it but I get a force close or no sound at all
[Spirit FM] mikereidis:
Well at least the Droid 3 supports the OEM FM API and can work un-rooted. Funny for a phone that doesn't officially support FM. :)

And the stereo and speaker works too...

Your Droid 2 problem sounds like the long-standing "antenna switch" issue that had nothing to do with the antenna, but was solved by loading the TI chip firmware.
[Spirit FM] mikereidis:
Not so far, on AOSP ROMs like CM9/10, though stock derived ROMs with stock audio libraries should work. The audio is known to not work, likely because it's digital and there's nothing in Spirit or the audio libraries to set it up.

However, if someone were to test Menu-> Test-> Record -> Start 8 (or 9 or 10), and if they found FM recording files on the SDCard that contained proper audio, then we'd be making progress.

I successfully used this recording trick to hear FM audio tonight, for the first time, on my AT&T OneXL running CM9. This looks to be part of a viable solution to enable audio on MSM8960 SOCs with Qualcomm FM, such as HTC OneXL, OneS, Evo 4G LTE, and perhaps others.

I couldn't get this trick to work on my GT-i9300, nor my International Note, but it might work on a GT-i9100G.
[Spirit FM] RsOnAndroid:
Thanks..will look forward for the fix. I realized that once I shut the FM off, no other media works, including the phone. Rebooting restores the order.

Not sure of this additional info is of any help..
[Spirit FM] weihan1102:
does it work with Galaxy Note 10.1 ？

sorry for my english
[Spirit FM] xmguy:
I'll send that Droid 2 log. I know there are still Droid 2 users that use Spirit. I know the Droid 3 is basically the Bionic without 4G and smaller with a keyboard. So if it is it will have the FM apks present. But lack the FM app natively.
[Spirit FM] mikereidis:
No.

There are virtually no readily available, non-obscure tablets over 5" (International Galaxy Note) that support FM.

The recently announced 7" Lenovo IdeaTab A2107 may be the first exception if it becomes "readily available".
[Spirit FM] pajean:
Spirit FM Light with LG e617g (L5)

Hello,

how can I get the application to work with LG e617g, the provider is Virgin Mobile (Canada). thx

Pierre-André
[Spirit FM] mikereidis:
Thanks. Yeah, seems so weird that all the other FM stuff is there on D3 and Bionic, and just needs an APK.

The problem you had on Droid 2 was due to my "firmware load fix" not working due to a lack of hcitool on that stock ROM. It's possible that setting Debug-> Motorola FW Load to one of the bottom 3 options may have fixed it.

The OG Motorola Droid FM find is very interesting, but as I emailed, it's a relatively ancient device now, and I'm concentrating on more recently released phones.

Good example of how "impossible" is sometimes possible.

I moved it from the "impossible" section to the "problems" section in the post # 2 compatibility list:

- Motorola Droid A855. (Droid 1. The original/OG. Sholes). Long thought to be impossible. Had signal but no audio. This JB ROM appears to have a working FM app, and implies the possibility that other "impossible" Motorola devices may be possible: http://xdaforums.com/showthread.php?t=1852131
[Spirit FM] mikereidis:
Please don't quote such huge posts. :)

Is it stock, rooted or running a custom ROM ? Is there a working stock FM app ?

Someone sent me a debug log today from the first LG Optimus L5 E610 I've encountered. There was no info from them but I saw it was stock and un-rooted and had a stock FM app.

I also saw that it appeared to have a Tavarua FM chip and Spirit was trying to access it via the "V4L" api.

Try the free app here and let me know what happens: http://d-h.st/Obe

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

Ensure you have a wired headset plugged in. If it seems to work, with RSSI signal strength at top left showing values over 10-20, but you get no sound, try setting Menu-> Settings-> Audio-> Method to the 4 different settings that start with "LG".
[Spirit FM] Jiangyi:
I'm sorry to inform that it doesn't work on I9100G. Tried all 3 methods, and it generated a bunch of empty (0 byte) .3ga files. :(
[Spirit FM] mikereidis:
Well, thanks for trying... :)

I've been looking at i9100Gs on EBay; there are very few and they seem very expensive compared to i9100, which I can get used for a decent price.

Hopefully I or the CM dev will figure out the digital FM audio sometime in the next few months. But for now, we're stuck and I have lots of work to do fixing nasty bugs on other phones that are working, more or less.
[Spirit FM] pajean:
LG e617g (Optimus L5)
[Spirit FM] aniketkau:
Not working

Hi. I am using spice mi-280 and getting fm not accessible error when i start your app. Its an Android 2.3.4 and has an inbuilt fm. Can you tell what is the problem. I have checked with every audio method but its not working.
[Spirit FM] mikereidis:
Audio-> Method will only fix audio problems.

It's highly unlikely I can support this phone, sorry. :(
[Spirit FM] mikereidis:
As you emailed, there is no stock FM app.

From your logs, there is no indication that FM is possible on this phone.

If your Optimus L5 e617g was "rooted" we could explore a little more. But even rooted I think it's not likely it could be made to work well, or at all.

Thanks for the app purchase. :)

As always, I cancel any order at any time on request. So anyone can feel free to try the paid versions for an extended period.
[Spirit FM] DevilTH:
Hallo Mike, I want give you a feedback with my HTC Explorer. Your app works also very good on this device. For RDS the Mobil need root rights, but Sound and the other functions work also on unrooted device.

Thanks again for your great app. :thumbup:

Gesendet von meinem Android mit Tapatalk
[Spirit FM] aniketkau:
spice mi-280

Audio is not the problem.I am not able to interact with UI completely and can't change the frequency(Getting 0 FM Reception). One of my friend is using the same mobile, but he had installed a custom ROM and says the app working on his phone. I heard you say about lack of drivers somewhere in this thread, can I get the drivers manually on my rom?? There should be some way, I think.

[Attaching the screenshot]
[Spirit FM] mikereidis:
Thanks for your report. :)

First time I've heard a report for HTC Explorer/pico A310b.

It's also very unusual to need root for RDS. Does the stock FM app support RDS ?

I would be interested to get a debug log. Can you send one with Menu-> Email Logs and after 10-20 seconds press Send ?

Thanks !
[Spirit FM] mikereidis:
Which ROM and can you provide a link ? Is the FM app Spirit, or some other app ?

Is the screenshot from his phone ? It shows that the phone is rooted, but the logs you sent me indicate your ROM is stock and not rooted.
[Spirit FM] DevilTH:
Yes, the original FM have also RDS but not AF. The Radiotext with your app is much better. Also the solution of your stations buttons is nicer than HTCs.

Without root your app shows static values for RF and AF 0 and Radiotext shows FM: OEM A logcat for you follows.

Gesendet von meinem Android mit Tapatalk
[Spirit FM] mikereidis:
Thanks. :)
[Spirit FM] mikereidis:
EDIT 2013:

T-Mobile HTC Mytouch 4G is capable of FM transmit. This is very rare among Android devices.

Range is very limited. Half decent quality required wrapping transmit and receive antennas together.

It only works on stock, or stock derived, Android 2.2 Froyo. It requires use of the Broadcom proprietary FM stack and won't work on stock 2.3 GB.

In the summer of 2012 a helpful person sent me the HTC FM transmit app: http://d-h.st/A2f

Ensure you have a wired headset plugged in for an antenna. In theory a transmitter can be damaged with no antenna, but that's IMO unlikely at this low power.

It's possible that transmitting on a device that is not FCC or other regulatory body certified for transmission might violate laws. That said, last I checked decades ago, building and operating your own low power broadcast band transmitter, under 100 milliwatts, was legal, as long as it didn't interfere with licensed transmitters.
[Spirit FM] aniketkau:
Re:spice mi-280

First of all, that screenshot is from my phone & my phone is rooted(App is Sprit FM free - downloaded from this thread only). Secondly, I think there is some confusion bcoz I haven't sent you any logs yet. I just told you in my first post that my phone is spice mi-280(stock rom but rooted - Gingerbread 2.3.4) with inbuilt fm but Spirit FM app is detecting 0 signal. Let me know how can I send to logs so that you can analyse them.

Now, I know a person which uses custom ROM. This ROM was provided by a Spice mi280 community developer on Facebook. This is the link for custom ROM (used by my friend & on which spirit FM working) is www.dropbox.com/s/dw0qqfcie0snth6/stock_2.3.5.zip

And here is the link to the stock ROM, I am using on my phone(in case you wish to analyse):

www.dropbox.com/s/z0l7ovrrmptr9ea/SPICE_MI-280_stock_2.3.4.7z

Thx for your help.
[Spirit FM] Quinny899:
I don't think that first one is a custom ROM, it's listed as a stock updated one
[Spirit FM] mikereidis:
Thanks for your helpful post ghiki.

magnus48: ghiki is correct. There are some good instructions here which worked for me: http://www.londatiga.net/it/how-to-sign-apk-zip-files/

apktool d ../FMRadio_v2019.apk decodes

apktool b decodes

cd sign

ls -l

total 20

-rw-r--r-- 1 mike mike 1001 2010-05-05 16:21 certificate.pem

-rw-r--r-- 1 mike mike 633 2010-05-05 16:22 key.pk8

-rw-r--r-- 1 mike mike 310 2010-05-21 00:52 README

-rw-r--r-- 1 mike mike 7369 2008-11-05 15:44 signapk.jar

openssl genrsa -out key.pem 1024

openssl req -new -key key.pem -out request.pem

openssl x509 -req -days 9999 -in request.pem -signkey key.pem -out certificate.pem

openssl pkcs8 -topk8 -outform DER -in key.pem -inform PEM -out key.pk8 -nocrypt

java -jar signapk.jar certificate.pem key.pk8 ../decodes/dist/FMRadio_v2019.apk ../decodes/dist/FMRadio_v2019S.apk

adb uninstall com.mikersmicros.fm

adb install ../decodes/dist/FMRadio_v2019S.apk

The result works fine for me. You can just hit the Enter key for every prompt when creating a certificate.
[Spirit FM] mikereidis:
Hi Arobase40. It sounds like you are doing pretty good for a first try on a new device. Does "stock Froyo" mean the device is running the stock ROM as shipped from the factory ? Do you have root access ?

Can I ask what is shown just under the frequency display that starts with "FM: " ?

I don't know your technical Android capabilities, but I'm not able to put too much effort of my own into this right now, so any help from you or others would help move this along.

Does this device, or any similar Archos device support an FM app with the stock ROM ? If not, it's possible the FM audio is not hooked up. I may have solutions for that in a few months I guess, but not now.

I'll need to know what audio chipset is on your device. Are you able to run something like the following commands from a PC with "adb" installed and working ?

adb shell ls -l -R /dev > dev.txt

Do a fresh boot before this:

adb shell dmesg > dmesg.txt

And then send me the files or post them somewhere.

Beyond that, it could be useful if you could point me to a source code archive for that device. I see there is an early effort underway to try and port CyanogenMod to this device. That would be helpful.

Hmm, I see there is source here:

http://gitorious.org/archos-buildroots

http://gitorious.org/archos

It appears that you have a TI Wireless chip, so I presume that's the FM chip also.
[Spirit FM] mikereidis:
Great ! :)
[Spirit FM] mikereidis:
I think this issue is fixed now in v2.0.19 and I presume that may be because the app now switches the audio path off completely when powered down. I haven't confirmed that I can see the problem with earlier versions, but I'll presume it was there.

I'm using "Battery Monitor Widget" and it seems to update the current draw every 60 seconds on my HTC Legend w/ CM7. For valid values, I have to disconnect any charging cable and can't use the USB cable of course.

So this is with the TI FM/combo chip. I'd like to better test my LG P500h with Broadcom chip, but the phone doesn't seem to report proper currents. I get values around 2-5 mA no matter what, even if screen is on.

With almost everything off: BT, WiFi, GPS, 3g and screen, current seems to be about 17-19 milliamps (mA). With BT on, but not really active, I get about the same: 19 mA.

With FM on, volume at first tick to amplified speakers, and tuned to an active channel and screen off, about 42 mA are used.

When I turn the FM and BT off again, I'm seeing 19 mA (Was seeing 21 mA at one point, but seems back to 19 now. All sorts of things can produce small discrepancies.)
[Spirit FM] mikereidis:
OK, thanks for the info and I'll wait for more.

FM is not supported by any standard Android library. That is why there are so few FM apps. My app tends to communicate with the hardware directly in order to function, and that is difficult to make work with so many devices/phones and ROMs.

I'm guessing you must be running v2.0.9 from the Market. I'd recommend you try the latest v2.0.19 from here: http://www.mediafire.com/file/72noebovkvo0hh1/FMRadio_v2019.zip

v2.0.19 should show some useful debug info just below the frequency when the app/FM is powered up. It will stay there longer if you are tuned to a channel without RDS data that covers it.

From your report, the "FM" is fully functional, with the only missing piece of the puzzle being getting audio output to speaker or headphones. This is a problem with many devices right now.

If the latest version doesn't enable audio, there are some "tricks" that might be used to enable it, but it's best if I know your audio chipset. The ZIP file with the latest versions includes an "ssd" utility that can fix the issue on certain Qualcom audio chips.
[Spirit FM] sibere:
Got the Archos A70S gen8 running urukdroid (rooted).

Here is the debug info I have:

Fm:?? Sh:1 Su:1 Bt:1 Ht:1 H2:0 Mo:UNK HT Hv:4 Ma:13 TI

App is running but I have no RDS nor sound

Skillwise, I can run adb commands, report logs, edit kernel sources and build a new one ;) (see my signature)

hope this helps
[Spirit FM] idkidk:
Hi Mike,

I've try the 2019 version, no news. In attach logcat.

TIA! :D

Idk
[Spirit FM] mikereidis:
Hi sibere, that's great, I nominate you for the position of figuring out if we can enable an FM audio path to speaker or headset. :)

Arobase40 has achieved getting the app working, but without sound. As he has said, set your Regional Band via the Settings Menu, and try tuning to known strong stations to see if you get a few bars of RSSI/strength in the upper left of the app. Hopefully RDS data will also show then.

If it still doesn't seem to work, you can send me the "adb logcat" output and I'll try to figure it out.

I see that my FM chip detection code wasn't able to identify your FM/Bluetooth chip in the first test, but later it got HCI access and could see it was a TI chip.

The first test looks for TI *.bts files in /system. Could you run the following and show me the output ? I also show the output on my HTC Legend:

adb shell find / -iname *.bts

/system/etc/firmware/tiinit_7.2.31.bts

/system/etc/firmware/fmc_init_1273.2.bts

/system/etc/firmware/fm_rx_init_1273.2.bts

/system/etc/firmware/avpr.bts

I will post more about the "no audio" issue in my reply to Arobase40.
[Spirit FM] mikereidis:
Thanks for the debug info Arobase40.

The device files in /dev/snd indicate a Wolfson audio chip, and dmesg indicates it's a WM8988. I also see TDA19989 (HDMI).

These are very good audio chips, but I'm not too familiar with them yet. They are common on Samsung devices such as the Galaxy Tab Idkidk is trying to get audio from.

Unless we can get a schematic, we can't be sure if the TI FM chip analog audio outputs are connected to one or both of the audio chips. But if they are, we may be able to enable that audio path by writing to, or sending Ioctls to /dev/snd/controlC0 through /dev/snd/controlC3.

Unfortunately, I don't think I can be much more help about this audio issue right now. I'm hoping to get a Samsung device in the next month or two and will become more familiar with Wolfson chips.

On the Galaxy Tab, there are PCM outputs from the FM chip to the Wolfson chip. This may enable a digital audio path. I'm also hoping to find a way to send FM audio digitally via HCI/SCO in the next few months, so even if we fail in the short term, we may find success in the longer term.

Re: ssd and sprtd. The ssd utility isn't useful for you now. It's used to fix some audio issues in some Qualcomm audio chipsets. The sprtd daemon can massively reduce your CPU load if it works for you. You can see this with the app showing RDS by running the command "adb shell top -m 4" or similar.

You may need to set execute permissions with chmod. Here's some commands that can install sprtd:

adb remount

adb push sprtd /system/bin/sprtd

adb shell chmod 777 /system/bin/sprtd
[Spirit FM] sibere:
What is the point of all this?

Did I say that your infos were useless?

Grow up ....

Sent from my HTC Desire with DATA2SD :)
[Spirit FM] idkidk:
Hi Arobase40

http://www.ifixit.com/Teardown/Samsung-Galaxy-Tab-Teardown/4103/2

SGT have a Broadcom BCM4329 (Bluetooth/FM/WLAN receiver), BUT we strongly suspect there isn't any antenna connection, so no signal (audio is another kind of problem).

Bye

Idk
[Spirit FM] sibere:
Like we say, les blagues les plus courtes sont les meilleures ("shortes jokes are the best" for non french speakers), and this one is running for too long imho. But I can lol if that helps you. :D

Back to topic:

Tried the latest on my A70S / uruk

Set to France, plugged in headphones, tuned to some local FM stations with RDS and... nothing :/
[Spirit FM] sibere:
You're a bit right there.

well first I ll have a look at the kerne too see if something has to be enabled for the chip and then for the sound. there is not much more I can do ATM

I hope that we'll manage to get it working :)

Sent from my A70S using the XDA mobile application powered by Tapatalk
[Spirit FM] bkmo:
Didn't leave many options to theme it. No styles, no colors configurable, nothing. It has more features than the stock app, but is butt ugly, and is not themer friendly.
[Spirit FM] mikereidis:
:) Yes, I am finally back to working on the User Interface. The UI is still mostly as I received it from the Code Aurora app.

I believe the Code Aurora app is monochrome because it was meant to be given to OEMs for customisations, and color schemes are very subjective and OEMs would likely want to use their own schemes.

If you are aware of any guidelines for making an app themer friendly I'm happy to read them and do what I can.

If there are any other apps you can point to that seem to have a good UI, then please do. All ideas/thoughts are welcome. What do you think of the stock apps like HTCs, or the CM or MIUI apps ? Or streaming music players or other music apps ?

In my UI redesign I'd like to make at least colors configurable.

Thanks for any feedback.
[Spirit FM] mikereidis:
Thanks Idk; the logcat timestamps were useful.

I spent a good bit of time on this log. I found an issue that I have hopefully fixed for the next release. It resulted in UART mode not being successful in the app, but being successful in the daemon.

As before the RSSI register had some values in the expected range, but too many unexpected values and they jumped all over. I'd say this is inconclusive. I don't know if there might be something unusual about your firmware in the *.hcd file.

So my suspicion continues to be that the antenna is not connected. So, barring further developments, there's nothing I can even try to do at this time.

Thanks for all your help and I'm sorry I can't give better news...
[Spirit FM] mikereidis:
I believe both the SGS and the SGT use a Broadcom combination chip for WiFi and BT. That chip also has FM in it, but Samsung does not use that capability and likely haven't hooked the antenna or analog audio connections anywhere. Pretty much confirmed for SGT with the schematic.

The SGS uses a Silicon Labs chip for FM, ignoring the capability in the Broadcom combo chip. FM TwoO and I'd guess the stock Samsung app and the coming CM FM app access it via a device node named something like /dev/fmradio .

The SGT does not seem to have a Silicon Labs chip.

AFAICT, the new versions of the SGS and SGT are the same, FM-wise, although I'm not positive about the SGT 2.