yashsingh1/xdaforums huggingface dataset:
[Spirit FM] roofrider:
yup..thanx.

but once u pause and unpause, it doesnt play..no audio. need to off the radio and on it back again.
[Spirit FM] mikereidis:
That's unexpected. When my app powers off, it does a Mute (Pause), and when it powers on it does an Unmute (Play). So when you power down and back up you'd think the same loss of audio would happen. Does it ?

Again I'd think that's something in the library. This doesn't happen on my GT-I5500. But there may be some workaround, such as:

The Sept 26 version, in my next post, has a new Debug option named "Silent Loop". It's a "hack" but it may work on some devices with Volume Control loss issues, or lack of audio. It plays a sound file filled with silence in a continuous loop.
[Spirit FM] bmans:
please remove stereo to mono if signal is weak

please, please.
[Spirit FM] mikereidis:
EDIT: Now on Market.

September 26 version: http://www.mediafire.com/file/45ebvwh5iiutyw6/Spirit_FM_Radio_v110926.apk

This version should be more stable and is close to a Market release. Feedback for all devices is requested and appreciated.

- Many fixes and minor alterations.

- A new Debug option named "Silent Loop". It's a "hack" but it may work on some devices with Volume Control loss issues, or lack of audio. It plays a sound file filled with silence in a continuous loop.

Restart the app after enabling this option. On one of my 4 phones this option kills the FM audio, Some additional CPU time is used, about 1-7% depending on device.

- Enhancements to the ssd utility for ALSA configuration. Syntax has changed somewhat.

- For Dell Streak: If fm_hcitool is anywhere in the normal path (/system/bin or /system/xbin or sbin etc), that version will be used, regardless of the Audio Method configured. Normally the one in /data/data/com.mikersmicros.fm/files is used.

Also, Broadcom power up invokes "fm_hcitool 1" and "fm_hcitool 2" and power down invokes "fm_hcitool 11", if fm_hcitool is in the path or if "Dell Streak" audio method is enabled.

If you have problems with the Volume Control going to ringer, you can try enabling Settings -> Debug -> Silent Loop, and restart the app. On my LG P500 this actually kills the FM audio (after a very brief burst) and requires a reboot to put back to normal.
[Spirit FM] mikereidis:
Why doesn't this work well for you ?

I can make it an option.
[Spirit FM] bmans:
I would be very happy:)
[Spirit FM] arch07:
dell streak.

