yashsingh1/xdaforums huggingface dataset:
[Spirit FM] zuzmara:
ZTE Blade

Hi Mike,

Is there any chance, that Spirit with RDS will work on ZTE Blade with a GFS ROM based on the newly leaked burstlam 2.6.35.7 kernel?

THX for U'r work :)

ZuZmaRa
[Spirit FM] vineetksirohi:
lets check it
[Spirit FM] pacostrano:
Hey Mike,

Thx for the app and good work I can enjoy FM radio at work and in the bus now :)

And yeah on my samsung galaxy s the sound of the external will be working wrong after running the app but just need to reboot the phone and that it that all the sound is back to normal lol
[Spirit FM] mikereidis:
Thanks roofrider. There are 2 things needed:

1 - In my app enable this: Menu -> Settings -> Debug -> BCM 20780.

2 - tj_style needs to update libaudio in the same way that subpsyke & sfortier did for GT-I5500.

tj_style knows about this, and has been pointed to the code needed, but I have no idea when he might get to it.
[Spirit FM] mikereidis:
I doubt it at this time. My Silicon Labs FM chip support is written for the Samsung proprietary driver.

I think the Blade uses V4L API.

I'm hoping to support V4L APIs at some point, as it's needed for some other devices, such as those with Tavarua FM.

I've seen CM FM code for the Blade. Does the CM FM app work ? If so, it shouldn't be too hard for me to incorporate that support.

Specific ROMs are difficult for me to predict though. And unless I get a specific device for my development and testing, trouble-shooting issues can be very difficult.
[Spirit FM] mikereidis:
Great !

Best thanks is purchase of my Unlocker so I can continue this development: https://market.android.com/details?id=com.mikersmicros.fm_unlock

Free app download rate has greatly increased the last 3 weeks, but paid app sales rate is merely steady.

I see we live in the same general area. :)

Are you running MIUI ? or CM ?
[Spirit FM] xmguy:
I CAN "CONFIRM" that the Bionic IS supported by the Spirit FM App. However now the distortion heard only on the speaker with the Droid X is now in speaker AND headphones. I can send a debug log if you want Mike?
[Spirit FM] mikereidis:
Great, and not so great. Yes, send the log.

Here we tend to have 14 days during which you can unconditionally return a device, whether due to hardware (eg speaker/chip) malfunction, or any reason whatsoever. I hope you have the same. Buying on a contract though, means there are maximum talk time limits too, like 30 minutes.

I presume you've rooted the Bionic ? It would be good if it could be left stock enough that the stock FM app works, so we can compare logs and try to see what special code is being run to likely lower gain and reduce distortion.

Or if there is no stock app, I'd guess you can run the app from another device and at least confirm the distortion isn't present.

And... You're sure you want to stick with Motorola/(Google?) ? Bionic is a nice phone, but TI FM chips are a good deal less popular than Broadcom. The result is I end up supporting Broadcom better. For example, I can do UART mode for TI but I haven't yet due to lack of demand/need.

The BCM 20780 in my $79 Samsung I5500 appears to be a good deal better in RF. I can actually receive RDS from some stations with no antenna.

Personally, if I had $600 to spend on one phone for real use (not development), I think I'd go with the Samsung Galaxy S2. Or perhaps a Nexus Prime if I could wait.

Of course there are countless details and considerations and everyone has different wants and needs...
[Spirit FM] roofrider:
Thankx..yup i have that debug option enabled :) but for him to update, the repo needs to up right? or is it something else?
[Spirit FM] xmguy:
Well FM_Launch2 cleared it all up. So it seems. I still sent a log.
[Spirit FM] mikereidis:
I don't know if he is dependent on kernel.org, directly or indirectly.

I know Galaxy S CM nightlies have been suspended for 2 weeks due to kernel.org. But the GT-i5500 port by subpsyke & sfortier is having no trouble.

I think the GT-S5570 port may not be high on his priority list right now. A few request PMs or posts on his thread might nudge him a little.

But I'd suggest his donate button might make for a more powerful persuasion: http://xdaforums.com/showpost.php?p=15626562&postcount=1
[Spirit FM] mikereidis:
:D

And I just removed that Audio Method tonight ! That's 2 out of 2 removals turned out needed same day. LOL.

The FM_launch uses "FM_launch=off" or "FM_launch=on".

The FM_launch2 uses numbers like "FM_launch=11", in addition to the previous, just in case and to make it compatible with both perhaps.

