yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
I found a bug which affects the last 4 Audio Methods in the settings list, including qsd8250. I'll see if I can find any other related bugs before I build a version to test. There may be some Volume Scale bugs.

The "Can't find a compatible FM chip" problem can happen if you re-orient the phone while the app is starting. Try to keep the device in landscape or portrait until the startup is complete. This is something else to fix. Android restarts an app for orientation changes and this plays havoc with powerup.

I could make the app do an extra Mute/Unmute at startup if that helps.

I think it may be best if you can reset all options to default at this point. Either remove and re-install the app or go to Android Settings -> Applications -> Manage and select Spirit FM and select Clear Data.

To solve the "Volume goes to Ringer Problem", the best option is "Debug -> Use Silent Loop" and then power the FM down and up. After that restart, if it requires an additional app restart to work, I'm not sure why.

If "Use Silent Loop" doesn't work well, then you could "Live with the problem" and always go to the app to set volume, or if you have an unlocked app, you can use Headset cable media buttons to change volume.

My HTC Legend has the 3 buttons needed; I'm not sure about the old HTC/Google Nexus 1. HTC products tend to support all 3 buttons. Next and Previous are Volume Up and Down, and the pause/play button is mute/unmute.
[Spirit FM] filippogiad:
Before doing my tests i uninstalled and reinstalled the app. I forgot to say this. ;)

i'll try again with silent loop or with headset (I bought the app, of course!!)

Thank You!
[Spirit FM] Dany XP:
Doesnt work on my ROOT Xperia Play (R800ì) 2.3.4 , im' sending you the log
[Spirit FM] mikereidis:
Thanks. It looks like my app is using the Broadcom chip for FM.

Did you try setting the SonyEricsson Audio Method ?

Are you seeing unusual RSSI values, that jump rapidly between such values as: -128, 0, 16, and 55 ? If so, the Broadcom chip is likely useless for FM.

Otherwise, are you seeing signs the RSSI rises on known good channels ?

There ARE some interesting signs of FM, but they may be due to shared system software for other SE phones with FM.

These are from the logs, but I think the "ti..." indicates a TI FM/combo chip and this device doesn't use TI:

11-10 00:56:38.170 W/PackageManager( 228): Unknown permission ti.permission.FMRX_ADMIN in package com.sonyericsson.android.servicemenu

11-10 00:56:38.170 W/PackageManager( 228): Unknown permission ti.permission.FMRX in package com.sonyericsson.android.servicemenu

11-10 00:56:38.210 W/PackageManager( 228): Unknown permission ti.permission.FMRX_ADMIN in package com.sonyericsson.devicemonitor

11-10 00:56:38.210 W/PackageManager( 228): Unknown permission ti.permission.FMRX in package com.sonyericsson.devicemonitor

11-10 00:56:38.420 W/PackageManager( 228): Unknown permission com.sonyericsson.permission.FMRADIO in package com.sonyericsson.music

There is also a /dev/msm_fm device driver which is related to FM audio. I'm trying to find more about this, and looking for an fm_test.c file, but the www.codeaurora.org site seems to be down now.

There are also signs of FM support in /dev/msm_audio_dev_ctrl and the ALSA drivers.

So, maybe... I may be able to say more once I see fm_test.c. I may be able to build it for a test.
[Spirit FM] mikereidis:
Nov 10, an interim release for testing: http://www.mediafire.com/file/uob7j9e6v2jtaaw/Spirit_FM_Radio_v111110.apk

- Fix for last 4 Audio Methods.

- Partial fix for orientation change during power up.

- Debug option for TI OMAP on CM.

- Experimental support for colors, radius, textsize and element weights.

- Layout changes.
[Spirit FM] mikereidis:
As far as FM from the Broadcom chip, yes, my "ongoing theory" is "no way".

I say "theory" because it's difficult to know with any certainty, but I continue to offer a $100 bounty for anyone who finds a software fix for the "Jumping RSSI" problem, and don't think anyone will.

This problem is described in post 2 of this thread and afflicts phones that nobody has ever gotten FM working on. It also afflicts the Broadcom chip on my Galaxy S which uses a different chip for FM (Silicon Labs). So my theory is that "Jumping RSSI" is a symptom of the chip being wired specifically to disable FM.

All that said, there is some chance this device uses a Qualcomm SOC chip with embedded Tavarua FM. There ARE some hints the device might support FM but as said, this could be due to a software load that is generic for many devices.

