yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Hi,

I'm afraid nobody has been able to enable audio on the "Rhodium" devices such as HTC Touch Pro 2.

You can tune to a good station and select each Audio Method in sequence at Menu -> Settings -> Audio -> Audio Method. You can stay in that config screen and if any method works, you should hear it.

But past experience indicates no method will work.

AFAIR this is a Win Mobile device with some unofficial Android ROMs ?

I would guess the kernel and audio libraries aren't compatible with any of the audio methods my app supports. It's possible there is no method any app could use to enable FM audio. If anyone finds a method to enable it, I'd be happy to add it to my app.

If this is a Broadcom based device, and my app can run with Bluetooth on, then there's a low quality audio method direct to a handsfree Bluetooth headset that might work:

You'd have to Enable Menu -> Settings -> Debug -> BCM BT Headset, connect a BT headset to the phone, and restart my app for this.

You can send me your logs with Menu -> Help -> EM Logs. Use the latest test app at http://www.mediafire.com/file/docs2dtb6od3zae/Spirit_FM_Radio_v111027.apk . But I don't think there will be any easy solution for this phone anytime soon.
[Spirit FM] akalos:
thanks man for the great app and your interesting

use a wired headset?=i do

What ROM are you using ? Stock ?= yes,2.2.2

Rooted?=yes

Is there a stock FM?=yes

It starts with "FM: ?".=yes

volume keys too" means what ?=the sound is always too high and hard volume keys(volume-,volume+) are just dead.

this is for Huawei u8800 Pro wifi chip

http://www.broadcom.com/products/Bluetooth/Bluetooth-RF-Silicon-and-Software-Solutions/BCM4329

you have a e-mail.
[Spirit FM] alspecial2007:
halo

good news on the radio for P1000?
[Spirit FM] mikereidis:
Sorry no, the FM part of the Broadcom chip is disabled in hardware. It's not feasible. We tried hard but it has the "Jumping RSSI" problem mentioned in post 2.

Samsung P1000 Galaxy Tab Android tablet.
[Spirit FM] mikereidis:
OK, thanks.

It sounds like you're saying it works, but there is no volume control. I'm happy to hear it works as yours is the first report on the Huawei u8800 Pro.

I presume then it starts with "FM: BC". What is the rest of the debug line ?

If you normally start with Bluetooth off, try it with Bluetooth on, or vice versa.

Also try setting Menu -? Settings -> Debug -> BCM 20780, and restart the app.

Beyond that, from your log, there seems to be ALSA registers we can set for FM mixer levels. I'll take a closer look tomorrow/later to see what we can try.
[Spirit FM] akalos:
sh:1 Su:1 Bt:1 Ht:1 H2:0 Mo:BCH SD Hv:4 Ma:15BC

Edit:I still no sound on wired headset,i just want it to make clear this.
[Spirit FM] mikereidis:
OK, thanks.

So the speaker works ? You said "the sound is always too high", so I presume you are getting sound from somewhere.
[Spirit FM] akalos:
yes , speaker works!
[Spirit FM] mikereidis:
I loaded MIUI US 10.28 for Galaxy S from here: http://roms.miui.us/romsnippet.php?device=galaxysmtd

And was pleasantly surprised to see the default and preferred CyanogenMod Audio Method works now.

I'd guess the CM audio libraries are being used now and/or it's been done to enable FM audio routing on Galaxy S MIUI.

On this ROM the old GalaxyS ALSA method seems to have troubles, but the CyanogenMod (or better the "S" variant CyanogenMod) is much better.

And now that I look in /sys/devices/virtual/misc/voodoo_sound/ I see:

fm_radio_headset_normalize_gain

fm_radio_headset_restore_bass

fm_radio_headset_restore_highs

Nice... :)
[Spirit FM] mikereidis:
Great ! Getting that far is somewhat rare on many stock ROMs.

Did you try any of the different Audio Methods yet ?

If I could get a copy of /system/app/FMRadio.apk I could take a good look at what it does.

EDIT: For volume control, I don't think I've mentioned the use of Menu -> Volume Graphic, have I ? This turns the frequency control at the top (87.5-108) into a volume control, Hopefully that would work, or you could try the debug option Volume Scale, setting it to 20 and restarting the app (default is full volume with 100). Lastly there's a debug option "BCM 20780" that can be checked and the app restarted.