I've seen both styles in Motorola FM apps, but until now don't recall hearing of success with the latter. I just googled it now and found at least one person needed it for Droid X on MIUI. So that MIUI uses stock audio libs I guess.

(It's cool to google postings about my app I've never read before, especially when it's a success story, or at least gives me info.)
[Spirit FM] mikereidis:
Re Galaxy S2:

I saw the following in my app comments today:

"

JaDue (September 14, 2011)

Works great on Samsung Galaxy S II (2.3.4 / XXKG6)! First no sound - switched "Audio methode" to "all" and no problems now.

Please incerase graphics!

"

:)
[Spirit FM] roofrider:
:) not sure if u know,he no longer has the phone s5570 with him, that is y he is no longer able to solve major bugs though there isnt any except the radio. Thankx for ur efforts :) will see wat can be done :)
[Spirit FM] mikereidis:
Ohhhhh, yeah I forgot. Doing CM7 fixes without a phone is awfully hard.

Someone will have to send him one, or someone else needs to pick up the CM port, or I guess it's dead.

If someone can figure out how to use the audio libraries from another phone, like the GT-I5500, it might work. Or perhaps there is some other technique that can work.

But I don't have the resources to research this any further, or do ROM/port development...
[Spirit FM] mikereidis:
Galaxy S audio strangenesses:

The FM audio on my Galaxy S w/ CM7 just stopped working. Power down, reboot didn't fix it. Even the CM FM app was silent.

I pulled the battery, waited several minutes, rebooted and it was fine. :confused:

I guess this was also causing my strange MIUI issues, even switching Galnet <> US.

I can't imagine what would cause an audio problem to survive a power down and reboot (without battery pull or several minutes waiting.)

Unless it was something like hardware overheat. But my app can run fine overnight on speaker or headset. So...

So perhaps this might also be a source of apparent speaker "damage" problems that resolve themself.
[Spirit FM] mikereidis:
Version Sept. 15: http://www.mediafire.com/file/4m7t4ezso1qct7m/Spirit_FM_Radio_v110915.apk

- Dell Streak may work on headset now.

- Many Audio Methods have been renamed.

- Audio Method Samsung ALSA may work on MIUI as Samsung CM7 did previously.

- Audio Method Samsung CM7 should work better at startup now.

- Trial mode removed.

- Nag removed.

- Adjustments to free versus paid features.
[Spirit FM] xmguy:
Hey Mike

Put your email like "mike{at}spiritfmradio.com. ive done it and never got spam.
[Spirit FM] gorast358:
Why does it have to turn on the bluetooth on Dell streak ? Before when i using two programs : streak radio and then spirit fm , it wasent turn on the bluetooth .
[Spirit FM] alonsosjumper:
First, congratulations for your work. Second, this version has not RDS? It isn´t showed.

Third, i would like to ask you if you can develop a function to record FM Radio?

Thanks!
[Spirit FM] mikereidis:
OK, thanks, so it's mikereidis{at}gmail.com.

I was under the impression spambots could decipher such easy transformations. But I think anti-spam measures are much better now too.
[Spirit FM] mikereidis:
Hmmm... I've had this question many times.

In general, TI and Broadcom FM chips are embedded within Bluetooth combination chips, and the FM control is done through the Bluetooth HCI interface.

Some stock FM apps can hide the fact that Bluetooth is running, or at least don't turn on the BT RF portion. Also, Bluetooth can be started at the Linux level and Android won't know it's on.

The Dell Streak "fm_hcitool 1" utility that Streak Radio uses may work like a stock app that hides Bluetooth on status.

With Broadcom chips, such as on the Streak, my app can work with BT off by communicating directly with the HCI UART (serial port). It's possible this UART mode has stopped working for your or on the Streak for some reason.

If you start my app with BT off, and it turns BT on, select Menu -> Email Logs and if I get the logs I can look and try to determine the problem. Sometimes the file doesn't attach right, so manually retrieving /sdcard/sprt_debug.txt and emailing it might work better.
[Spirit FM] clem_ita:
Hi sir,

did some more test in the last days with volume keys on my LG Optimus One CM7 (mik_os 6.5.7 version). i figured out a strange behavior, that i can reproduce many times. I have the latest version available in market, not the beta versions you linked in this thread.

when i have spiritfm running in the background, no other app running, and the screen is ON, volume keys do not work. if i just turn off the screen and wait a couple of seconds, volume keys begin to work. then i turn on the screen again, and volume keys stop to work. I can turn the screen ON and OFF many times, without opening any other app, and volume keys always work just when the screen is OFF.