Still bad :(

sometimes it play sound, without any control - no tune, no vollume... other times it shows that there is no found compatible FM chip.

When programm can start it is very-very slow - 20-30 seconds after pressing preset station button - then it show new frequency, but sound is not switch - the same song is playing.

try methods "Dell streak" and "All" - the same result. Exepting that in method "All" the vollume is more quiet.
[Spirit FM] mikereidis:
Can you send me the logs ?

In the paid version: Menu -> Email Logs.

In the free version: Enter frequency 1. (Only works if app starts OK.)

Thanks...
[Spirit FM] mikereidis:
EDIT: Speaker not working for HTC Desire HD running CM7 nightly 209. 203 works OK.

Seems to be a ROM issue/change as older versions of my app are the same.
[Spirit FM] mikereidis:
Thanks for sending your logs. They indicate my app is trying to write to the HCI serial port and can't. There's a huge number of debug messages; around 100 per second.

Particularly with my recent changes, we need to get this working with Bluetooth ON first. We may not be able to get it working with Bluetooth off.

So try starting my app after Bluetooth is on, and see if that helps.
[Spirit FM] painter_:
I tried it on my Acer Iconia a100 WIFI tablet. It did toggle Bluetooth on but nothing. Scanning the band produced no sound, no stations found.
[Spirit FM] roofrider:
mike

ur latest version is fine..thou i'm not sure if there is any difference in choosing silent loop..both that n bcm works fine. thou there is that weird mute/unmute issue, as u say it may well be something wrong with my device.
[Spirit FM] Nitemare_real:
I have a Samsung Galaxy S (GT-I9000) and your application works fine, but I'd like to use volumen switches to control volumen when phone is locked, as I can do with Samsung radio application. Is it possible?
[Spirit FM] Janeviolet:
Galaxy S, MIUI 1.9.23. Radio is fine, but my speaker now sounds like *** =(
[Spirit FM] mikereidis:
I looked at logs from an Acer Iconia a500 and it didn't look like FM was possible.

So far the original Dell Streak is the only tablet on which FM works, and it never had a stock FM app.

Do you see unusual RSSI values (at top left), that jump rapidly between such values as: -128, 0, 16, and 55 ? If so, FM is likely disabled in hardware.

What does the debug line (starts with "FM: ") say ? If you send me logs I can look closer. Start the app, and enter 1 for a frequency to send me logs.
[Spirit FM] mikereidis:
I've had scattered reports like this, and only on MIUI, but I see no problem on my Galaxy S.

What version of my app are you running ? Is it OK after a reboot, before my app is started ?
[Spirit FM] mikereidis:
OK, thanks.

To recap: You have a Samsung GT-S5570, running the latest tj_style CM port ROM.

When you press Mute (Pause), the FM audio is muted semi-permanently, until you stop and restart my app. Repeatedly pressing Mute/Unmute and Speaker/Headset doesn't help. And this mute presumably also happens when you make or received a phone call.

This problem has happened with all the app versions you've tried ? AFAIK, nobody else has reported this issue. My theory has been that it's some problem in the audio library, but who knows.

I'm in the midst of creating a new version with LOTS of debug options for audio, so perhaps we can try that after I release it in the next 12 hours or so.
[Spirit FM] mikereidis:
Yes, it should be. It works fine for me on CM7 and different MIUI ROMs.

What ROM are you running ? Does it adjust ringer volume in this state ?

It would be helpful to get logs for this. Start my app, adjust volume, get phone screen to lock, try to adjust volume, unlock screen and send logs from my app.

To send logs, tap the frequency button and enter 1 for a "frequency".
[Spirit FM] mikereidis:
Pirate / Re-packaged versions of Spirit FM:

There have been a few re-packaged versions of my app found.

They use a different signature as they don't have my signing key.

Since my app tends to use SU, a re-packaged version could contain a virus or other malware.

Official release versions of Spirit FM will only be found here: https://market.android.com/details?id=com.mikersmicros.fm

Official testing versions will only be found on mediafire with links by me in this thread.
[Spirit FM] Janeviolet:
I'm runnig the lastest version from Market (downloaded it yesterday). I have this awful overdriven sound from my speaker every time =( Reboots didn't help, I even flashed Darky's rom, but the problem is still here:(
[Spirit FM] mikereidis:
I hope the speaker works fine in other apps.

I returned my first Galaxy S due to a squawking speaker problem that seemed to be permanent. Some of the older Galaxy S's sold here had various hardware issues and I've wondered if that played a part. My current Galaxy S works fine even with all the testing I do.

Some very strange issues I've had with the Galaxy S seemed to be fixed by pulling the battery for several minutes, removing the SIM, and restarting.

I think it's possible there are some hardware issues with the Galaxy S, that might be triggered by the combination of MIUI and enabling the FM audio paths. In general, software should never be able to break hardware. IMO if it does, the hardware (or firmware) design was dangerous.

At least one person said their speaker problem was resolved by de-installing my app, but I can't imagine how, and you've even flashed a new ROM. (Although bootloaders and baseband and some other things may remain constant even through a ROM flash.)
[Spirit FM] nachi9956:
I got an error when i press right arrow button for adding more station.

The error is sorry only paid and unlocker version having this facility.
[Spirit FM] veenone:
Hi Mike,

I wanna report another issue, it's minor I think.

During the radio active (while listening to the radio) there's an incoming call and after receiving the call, the radio's output is broken and the application must be restarted in order to works once again
[Spirit FM] Janeviolet:
I have this problem in every app. If it's hardware issue, can it be solved by changing the speaker?..
[Spirit FM] qriozum:
Hello.

Does anyone know the solution to this great application to work on the HTC Desire Z but with Roma Vision-Runnymede-Sense 3.5 (2.3.5) v1.0 http://xdaforums.com/showthread.php?t = 1277329

The same smartfon but Virtuous Unity v2.3x - worked without a problem.

And now, at Runnymede, "SpiritFMRadio" says that the chip does not support ....: (

It is a serviceable solutions to work on this ROM?
[Spirit FM] mikereidis:
Sorry I don't know for sure. It's possible this is a speaker only issue, but it could also be a problem in the audio chip. If it's a hardware issue, I hope you are under warranty, and I think you should be able to return the phone to stock well enough for a return.

I pulled the Galaxy S support in my app several weeks ago because one person on Galnet MIUI forum reported a seemingly permanent problem and I had the same. Since then, you are only the 3rd person that I know has reported this (as permanent.)

Many, many people are having no such problem, and my second Galaxy S is fine even with extensive testing. I feel awful if my app "triggered" this problem. I've thought long and hard about it and don't think my app can be "directly responsible". It just writes to user accessible "ALSA registers" to turn on the FM audio path.

My app did the same previously for the CM ROM, with no reported problem, despite that the MIUI and CM kernels are (more or less?) the same.

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

I AM and continue to be very concerned about this issue, despite only 3 reports.

I don't think all the MIUI users of my app would appreciate my pulling support. But, at a minimum I guess I should have some way to at least warn users of this possibility.
[Spirit FM] mikereidis:
Yes, sorry, at the same time as I've removed advertising, I've also moved some functionality to the paid/unlocked version in order to stimulate sales and keep this project going.

When you try to select these options, a "Toast" should be seen saying "!!!! Sorry, this feature is only available in the Paid/Unlocked version !!!!".

A toast is a popup message that goes away by itself after a few seconds, and sometimes it's difficult to notice.

I'm happy to see my sales rate has increased somewhat. It's still far from a liveable income, but I think I'll get there eventually.
[Spirit FM] mikereidis:
I'm getting a LOT of email lately, so it would save me some much needed time if, when posting problems, everybody could post their phone, ROM and a link to the ROM or main thread if it's not a stock ROM or the only CM ROM.

Which version of my app ?

You're on one of the Galaxy S MIUI ROMs ? There seem to be many versions/builds of MIUI for the Gal S.

Does Mute/Unmute or Speaker/Headset twice (4 presses of each) help ? I put a workaround in the "after call" code for CM Galaxy S that does Mute, Unmute, Mute, Unmute. It does that for every device until the Sept 25 version, and it could cause an issue. For Sept 25 and 26 it only does this for the Galaxy S CM7 audio method.
[Spirit FM] mikereidis:
What does the debug line say exactly at startup ? It starts with "FM: ".

Can you try toggling Bluetooth ? IE if it's normally on, try turning it off ?

If you are able to capture and send an "adb logcat" (or "logcat" directly on the device) while my app starts, that would help.

My app has "Email Logs" functionality in the app but currently it won't work unless the app is unlocked, or if the app starts OK, by entering 1 as a frequency.
[Spirit FM] prototype22:
my Galaxy S(Miui) also has the speaker distortion problem

i flashed stock froyo and Gingerbread but nothing the speaker problem is still there

i sent it in a samsung repair shop.

Galaxy Slc Gt-I9003 Poseidon Beta

Galaxy S Gt-i9000 Simply Honey 5.0
[Spirit FM] qriozum:
This:

FM:BC Sh:1 Su:1 Bt:1 Ht:0 H2:0 Mo:BCU

Normally I have a BT module off, because I do not use it.

Just when you start the application automatically switches to BT module!

It takes a few seconds, the module switches off BT and then this message is displayed on an incompatible chip.

I'm now at work, but how can I find some time to try to dump logcat.
[Spirit FM] veenone:
Yup, I'm using Galnet MIUI final ( .16 based I think) and I'm using the latest one from Market. Sept 25 build I think.

hmm.. haven't tried that workaround yet.. Well I guess I'll have a try ;)

thanks!
[Spirit FM] mikereidis:
Well, that's awful to hear. :( Were you using the speaker mode much ? At low volume, medium or high ?

I don't imagine you'll be able to find out what they found ? Such as just speaker replaced ?

Thanks for letting me/us know. At this point then I think I MUST either disable Galaxy S MIUI support altogether, or put it behind a big warning.
[Spirit FM] mikereidis:
OK, thanks.

If that ROM has a stock HTC FM app (or if the stock app works), then the Bluetooth stack is the proprietary Broadcom stack. My app can't work with that stack when BT is on.

So then my app must turn BT off (if on) and use the "UART" mode. It currently requires the BT UART at /dev/ttyHS0 or /dev/ttyHS1 most commonly. I can offer a test solution if your BT UART uses some other name.

I've just uploaded a Sept 30 test version that allows sending logs through Menu -> Help -> EM Logs. See a following post.
[Spirit FM] mikereidis:
Sept 30 test version: http://www.mediafire.com/file/a88jdcjp8gp865n/Spirit_FM_Radio_v110930.apk

This release is somewhat "risky" and has some known issues with Volume Control going to Ringer (instead of Media/FM). But it also has some new features and a bunch of debug options to better accommodate various devices and help me figure out the Volume Control/Audio Focus issues.

- To send logs from unlocked apps, select Menu -> Help -> EM Logs.

- For Dell Streak, the presence of the /dev/bcomfm device enforces the need for Bluetooth on. If fm_hcitool is found in the normal path, the app uses that version, if not, it uses the one embedded in my app. It is used to attempt to switch headset/speaker, and to power on and off the FM.

- Output Mode is no longer just Stereo or Mono. For Broadcom and TI chips options are:

Blend Auto (default): Stereo/Mono should be gradually blended when signal is weak.

Switch Auto (not for TI): Stereo/Mono should be switched w/ a hysteresis, instead of a gradual blending, when signals weak.

Stereo Force: Forces stereo mode.

Mono Force: Forces mono mode.

- UI MEdia Button Pause/Play -> Mute/Unmute can be switched off. (Only works when unlocked.)

- UI RDS can be switched off if desired; might save some power. (Only works when unlocked.)

- UI Station ID can be set to Automatic or None. None disables the RDS PI or callsign display. The other selections aren't functional yet. (Only works when unlocked.)

- Galaxy 5 devices with BCM 20780 shouldn't hang at first power up due to auto-detection of the F8 volume register. This may work (or cause problems) on BCM 4329 chips in Desire HD etc. The debug BCM 20780 should still be set manually, or seek problems will result.

- MANY new debug options to help solve and trouble shoot audio and volume control issues. See my next post for more info.
[Spirit FM] mikereidis:
New debug settings under Menu -> Settings -> Debug for Sept. 30:

Note: If you are having problems with Volume Control going to Ringer, check/enable "Power Audio Focus" and restart the app. If that is not sufficient, try Mute/Unmute twice and/or Speaker/Headset twice. At least 2 of my phones need these workarounds sometimes.

Some of these options were created because of possible conflict between FM chip volume as set by my app and FM chip volume set by the ROM libaudio. Most CM ROMs with the CM FM app can handle adjusting volume without my app doing anything. Sometimes that only works when Bluetooth is on. Some devices and CM ROMs support setting FM volume in an external amp instead of in the FM chip. In such cases my app can be configured to set a fixed FM chip volume.

Set Stream Volume Off: When media buttons are used as volume control, Android API setStreamVolume() is normally called to inform Android about the volume change and display the volume on screen briefly. When checked/enabled, this is turned off. This might be turned off if there is some conflict between FM chip volume as set by my app and FM chip volume set by the ROM libaudio.

HW Vol Off: When checked, the FM chip "hardware volume" register will never be written, except possibly by a fixed volume setting.

Poll Vol Off: Normally the app regularly "polls" the volume setting as set by Android (volume keys). If volume changes, the app may call setStreamVolume() and set the volume in the FM chip. Checking this option disables the polling, and effectively does much the same as setting both options above to Off (checked). Set this to avoid the app setting FM chip volume, except by a fixed volume setting (see below). This can be set if the ROM supports setting FM volume by itself.

Set VCS Off: Normally, on power up, the app calls Android API setVolumeControlStream() to change the volume control operation from the default Ringer to Media (Music or FM). On power down the same API is called to return control to default. Useful for some debug situations.

Power Audio Focus: When checked, Android API requestAudioFocus() is called at power up, and abandonAudioFocus() at power down. These work on Android 2.2+ only, not on 2.1. Previously a few weeks ago, my app did not request audio focus, yet volume control still worked OK most of the time. I made this a debug option, because these API calls sometimes have the opposite effect.

Unmute Audio Focus: Same as above, but focus is requested only when audio is unmuted, and abandoned when muted. This option generally seems inferior to Power Audio Focus.

Fixed Volume: At the default of 0, this function is disabled. When set from 0.001 to 100, FM chip volume is fixed at the specified value (where 0 is no audio and 100 is full audio). This is useful for devices that control FM audio volume with an external amplifier. Usually 100 is the appropriate value.

I will post some examples when I can.
[Spirit FM] prototype22:
i used it only for 2-3 mins

speaker medium volume

hope they can fix it by only replacing the speaker

Galaxy Slc Gt-I9003 Poseidon Beta

Galaxy S Gt-i9000 Simply Honey 5.0
[Spirit FM] Kess78:
Hi Mike,

I have a TI, and Switch Auto works well. But force Stereo doesn't work, it does the same thing as Switch Auto.
[Spirit FM] bmans:
many thanks :)
[Spirit FM] mikereidis:
Best thanks is becoming a customer, assuming you can afford to. :)