Are you capable of running adb shell commands ? Here are some that might help: (Don't even try and do these by hand; Copy and paste is best)

These may reduce the volume to 20% or so:

adb shell /data/data/com.mikersmicros.fm/files/ssd 4 3 33 5

For the rest I'll omit the "adb shell" part, as if running from a terminal:

/data/data/com.mikersmicros.fm/files/ssd 4 3 18 5

/data/data/com.mikersmicros.fm/files/ssd 4 3 20 5

/data/data/com.mikersmicros.fm/files/ssd 4 3 21 5

/data/data/com.mikersmicros.fm/files/ssd 4 3 34 5
[Spirit FM] akalos:
If I could get a copy of /system/app/FMRadio.apk I could take a good look at what it does.=yes

Are you capable of running adb shell commands ?=no,sory.

i keep trying man,thanks

u8800 pro fm radio apk

edit:ss
[Spirit FM] mikereidis:
Thanks !

Main thing I notice so far is that the Android Audio API setForceUse() seems to be used to set speaker or headset.

That's exactly what the CyanogenMod Audio Methods do.

Can I presume you've tried hitting the Speaker/Headset button several times ? Your screenshot shows speaker mode because it's showing a headset. Hit that button and you should be in headset mode, and it will show a speaker icon.

Does the sound disappear when you switch to headset mode ? Or does it just stay playing on speaker ?

You could try restarting the app, or phone, once in headset mode.
[Spirit FM] akalos:
disappear

i try several times both but no,no sound.
[Spirit FM] SaurusX:
My apologies for the miscommunication. I do recall saying that, but I believe it was in reference to when I tried to use Spirit FM in my car, which isn't the most desirable location that I'd want an FM radio on my phone. I was doing an A-B test at the time. When I try to use Spirit at my office I still do get the audio crosstalk and pulsating static bursts.

My main concern is ability to resolve the FM signal. The Moto app can pull in all my local stations at the office with no static (assuming I put the phone in the right spot on my desk). Spirit FM Radio will never pull is a signal that I can actually listen to.

I believe the latter are symptoms of the former. There may be something else in play, though.

There still is none, at least for the Droid X.

I meant that the Droid X is not on the official support list for MIUI. The phone with the most similar hardware is the Motorola Defy, so that codebase is being ported over to be used on the Droid X. The reason the DX is not on the official support list is because the Droid X can only use the official Motorola kernels due to its encrypted bootloader. My initial thought is that MIUI is not using any Motorola libraries as the radio app is indeed the MIUI FM Radio app.

Your app does run on MIUI, but only the Motorola and Motorola2 methods yield anything. I've also sent the log.

Your app doesn't seem to do anything different when I toggle bluetooth on or off. When I run the MIUI FM radio app, tune a station to listen, shut it down, then go into your app there is no difference in performance. Holy cow, if I leave the MIUI app running in the background, but don't actually tune any stations, and then go into your app the difference is astounding! The audio is crystal clear and signal strength is in the high 20's and low 30's where usually I'm pulling negatives. I'd say the MIUI app is definitely doing something "right".

Sorry, but I copy and pasted that command into the cmd window (as I do have adb installed) and the resulting file ended up being filled with "hcitool: not found" and that was it. Let me know what else I can do.
[Spirit FM] mikereidis:
Now we are getting somewhere !! :) Thanks for all the details...

Yes, the MIUI app must be calling some sort of "Enable FM Antenna" function.

Could you post or send me the FM.apk file in /system/app ? I think/hope the answer lies there, but there are some other interesting files:

/system/bin/fmradio

/system/bin/fmradioserver

/system/lib/libFMRadio.so

/system/lib/libfmradio_jni.so

/system/lib/libfmradioplayer.so

but I'd guess these are taken from a stock Motorola ROM.
[Spirit FM] mikereidis:
I think the answer is in that MIUI FM.apk.

But I'll respond to these other points just for completeness or anyone's interest:

Yes, I suspect there is a software controllable antenna switch, and your issues are just due to lack of signal.

Some don't seem to have this problem though, so I wonder if the default switch "position" might differ, or if some devices don't have that switch.

Interesting info on the bootloader locks, thanks...

If the Motorola audio methods are working, then I think they are using Motorola audio libraries. Lately I think that MIUI has been moving away from the "complete open source" nature of CM, and moving back to using manufacturer kernels and libraries, in order to fix many issues on many phones.

This is the first I've heard of the MIUI FM app being used on TI devices. I think they must have examined the stock Motorola app, and their app does the same, and it works because the libraries and kernel are compatible. And I'd bet the basis for the TI code came from me originally, via the first HTC Legend support on CM, LOL.

I think the MIUI app will also show up shortly on Galaxy S and related devices. This is good for me as all these devices will now have the needed FM "infrastructure". OTOH, the MIUI app will be there too and I'll have to stay ahead of their app... :)
[Spirit FM] ajnindlo:
Samsung Galaxy player 4.0 US doesn't work.