But as with Broadcom, if the chip is not wired as needed for power, antenna and audio, it is useless.

And it's relatively rare for a device to support FM when it was never advertised as such. So my bet is no FM for the Xperia Play.
[Spirit FM] hochoch:
droidx cm7

hello - i've been dying to get my fm radio back for my droid x running cm7 - nightly build #140.

i stumbled upon your app and was overjoyed to learn that i may be back in business, but i've been searching this thread and trying all different configurations and can't seem to get it to lock onto a station. (using the free version btw). it's just static w/ bursts of music. not sure if its stuck in scanning or just stuck on a dead station.

i see there were some fixes in nighly #142 - not sure if those would help my situation any....

if you could help me out i'd most definitely buy the full/unlock version. thanks!!!
[Spirit FM] mikereidis:
Some people have had their Droid X working OK with my app. But I think most have had the same problems as you.

I was working on this problem last night, and only came up with a command that I think likely won't work. If you can run adb shell commands, or commands from a terminal app, you could try this:

hcitool cmd 3f 135 64 4 0 0 0 0 1

The MIUI ROM for DX has an FM app now, and my app can run while the MIUI app runs. The MIUI devs have solved it by using the Motorola/TI libraries etc.

I wonder if the CM dev(s) have had the same issue and that's why the CM FM app isn't on the CM DX ROM. I should check for a CM DX thread and see...

I hope a fix will be found soon, but this issue has been known for many months now.
[Spirit FM] tiagojpavan:
OK, the app is amazing, and I know that de dev is working hard to make it even better, but I have a sugestion.

I don't read all the posts yet, so I don't know if anyyone have made this sugestion yet, so...

Is possible to add suport for skins?

Well, I think at final this is a question, not a sugestion. LOL
[Spirit FM] mandog202:
Free version is working on Thunderbolt running Liquid Smooth 3.1, but it will not allow me to purchase the paid version, saying it is not compatible with my device.
[Spirit FM] mikereidis:
HTC Thunderbolt (mecha) ? Strange...

I can do paypal, but I prefer to go through the Market.

Did you get the base/free app from the Market ? The permissions and requirements for the base app and unlocker are exactly the same.

If you can't see the market version of the base app, the ROM might be misidentifying the device.

The dev console says the same for both, and the "733 devices" includes the HTC Thunderbolt:
[Spirit FM] mikereidis:
:) I've been getting asked this for 6+ months now.

3 days ago I posted a test version with "Experimental support for colors, radius, textsize and element weights." : http://www.mediafire.com/file/uob7j9e6v2jtaaw/Spirit_FM_Radio_v111110.apk

But nobody has even commented on or asked about those new features yet, and I haven't posted how to use them. Radius makes square buttons rounded at the corners. Colors are for background or text. Weights can be used to remove or change the size of various elements, vertically or horizontally or both.

There is also support for setting background images. For portrait, create a directory /sdcard/sprt and a file /sdcard/sprt/bg.png . For landscape, /sdcard/sprt/bgl.png . Restart the app after.

For inverted colors, eg for in bright sunlight, you can set Settings -> Debug > Theme Light . (4th to last Debug option.)

I've changed the customisation a good bit on the version I'm working on now, so I won't document how it works until next release.

FYI, I may not be able to post for the next 24 hours or so.
[Spirit FM] Quinny899:
Hey mike

I've been messing around with the colours, trying to make it transparent. Any idea how I would do it? It would work perfectly with my background with MIUI ICS :D
[Spirit FM] m.ksy:
I did it, but nothing changed :(

$ hcitool cmd 3f 135 64 4 0 0 0 0 1
< HCI Command: ogf 0x3f, ocf 0x0135, plen 7
64 04 00 00 00 00 01
< HCI Event: 0x0e plen 4
01 35 FD 00
[Spirit FM] mikereidis:
Thanks for your report. I may have to get a Droid X to figure this out.

Inexplicably, here's another Droid X on CM user who is having no problem: http://www.droidforums.net/forum/cyanogenmod-d2/179362-fm-radio-cm7.html#post1837810

I wish we knew why some Droid X's work fine but others don't !

If more Droid X users would buy my unlocker, I might have enough to purchase one used and determine the problem. With "bad luck" though, I might get one that works... :)
[Spirit FM] mikereidis:
Best to start with this new version: http://www.mediafire.com/file/flwvaw45ise3rua/Spirit_FM_Radio_v111114.apk

You'll probably note some layout changes and the addition of an on screen volume control and another line of buttons. The buttons etc. may be a bit more squeezed but an unwanted line or 2 could be disabled.