I'm still curious why you asked for this.

My guess is that your signals are somewhat weak, and you prefer to remain on stereo with some noise as you move around etc., than to hear the mode switched or blended.
[Spirit FM] mikereidis:
Thanks. I hope so too. If you find out please let us know.
[Spirit FM] mikereidis:
Hi, thanks for the feedback.

Yes the TI chip does not have a way to force stereo mode, AFAICT, so I made it the same as "Switch Auto".

The Silicon Labs FM chip in Galaxy S doesn't seem to have a force stereo mode either. It's either force Mono or Stereo blend, although the chip registers allow adjusting the blend level.

So the Broadcom chips are the most flexible in this regard. But I imagine forcing stereo mode must get very noisy with weak signals.
[Spirit FM] mikereidis:
Galaxy S basebands:

If anyone has any clue about how to flash Galaxy S basebands from ClockworkMod, I'm very eager to know. I spent hours trying with no success.

I haven't had any response to my query here yet: http://xdaforums.com/showthread.php?p=17991756#post17991756

I need to get KC1 or KG3 for Bell Canada band support so I can test with phone calls.

Thanks !
[Spirit FM] qriozum:
@ mikredeidis:

- I sent you the log from version 30sept

With impatience I will wait if you can restore the functionality of this great application in the ROM DesireZ Runnymede.