Sorry Compatible FM chip not found...

Fm:SL Sh:1 Su:0 Bt:1 Ht:0 H2:0 Mo:SLD

Samsung FM app works, and FM TwoO works.
[Spirit FM] Quinny899:
You don't have root? Try rooting, it may help
[Spirit FM] ajnindlo:
Well, it said some may work without root... OK, will try to find root guide for Samsung Galaxy player 4.0 and try again.
[Spirit FM] mikereidis:
Thanks ! Yours is the first report on a "Player", but it should be pretty much like the Galaxy S / i9000.

Can you send me a log with Menu -> Help -> EM Logs ? Best to use latest test version: http://www.mediafire.com/file/docs2dtb6od3zae/Spirit_FM_Radio_v111027.apk

In general, if FM TwoO works, then my app should work, even without root.

BUT, I recall FM TwoO has a "widget mode" that works with the Samsung FM app if /dev/fmradio can't be accessed. It has lesser functionality though, perhaps no RDS ? My memory is a bit fuzzy on this.
[Spirit FM] deepakbshetty:
Update on Galaxy S2

Works on MIUI 1.10.28 Along with MIUI FM app

Audio methods : Cyanogenmod , CyanogenmodS, Cyanogenmod OLD and New
[Spirit FM] palmheads:
LG Optimus 2x

Looks like the only thing lacking for my device is sound (as mentioned at the start of this thread). It seems to find stations etc fine.

Any updates on an audio output? Its probably a mission!
[Spirit FM] mikereidis:
Great ! Thanks for your report.

MIUI has now FM enabled both the Galaxy S and S2 with 1.10.28.

I think MIUI has beat CM to getting FM working on S2.

The default Cyanogenmod method is likely best, unless CyanogenmodS restores lost frequency response to headphones. But I think the MIUI devs have that issue fixed.
[Spirit FM] mikereidis:
Yes, a mission. :)

Are you running a stock ROM or CM or what ?

In theory a stock or stock derived ROM may work with the LG Audio Method; otherwise I'll have to look at the LG app to see what it does.

For CM this is much more difficult. AFAIR the ROM dev wasn't optimistic about having audio library support for FM routing anytime soon. The big problem is that NVidia is keeping specs on their chip secret.

Somebody could probably figure it out, given a device and enough time.
[Spirit FM] palmheads:
Yeah CM 7.1 for me. Thats cool - I pretty much rooted my device as soon as I got it, so didn't have anytime to get attached to stuff that CM got rid of.

Looks like your doing a fab job with this app.
[Spirit FM] ajnindlo:
I updated and sent the log. FM TwoO does do RDS, I don't see a widget, but when FM TwoO is on the samsung app will show the radio is on.

Still haven't found a way to reliably root this.
[Spirit FM] mikereidis:
Thanks. I imagine there will be a rooting method soon. Samsung doesn't make it too hard. I don't see a forum here on XDA yet ?

Yes, your log shows insufficient permissions on /dev/fmradio:

crw-rw---- system system 10, 43 2004-12-31 20:16 fmradio

We need to see "crw-rw-rw" with "world" read/write for it to work with my app. Even a temp root could change those permissions.

Seems silly to me to need root for FM radio access. Some earlier Galaxy S stock ROMs didn't have this "security feature". I think carriers want you to use their app, if anything at all.

I'm sure that Fm TwoO is running in the "widget mode". Apparently that means you get RDS RT and PS, but not RT+ and PI and PTY.
[Spirit FM] ajnindlo:
yes, rt+ is greyed out, don't know about PI and PTY. I am keeping an eye out for root.

Thanks
[Spirit FM] xmguy:
Mike,

I've noticed in the last few versions of Spirit that the RF signals are weaker than they were in the past on the same phone. I seem to get bursts of static with a semi strong signal. As usual I will send logs. Let me know if there is anything else I can include in the message like debugging, etc. Thanks
[Spirit FM] mikereidis:
Hi, can you confirm this is version related to my app ? It'd be great if I knew which version was the last good one.

Market is Sept 26.

Oct 6: http://www.mediafire.com/file/tudguh28n4lojob/Spirit_FM_Radio_v111006.apk

Oct 17: http://www.mediafire.com/file/p4z0gtuqmcr6nkr/Spirit_FM_Radio_v111017.apk

Oct 27: http://www.mediafire.com/file/docs2dtb6od3zae/Spirit_FM_Radio_v111027.apk

If it IS version related, I'd think it was related to the Motorola(2?) Audio Method (which has been pretty static), or some subtle difference in the TI FM chip programming.