All the new customisations are under "UI Elements: BC/RA/WT/TC/TS".

The abbreviations are a reminder of the syntax:

BC = Background Color

RA = Radius

WT = Weight

TC = Text Color

TS = Text Size

The syntax applies to everything there except "Color A" - "Color H". These are just a way to quickly specify a color using the values "ca" - "ch".

All "Views" support the first 3: "BC RA WT". The last 2: "TC TS" only apply to "TextViews". This is for elements that consist of Text only, such as the RSSI or RadioText, or the buttons that have text/numbers and no graphic, eg the preset buttons, or the currently unused "Mode" button.

Some basic colors can be spelled, such as "blue", "red", "green", "gray", "black", "white", "yellow", "cyan", "magenta" and perhaps "transparent". Or you can use hexadecimal numbers such as "#00000000" for black or "#FFFFFFFF" for white. First 2 hex digits are for alpha and the remaining 3 groups of 2 are for red, green and blue components.

I will eventually have a color picker, but it's like this for now.

The Elements are preceded with "V" for "Views" that take 3 parameters. "T" means a "TextView" with 5.

"V Main" is the background for the whole app. You can set the background blue, with a rounder corner radius of 10 device independent pixels by setting "V Main" to "blue 10" (don't enter the quotes.) You could set it to "ca 10" if you also set "Color A" to "blue".

After you make a change, you must put the app in the background and return to it to see the changes.

I'm not sure if this mechanism (or any?) can be used to make an app transparent to see the home screen background though.

You can set from 1 to 5 parameters for anything besides Color A - H. Enter "def" to take the default for any parameter.

I'll try to document more after some sleep...

EDIT: It looks like a custom style is required using "windowIsTranslucent": http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android

I'm not sure if this can be turned on/off within the app. It might need to be forced this way.
[Spirit FM] icke:
Hey mike...thank U for your update!

But I've to say v111114 isn't working for me. Tried rebooting, bluetooth on...nothing. App icon isn't shown on task bar.:(

Nov3 version is working fine here.

I'm on HD2 with NTD MIUI 4.0 stable.
[Spirit FM] m.ksy:
forgot to write that I uses GB based cm7, and the boy to whom you wrote, uses Froyo based cm7. Maybe it means something?

p.s. mikereidis, how can you explain this, why is that? i.piccy.info/i7/3f48c5bfc514290e1b3be9fb6e1da69a/1-5-1774/5695688/Bezymiannyi.png
[Spirit FM] mikereidis:
Thanks ! Can you send me logs with Menu->Email Logs or Menu->Help->EM Logs ?

I made a big change and I think I only tested on 1 of my 4 phones.

The change is to prevent problems when re-orienting the phone during power up or power down. It's a long known problem but required a lot of rework.

Would have been easier to disable re-orientation support (for unlocked) but some people like it and I don't want to remove liked features from the unlocked app.
[Spirit FM] mikereidis:
It could be, and if so could be due to different TI "BTS" files. It would be GREAT to have such a simple answer and solution.

Are there different CM ports for Droid X ? With official CM's at least, Froyo is CM6 and GB is CM7.

"This app is incompatible with your Droid X". Does that show for the radio app too, or just for the unlocker ? I've never heard of this problem yet; the 2 apps should be good (to install at least) on pretty much any Android 2.1+ phone.

Anyone with a Droid X please let me know. Thanks !
[Spirit FM] m.ksy:
For DROID X the official CM7 is Froyo based, and GB based CM7 is unofficial rootzwiki.com/topic/2902-dev-threaddroidx-cm7-with-gingerbread-kernel/

Just for the unlocker.

p.s. Sorry for my English, I am from Ukraine.
[Spirit FM] mikereidis:
No problem with your English. :)

OK, thanks... Google search on "This app is incompatible with your" gives 35,100 results.

I DID have someone else reporting this problem on an HTC Thunderbolt. He bought from another phone and just transferred the APK file.

A common issue is custom DPI settings. Setting DPI to normal defaults may help. Sometimes setting Market to "Mature" helps, although my app is rated "Everyone".

A bunch of possible fixes here: http://xdaforums.com/showthread.php?t=1274594
[Spirit FM] m.ksy:
mikereidis, thanks for the link, I'll try to fix my problem.
[Spirit FM] stickedy:
I just testet a Sony Erissone Xperia X8 with the latest GingerXperia ROM and the App somehow worked, but the volume is not very high and - more important - some stations are somehow weird: They sound like the voices a are pitched high or something like that. An example is 90.0 MHz. Other stations like 103.8 are ok.