anyway it's not big problem... the most important for me is controlling the volume when screen is off. but i wanted to report this, in case you liked to know
[Spirit FM] mikereidis:
Thanks.

Yes, I'm in the midst of making some changes to the Free versus Paid divide. My gross income (before expenses) has been reasonably steady at around $6-7 per day the last 3 months. Much thanks to my supporters, but I can't sustain 80+ hour work weeks and feed my family on that.

So I'm exploring ways to improve my income and this is one step. I'm pretty sure the RDS capabilities of my app are proven, and will be restricting it to the paid/unlocked app. Previously RDS was active for one week, but there have been ways for people to work around the one week limit.

Recording is possible on a few devices. Early iterations of my app "supported" it, but it didn't work on any devices tested at that time. So, maybe, in future, on a few devices.
[Spirit FM] mikereidis:
Thanks !

To my surprise, I can confirm this problem exactly as you say. I'll try to fix this ASAP.

EDIT: Now, without rebooting or restarting my app, volume control was completely gone. Screen on or off, app in foreground or back didn't matter.

I restore it for all circumstances by hitting Speaker/Headset twice.

Perhaps some background app is stealing audio focus and not returning it properly. I can look into some mechanism that would repeatedly grab focus if lost; this would just help workaround a problem in something else though.

I may have experienced this problem because I've been doing longer term tests with my app running and screen off. I'll keep an eye on it. A repeatable test case would help.
[Spirit FM] falan:
CONGRATULATIONS for your work!