Here's what I emailed you before considering a version related issue with my app:

SaurusX has always reported reception issues (and sub-zero RSSIs?) on his Droid X w/ CM7. Your Droid X seemed OK though, go figure.

He's now found that the MIUI FM app works fine, and my app runs OK when run while the MIUI app is running.

So the theory is that the Droid X has a software controlled "antenna enable".

The Bionic may have the same.
[Spirit FM] mikereidis:
MIUI cuts off scrolling dialog text, on Galaxy S at least.

Since the top is cut off, the most trouble-some result is the inability to see the Unlock Code in the Unlocker.

I am working on a fix.

I don't know if this is a recent issue, but I think it's a MIUI bug. Never seen on any other device or ROM.

It affects all "Alert Dialogs" with scrolled text, such as the Intro, Help, and About functions.
[Spirit FM] Insomaniac10:
hey mike. first off id like to say congrats on this AMAZINg app (even though i cant get it to run on my phone - Samsung Vibrant running CM7 nightly).

just a question, up until an hour ago, whenever i started up spirit fm, it would say that i had a compatible chip (i actually dont remember the exact message, but it did NOT tell me it could not locate a compatible chip)...i was never able to get sound, but i was at least allowed to scroll through different audio methods and watch my signal bounce around, and scroll through frequencies. i still couldnt really get anything going, but its a step above being told flat-out that theres no compatible chip.

all of a sudden, an hour ago i started it up, and it says theres no compatible chip.

just wondering why the app would all of a sudden change its mind?

my chip readings, just in case ----> Fm:BC Sh:1 Su:1 Bt:1 Ht:1 H2:0 Mo:BCU
[Spirit FM] mikereidis:
Nobody and no ROM has ever had FM working on this phone, right ? There's an epidemic lately of Samsung "Galaxy" named devices with no Silicon Labs FM chip, and a Broadcom chip that isn't wired properly. Just had an email about Galaxy Epic 4g, and several Galaxy S2 US models (AT&T, T-Mobile) are missing FM capability.

My app tries to use the FM in the Broadcom chip. But it's not wired and likely shows the "Jumping RSSI problem" I documented in post 2 of this thread. Watch the numbers "bounce". There are common, repeating patterns. :)

I'm not sure why it "changes it's mind". but whether or not Bluetooth is on could have an impact. Bluetooth off operation is coded for /dev/ttyHS0 and /dev/ttyHS1.
[Spirit FM] mikereidis:
November 3 versions of the app and unlocker are now on the market: https://market.android.com/details?id=com.mikersmicros.fm

- Various bug fixes, work-arounds and minor features.

- When Unlocked: Experiment AF support, Radiotext Web Search.

- AF support should now verify PI if available. Regional option. Still rather rough.

- Automated unlocking.
[Spirit FM] Insomaniac10:
oh i totally realize the issues, and reason for issues, with the Galaxy S...i was just saying that i think this app is amazing DESPITE my device not being compatible.

i love the douches on the market leaving horrible comments, calling the app horrible, clearly having absolutely no concept of how these devices work.

with that said, god i wish that eventually this app will work with my phone. i stream radio every day at work and i either always come really close to the cap, or actually hit it. this app would do wonders for all radio listeners. and the fact the you have it on the market as a free app shows a great committment to teh community on your part.

good job, and happy dev'ing...leave no phone behind
[Spirit FM] denzel09:
Pm for you
[Spirit FM] tmihai20:
I tried to install the latest version, but I encountered some weird issues. First, Market shows an error that the package is invalid, then reboots my phone (HD2) and my phone doesn't finish loading (somehow my Dalvik cache gets corrupted, I did some digging). This was the only app I updated. I am using Typhoon 3.7.0 based on cm_bravo v7.1.0 final (it is not a nightly). Can you please check this?
[Spirit FM] zekesic:
Great app, but i would like to know why did you disabled the preset lists in the free version, and since what version ??
[Spirit FM] Insomaniac10:
Why don't you just donate? Hell, i did and the app doesn't even work on my phone haha

Sent from my pocket-rocket.
[Spirit FM] mikereidis:
I've disabled a few features in the free version in order to stimulate sales.

I work on this project more than full time and it's the only income I have. It will only continue if I can earn at least a meagre income, and the current $6-$14 per day isn't sufficient for a family of 4 here in Canada.

I'm sorry but I don't recall exactly which version each change happened in, and it's not a priority of mine to find out.
[Spirit FM] mikereidis:
Can you remove, re-install and try again ?