Any ideas about that? Can I test something or do you need logs?
[Spirit FM] mikereidis:
It never hurts to send me a log. Please put your username or at least X8 in the log email text so I know it's yours.

So this is V12 or V13 of GingerXperia ? There's a Sony Ericsson FM app in this ROM, right ? Does it have the same problems ?

Are you using the SonyEricsson Audio Method under Settings->Audio ?

There are some FM register settings that might help with the high pitched audio, but they usually don't seem to fix issues like this. Does your debug line starting with "FM:" show TI or BC ? I need to know the chip type to see about registers.
[Spirit FM] cos68:
Hi Mike

Thanks for your update. The new GUI is looking great. However the November 14th version is not working too well on my Desire HD with the "Android Revolution HD 6.1.5". First of all I do not get any RDS information any more, even though I have bought your unlock program. Secondly I cannot change the volume any more. It seems like the volume is always at max.

I have found out that the RDS information is available right after I have run your "Spirit FM Unlock", but if I restart the radio, then RDS is gone again and I have to run your "Spirit FM Unlock" tool again?!

I have emailed you my logs.

Thanks!

Claus
[Spirit FM] mikereidis:
Thanks ! I hope to have a new version in the next 24 hours.

I see the RDS problem.

I DON'T see a volume problem. Are you able to move the "thumb" on the volume control graphic underneath the frequency graphic ? On some ROMs you can touch anywhere, on others you must "grab" it by starting a move on top of it.

Make sure you don't have any Debug options checked unless you know why and have a good reason for it (Menu->Settings->Debug).

Fixed Volume should be 0 to disable it. You could set it to 20 for a fixed volume of 20% of maximum, but that may not work if there's a bug somewhere.
[Spirit FM] DevilTH:
I have the the same problem and RDS is also not shown. Version 111110 works perfectly for me with Samsung Galaxy 5.
[Spirit FM] cos68:
Yes, I can move the "thumb" on the volume control graphic,but nothing happened.

I have just tried your application with another custom ROM, called "RCMix3D Runny 4.0" and with this ROM the volume is working without any problems. I think the problem is related to the new version of the Android Revolution HD rom.

Thanks for your support!
[Spirit FM] ozgurubuntu:
Not works on Cyanogen Mod7 Android 2.3.7 ROM Samsung Galaxy Fit

---------- Post added at 04:56 PM ---------- Previous post was at 04:19 PM ----------

Not works on Cyanogen Mod 7 ported Gingerbread 2.3.7 ROM on Galaxy Fit??
[Spirit FM] mikereidis:
Thanks for your report. See my post here: http://xdaforums.com/showpost.php?p=19416419&postcount=46

The audio library modifications made by sfortier and psyke83 for their i5500 CM port (and tj_style enabled on the GT-S5570) need to be incorporated.
[Spirit FM] mikereidis:
There are two ways that volume can be controlled sometimes:

- On the FM chip. This should always work.

- On an audio chip. This is only available on some devices. Some ROMs do this automatically.

So far my app only changes volume on the FM chip. Regardless of ROM I think this should always work. If it doesn't, I think there is some bug in my app.

This is a separate issue than controlling Media volume with the hardware volume buttons. The on screen volume display bypasses the "Volume adjusts Ringer" issue.

My app has some debug options that can work around some issues with the ROM and my app both trying to control volume, but I haven't documented them too well yet.

You could try enabling Debug->BCM 20780 and restarting, but this advice has never worked for anyone yet.

I'll see what I can find out. If anyone with volume issues hasn't already, please start the app, adjust volume all the way up and down, and send me logs via Menu->Help->EM Logs.
[Spirit FM] mikereidis:
November 17 test release:

http://www.mediafire.com/file/lpyauul02ud9ju2/Spirit_FM_Radio_v111117.apk

- Unlocked fixes for RDS, Notification, etc.

- More stable for power up and down. Now done in the service where it should be, so orientation changes or screen off at powerup should be stable now.

- The above allows Sleep and Radio Alarm Clock features. Sleep is implemented via Menu->Sleep. Example: enter 20 to turn off radio after 20 minutes.

- Several enhancements for Huawei/Tavarua V4L devices. Set Audio Method to Huawei/Tavarua. Audio->Volume Ctrl Stream may also need to be set to "7 - Huawei FM".