:( I tried on Samsung Galaxy S2, with MIUI ROM 1.9.9, but not work

I mean "Audio not work", the Spring FM radio find the FM-radio stations

I checked many Spring FM Radio Audio settings, but nothing
[Spirit FM] mikereidis:
Somebody said it worked with Audio Method set to "All".
[Spirit FM] veenone:
Hi,

Currently I'm using Galnet's MIUI (final build based on 1.9.9) and I got chipmunk sound using GalaxyS Alsa config. The FM radio itself is not working eventhough I got 50 on the signal level. Any clue on this issue mike?

I'll purchase the paid version once it works on Galnet MIUI and another thing, can you add Indonesia in the regional band?

thanks!
[Spirit FM] alonsosjumper:
Thanks for answering! FM Radio Record, works on Samsung Galaxy S?

Sorry for my English, because I´m from Spain xD.
[Spirit FM] falan:
I tried, no Audio:(:(:(:(:(:(
[Spirit FM] boran1:
Today I updated SPIRIT FM on my HTC Touch Pro 2 (T-Mobile NL). Still I don't have sound everything working except the sound. Hereby debug rapport. View attachment sprt_debug(1).rar
[Spirit FM] arch07:
Today upgrade says:

- Dell Streak headset fix

It's not true.

Spirit FM don't see when headset is in phone. But android shows the headset icon. So sound playing through speaker.

Sorry my english is poor:) I'm reader, not writer.

P.s. Thanks for programm - it not looks good, but it works (hope you fix this bug on dell streak) and I buy unlocker.
[Spirit FM] mikereidis:
MIUI may not be supportable, sorry... :( I'm not happy about it either but I haven't found any way to make it work reliably, despite a few days of work trying,

Any non-North America selection should work for Indonesia. World for example.
[Spirit FM] mikereidis:
No, not now. Maybe in future.
[Spirit FM] mikereidis:
Can you try setting Audio -> Volume Control Stream to Samsung FM ?

I'll presume you tried the other Audio Methods. GT-I5500 and plain Samsung are the most likely to work.
[Spirit FM] mikereidis:
Thanks, but what is needed is FM audio route support in your ROM (or at least in the kernel).

I posted in one of the threads for your ROM, and spoke with one of the developers. I don't think they will make the needed changes, and I can't get involved in ROM development.

Sorry...
[Spirit FM] mikereidis:
I've had some reports of success, including here: http://xdaforums.com/showpost.php?p=17570321&postcount=25
[Spirit FM] Alcapone263:
just tried using the motorola atrix 4g with CM7, i know it's been previously mentioned in the thread that it doesn't work but i just figured i'd give it a try.

i'm beginning to give up hope on getting FM Radio support, i called Motorola and went through about two hours of technical support before they finally told me that our device is capable of it, but it's up to our carriers to enable it. although i'm not too positive if that's true or not. i don't trust customer support at all.

if our broadcom chip is indeed enabled in our hardware, then i think it's a kernel level issue that's preventing the Atrix from utilizing our FM Radio. hope it can get figured out soon!
[Spirit FM] gascomm:
fully functioning on htc desire / redux 2.35 rom

after a full day's play i've realised that when i've had spirit running i'm unable to get bluetooth to toggle on. works again if i reboot the phone. a minor bug. i get reception using both the cyanogen mod & all settings, the latter option requiring a restart of the app.

Q. are these radio rom's only capable of FM reception? i'd love MW for the football when away from wireless hotspots. i'm probably showing my ignorance here : )
[Spirit FM] mikereidis:
Great !

Thanks for your report. The Desire is by large the most common phone running my app.

But it's good to hear of success with different ROMs, especially if you can report the Audio Method you are using.
[Spirit FM] mikereidis:
Can't hurt to try. It has a chip supporting FM, and my app appears to work with it, but here's a portion of my 2nd post on this thread:

"

These devices contain Broadcom chips, but appear to be unable to receive FM. They show unusual RSSI values, that jump rapidly between such values as: -128, 0, 16, and 55. None of these devices have a stock FM app, nor will any other FM app function. My theory is that these devices lack the hardware connections to operate, and may even be deliberately disabled:

- HTC Google Nexus S (Has no Silicon Labs FM chip, unlike Samsung Galaxy S.)

- Samsung Galaxy Tab

- Samsung Galaxy Spica i5700

- Motorola Atrix 4G

"

If you want FM, be sure your next phone purchase supports it. See post 2 for my compatibility list.
[Spirit FM] specialex:
it works flawlessly on galaxys cm7 #104, but on any MIUI it has no sound, even static sound :(
[Spirit FM] mikereidis:
For CM7 are you using Audio Method "GalaxyS CM7" ? Should work better than the default.

For MIUI did you try Audio Method "GalaxyS ALSA" ? That is likely the only one that might work.

I'll give another shot to see if I can get MIUI working.
[Spirit FM] mikereidis:
I've just been noticing several of my phones lose volume control after pause, then play. Switching headset/speaker seems to fix it.

Losing volume control during pause (especially auto-pause during a phone call) is appropriate, so that ringer or call volume can be controlled.

But control should return properly with manual or auto-play . I'll find a fix.
[Spirit FM] Kess78:
Hi Mike,

I was just looking at the ratio of install/active install of your app that you posted on another thread and I have one suggestion that maybe can increase it. On my device, and I think on many of others, when I first start the app, I get no sound, althought the apps works on it. I don't think that most of peaple take time to switch between the differents audio methods. Maybe you could create a fonction to recognize the device on first start and automaticly switch to the audio method that have the biggest luck to give sound.

Also do you want me to translate the description in the market, or maybe the full app into french ? It could give you better rate from french peaple.

What do you think ?
[Spirit FM] mikereidis:
Hi Kess. Thanks for your offer. I've never thought of description translations. I've just checked now and it seems an option in the dev console. For the description, sure, go ahead. It would be appreciated.

My app has little to no competition, so I don't think description language has much effect on downloads or sales, but it's nice. I'd hope I could pass it to my wife to do a Quebec French Canadian translation. :)

For the app itself, not right now. I had a new Greek translation sent to me by a helpful person, but I haven't taken the time to re-integrate it. It DOES take some work on my part. And too many strings aren't used anymore, and I've made several changes that make it more complicated.

My first priority (besides sales/income) is supporting as many devices as seems reasonable. I think I've almost reached that point. New devices can always be added, but with some LG devices to do, I think I've about covered all the most common and "easiest" devices.

My second priority is to make a nicer User Interface.

I think translation is going to come after 2nd priority. Bugs, devices and UI is going to have to come first, although languages ARE UI related I guess.
[Spirit FM] mikereidis:
This is definitely on my To Do list. I've started trying to rationalize, and at least rename the Audio Methods to make some sense based on brand or model.

My plan has been to offer a dialog on first start that, if power on seems OK, asks if audio can be heard. Then it could offer to cycle through the possibilities. And yes, some of the options can be automatically removed from the list.

But I think it's hard to reliably identify just one Audio Method automatically. There are just too many combinations of ROMs and devices out there.

The All method was the original default and intended to work on all devices. But as methods were added, interference between them and other bad effects happened. I saw this on the very popular CM so All excludes the CM method.

My percentage of active installations has thankfully been rising lately. It had been dropping, down to about 18%, but has now risen to 23%.

This seems to coincide with a large jump in active app installation rates (per day, ie the slope) the last 3 weeks or so, since the Galaxy S and some other Galaxy 5 type devices have been supported.

Active installations have been about doubling every month. I should post the graph. Now: 77362 total installs and 18746 active installs (24 %)

I'm reasonably sure the percentage is around 24% just because my app won't run on many devices, especially stock. I think forum talk about the needed Audio Method tends to travel reasonably fast among people who are aware of my app.

My app still very much tends towards the technically oriented: those who install aftermarket ROMs. And will likely continue to do so, unless/until I can support more stock ROMs that Jean and Jaucqes Average are running.
[Spirit FM] mikereidis:
LG devices such as the Optimus 2x etc: Audio Method "LG".

I've added support for a new audio method that I think may work on some stock or stock derived LG ROMs. It's Audio Method "LG".

This is the only notable change in this Sept. 17 version:

http://www.mediafire.com/file/xxxxbngfyv1ec6i/Spirit_FM_Radio_v110917.apk

(Sept. 15 went on the Market yesterday.)

If you try this LG method, and it doesn't work, try to do an "adb logcat" while toggling speaker/headset. If you see something like this, it won't work:

05-11 20:21:46.949 E/fm_srvc ( 2548): setFMRadioWiredHeadsetOn exception: java.lang.NoSuchMethodException: setFMRadioWiredHeadsetOn

MIUI ROMs seem to tend towards use of stock audio and other libraries, so it's possible this might work on MIUI.

Doesn't work on my LG P500h with stock/derived libraries, but may work on Optimus 2X or others.

For CyanogenMod on Optimus 2X, I think the only option is writing to the WM8994 registers via /sys/devices/virtual/misc/voodoo_sound/wm8994_write (if it exists on your kernel.)

Writing to those registers directly could have risks, and they might be over-written by the audio libraries. Best solution on CM is support for the CM FM app, but that doesn't appear to be in the works for O2X CM7... :(
[Spirit FM] gorast358:
mikereidis do i need to put fm_hcitool in /system/bin for dell streak ?
[Spirit FM] mikereidis:
No, it's included and can be found at /data/data/com.mikersmicros.fm/files/fm_hcitool after running my app.

I expect to do away with the need for that utility, but for now it's still there.

Let me know how it works for you...
[Spirit FM] gorast358:
Its ok . But switching from headset to speaker do not work well : one time it switched and i need it reboot to hear from headset . Also it turns on bluetooth and it didnt recognize headset i put antenna optional . One time volume buttons didnt work . Dell streak stock rom rooted .
[Spirit FM] mikereidis:
OK, thanks for your report.

I may make the antenna check into a warning. Some people may not realize they need an antenna and detecting whether or not the headphones are installed seems to be difficult on some devices.
[Spirit FM] gorast358:
What about switching from headset to speaker , its not working .
[Spirit FM] mikereidis:
My code relies on fm_hcitool to do it's thing when it's run with the documented parameters. Some people seem to have indicated it works OK.

But others like you have apparently had some trouble.

When I have some time I can try looking at the Streak kernel code to see if there are any clues there.
[Spirit FM] mikereidis:
Thanks for your update. Yes leaving it at the CyanogenMod (previously sdu_sdcs) default is best.

For transmission, software is not the issue. IMO, virtually no manufacturer has shipped an Android device that allows transmission. There are power pins and antenna pins that are not connected as needed.

AFAIK, only Sharp (in Japan) has an Android device that does FM Tx. There's a small wrapper app on the Market for those devices.

I think disabling FM Tx means less scrutiny, time and money when applying for FCC etc. certifications. In a commodity market it's somewhat surprising no manufacturer has done this to differentiate themselves. But product cycles are so short now, the added time lag may be a product killer.
[Spirit FM] Kess78:
Thanks for all those precisions Mike.

I attached the translation :)
[Spirit FM] kepke:
the trick with playing media prior to radio is working again with SamsungS ALSA and miui
[Spirit FM] mikereidis:
Thanks ! I can finally reproduce your workaround on MIUI US 1.9.2 and 1.9.9. (1.9.16 won't boot for me.)

Previously the MIUI music player would always die when going into background. This is now mysteriously fixed.

The Volume Stream doesn't seem to matter. What seems most important is starting the Music Player BEFORE my app.

As a bonus the Music Player doesn't go "chipmunk" after. Hopefully I can implement this workaround automatically in my app.