I can't imagine my app is doing these things, but anything is possible. Nobody else is reporting anything similar yet.

If the problem persists, please send me a log if you can start the app at all. Select Menu -> Help -> EM Logs.

If you can't start the app, a "logcat" from the shell or a logcat app may be helpful.
[Spirit FM] mikereidis:
I can understand non technical people don't know the details. And all free apps get their share of silly comments. But what's "funniest" of all is the people who seem to feel I owe them something because they are using or trying to use my free app. Sheesh ! :)

The biggest demand for FM are for the phones on which it is not possible, of course, LOL.

Yes I wish so too, but IMO it's just not possible without impractical hardware modifications. Same for Atrix, Nexus S, likely Galaxy Nexus and many other phones.

I'm continuing to wonder about a hardware solution that works with the app. Such as something connected to the headphone jack. There ARE radio earphones, but I'd need something that can be controlled from the device screen.

But how many will want to pay $10-$20 when they won't pay a fraction of that for an app (and available radio earphones are likely more expensive) ? OTOH, people ARE more willing to pay for hardware. As a plus it would likely work on most devices and ROMs, even stock.
[Spirit FM] Insomaniac10:
well they might not be tech-savvy, but im sure they know how to read. if they actually read your description, it clearly states that this app simply CANNOT work on some devices. certainly not due to lack of effort....
[Spirit FM] metaldood:
Great app ..works on CM7 based Inspire 4G.

Also I felt the sound is too high even when I set media volume to lowest.
[Spirit FM] mikereidis:
Great !

Under Menu -> Settings -> Audio there is a Volume Scale setting. The default is 100 (%). You can reduce it to 1/10th for example by setting it to 10.

On some ROMs, especially CM ROMs with the CM FM app, there is code to handle volume. Sometimes this can cause my app and CM to "fight" over volume control. I have some settings to work around this but haven't documented them well yet.
[Spirit FM] mikereidis:
You'd think. But as with all free apps, many of the worst comments have horrible grammar and spelling. :)

Yes, some are due to non-native English speakers. At least one of those is selling a stolen Motorola FM app, and I'm pretty darn sure he's left a few of those comments, just like he leaves good comments for his app, all in the somewhat distinctive "accented" English.

I think it says "Many" devices, and that's the truth, for now at least. Most phones run stock ROMs. I wish there was some easy way of specifying requirements in Android Market so phones that aren't compatible won't show my app. But there isn't so I have to let people figure out on their own, for their device and their ROM of a specific version.

For entertainment value, here are some of the funniest recent comments, starting with the "best":

by Ray-Ray (October 4, 2011)

Why would you offer something That doesn't on all devices? And don't tell me not to downgrade you, put out stuff that works on all devices. F -U.

by JT (October 31, 2011)

This is the worst app of existence. I'm going to go hang myself now.

by Pascal (October 28, 2011)

Sucks Volume doesn't work sometimes. Sucks

by Zachary (October 26, 2011)

Rateing Total waste of time and space doesn't work 2nd worst radio app

by Lidia (October 26, 2011)

Poor radio Sucks

by Jackson (October 24, 2011)

DOES NOT WORK DO NOT GET WASTE OF SPACE DOES NOT WORK AND SAYS MAY NOT WORK

by Tim (October 20, 2011)

Rootkit? Completely non-functional, and tries to obtain root access 3 times via shell. Assuming malware.

by gabriel (October 19, 2011)

This app sucks

by poncho (October 11, 2011)

Wasted my time thinking it I was going to be able to listen to the radio. Then the developers says this app dont work on most devices. Pls dont dwngrd

by Jai (October 8, 2011)

Horrible app This app is horrible. Its not even compatible with all phones. I don't recamened this

by Thomas (October 5, 2011)

CRAP CRAP CRAP TOTALLY WORTHLESS!!!!!!

by KenB (September 22, 2011)

Does not work on my Motortola Atrix even though it has a Broadcom chip that supports FM.

------------

And here's at least one of the nicer ones:

by James (October 17, 2011)

Doesn't work with my phone either, but there's no need to call it a bad app...the dev can't control the hardware of outdated phones...jealous douches
[Spirit FM] tmihai20:
I made a CWM backup, uninstalled the app, then I installed it back on my phone. The phone rebooted as soon as Market finished installing the app. This time the phone had no problems rebooting, the app still didn't update. Unfortunately I don't have the EM Logs option in the app Help menu.

I installed a logcat app from the market, tried to update the app and this time it succeeded. I saved a logcat while the app was updating. I use the new market, but I never had any problems updating any app before. I even started the Spirit FM app without any problems. I really don't know what happened...