- "AF:" at upper right shows the number of Alternate Frequencies for the current station. (AF still not fully functional I guess.)

I haven't seen any volume control issues. Hopefully they are "magically fixed" this release due to other fixes ?

I tried the app with the Android 4.0.1 / Ice Cream Sandwich ROM available for Galaxy S / i9000. It works with the exception of audio... Hopefully soon...
[Spirit FM] stickedy:
Im using V12 (I don't know taht there is a V13 anywhere?). The Sony Ericsson FM Radio App works fine so far. The SonyEricsson Audio Metho was set. Without that I don't get any audio at all. I tried all other, too...

It'a TI chip, I sent you the logs a few minutes ago.
[Spirit FM] mikereidis:
Oxygen ROM 2.3.2 for HTC Desire and Nexus One etc. has removed audio library support for FM.

There seem to be quite a few people concerned about FM removal, and there are some development efforts for a fix.

My reply is on post #67 of this thread: http://forum.oxygen.im/viewtopic.php?pid=10233#p10233

Audio Method qsd8250 apparently works, but only for 1 second, and setting Debug->Silent Loop doesn't seem to help.
[Spirit FM] mikereidis:
Thanks for the log. Unfortunately it's full of error lines like this:

tmo_write write errno: File descriptor in bad state (77)

I think this means Bluetooth got into a bad state. I can't imagine the FM was working at all when you sent the log.

Can you try the following:

- Reboot phone.

- Start my app.

- Ensure it's working, even if it has some problems,

- Select Menu->Help->EM Logs and send me those logs.
[Spirit FM] mikereidis:
November 18 test release: http://www.mediafire.com/file/pb97sitc5mwzb9h/Spirit_FM_Radio_v111118.apk

- I hope volume control is fixed for Broadcom 4329 (eg HTC Desire variants) w/ some ROMs. The problem is 100% volume all the time. Also fixed the BCM 20780 debug option, which is needed again now for Samsung Galaxy 5 variants using that chip.

- New User Interface option "Theme" can be to Translucent, Default/Dark or Light.

- New User Interface option "Custom Elements" can enable the "UI Elements" settings. Default disable allows faster app start.

- AF number at top right also includes B mode detection.

- Debug button (or Menu->Debug) allows selection of AF or Dell Streak.

AF shows the list of alternate frequencies and allows a manual jump. Has a problem that the list never updates after the first time this is used. AF support is slowly being improved.

Dell Streak shows options to test various audio functions that I hope will lead to an answer for Streak headset/speaker switching issues.
[Spirit FM] cos68:
Thanks Mike.

I have tested it on my Desire HD, but I still have the volume issue. I have also tested on a HTC Incredible S, and this one has the exact same problem.

However, I have tested a bit more on it, and I have found out that your application is working perfectly the first time I start it after a reboot of the phone. I can change the volume and I can switch between speaker and headset.

The problem appears if I switch off your application on the power button in the right lower corner and the starts your application again later. Then the volume is not working any more and I have to reboot the phone to make it work.

Hope this information can help you to find the problem, thanks!

Claus
[Spirit FM] Cadocson:
I'm terribly sorry for not answering earlier but it was as I suspected a serious amount of care bear missing in cyanogenmod's audio coding. Since a few nightlys back and many fixes everything works fine.
[Spirit FM] cos68:
Well this sounds like the same problem I have with both my Desire HD with both the "Android Revolution HD™ 6.1.5" and the "RCMix3d Runny v4.0" ROM and with my Incredible S with the "Android Revolution HD™ 1.1.9" ROM.

I can confirm that it works even if the app is off screen, or the screen is turned off and locked. If I restart the app then the volume is not working any more. If I use the physical buttons at this point it says "Media Volume".

I have sent you some logs for this.
[Spirit FM] mikereidis:
Thanks !

"It fixed itself" is the best news if it stays fixed.

But volume is something my app SHOULD be able to control on the chip, despite just about anything that can be wrong with the ROM.

This is especially true with Bluetooth off, as the ROM has no way to interfere with FM chip volume.

This chip volume problem may be present, but getting masked (hidden) on phones with ROMs that adjust volume in the audio chip.

There is something else I can and will try for next release.
[Spirit FM] mikereidis:
Two new screenshots on my app Market page: https://market.android.com/details?id=com.mikersmicros.fm

I'm sure the color scheme looks awful to most, but it's a demonstration of the customizing capabilities.

The theme is set to translucent and I'm using a live "Grass" wallpaper.