I keep my fingers crossed.

greetings

qriozum
[Spirit FM] mikereidis:
When my email get's backed up as it is now, issues raised on this thread have priority.

Oct 1: http://www.mediafire.com/file/7e6xml6bgerzlm3/Spirit_FM_Radio_v111001.apk

Among many other small changes, I updated the CyanogenMod Audio Method and hope it works better on recent CM builds. The old method is now called "CyanogenModOld", and "CyanogenModS" is for Galaxy S but will also work on other CM ROMs.

If you're having Audio, Speaker or Volume Control issues, please try this release.

Thanks !
[Spirit FM] kennyg7:
Hi

Im using miui 1.5.6 v2 downloaded from the htc desire hd specific forum here..

It hasn't got any fm radio app and am unsure why.

That's why I was hoping your app worked..
[Spirit FM] kennyg7:
Good luck with it mate

Noticed you're from melb too.. this app would be very handy when at the footy :)
[Spirit FM] Unicorn9x:
hi there!

my phone is motorola backflip running cyanogen mod 6 ( http://modmymobile.com/forums/566-m...fficial-cyanogenmod-v6-1-2-froyo-2-2-1-a.html )

I installed your app and cant hear any sound even when i plugged my headset on

I did a work around you give for not getting audio

# Eg.: "adb shell touch /sdcard/fm_su"

This command could be tried if you are not getting audio.

allowed super user request permission but cant hear anything too

in terminal emulator:

adb shell hcitool cmd 4 1

< HCI Command: ogf 0x04, ocf 0x0001, plen 0

> HCI Event: 0x0e plen 12

01 01 10 00 04 E1 00 04 0F 00 07 81

a hcitool cmd 3f 15 0 1 1

< HCI Command: ogf 0x3f, ocf 0x0015, plen 3

00 01 01

> HCI Event: 0x0e plen 7

01 15 FC 00 00 01 00

adb shell hcitool cmd 3f 137 1 1

< HCI Command: ogf 0x3f, ocf 0x0137, plen 2

01 01

> HCI Event: 0x0e plen 4

01 37 FD 01

so my phone is support for a Broadcom based FM chip can you pls support my phone in upcoming release! I willingly support logcat or anything you want!
[Spirit FM] CR5N:
I am running a NexusOne build on the HD2. While sense roms have the fm radio and the hd2 has the hardware, this rom does not have built in support. Willing to test any builds or try any configs to help get this working.
[Spirit FM] gmpurohit:
I will check again & let you know.I am having same config on my LG optimus one cm7. Beta 6.3 gingerbread 2.3.3. unfortunately yesterday it didn't worked (without headset).tried at different locations.
[Spirit FM] mikereidis:
Can anyone tell me if they have RDS working outside of North America ? And if you select Regional Band "North America" (or US or Mexico), does the RDS still work, but with incorrect Program Type ("Rock" etc.)

4silvertooth: Can you tell me where you are and what Regional Band you selected ?

North America uses a slightly different standard called RBDS. It seems to be almost identical these days though.
[Spirit FM] rollon76:
On Wildfire version 2.0.9 hasn't STEREO indication at all.
[Spirit FM] mikereidis:
Hi Unicorn9x.

Yes, that's very promising; you have a supported Broadcom chip, and I presume the app tunes, seeks, and likely even shows RDS data.

It's very frustrating to have all that working, but no audio. I had that frustration for over a month on the Legend I first developed on.

So the CM 6 you are running is an unofficial port. Is there anywhere the source code can be downloaded ? Do you know what chipsets the phone has ?

If you could boot the phone fresh and then run "adb logcat > lc" (and Ctrl-C after several seconds) and "adb shell dmesg > dm" and send me the files, that would be great. Also "adb shell ls -l -R /dev > lsr" and "adb shell lsmod > lsm".

I don't think you can send files by PM, so upload them somewhere or send to my email. You can likely guess my email from my username, but please don't put it anywhere, like on a forum where spammers can get it.