yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
If I didn't mention it, you may be able to disable Spirit shutting down when another app takes (or tries to take?) focus by disabling Debug-> Audio Focus.

That may mess up audio notifications, but on modern devices like S2, S3 etc. it may just result in the notification mixing with the FM.
[Spirit FM] mikereidis:
No, I'm not aware of this issue.

I realized today that the "shiny new" Spirit of Feb 2013 would likely look awfully broken on many phones and ROMs within 6 months if bug fixes ceased for some reason.
[Spirit FM] xhejtman:
I'm seeing this for some time, I think it has been since my upgrade from 4.1.2 to 4.2.1 ROM. Audio system is autodetect. I tried to clear all data of Spirit and tried again. It is still the same.
[Spirit FM] nicesoni_ash:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Ok, I am finally managed to fix this up to some extent. I disabled all those extra apps to handle my headset. I applied that mod to modify my headset button actions and now while those other apps disabled I am able to change presets with volume buttons and pause and play it. What's lacking now is that I can't change my volume since they are modded to change presets now. Previous workaround was to keep holding them to change it but that can only be done with those other apps as they can configure these actions but it looks like this app is not compatible with these apps. Well hopefully any near future update could fix it, if not I can live with that too. :)

Edit:

Btw that debug-autofocus didn't work as I expected. App doesn't close now but all my headset actions going to apollo even if this app is in front..
[Spirit FM] Belzebuth.:
I use the unlocked version from PlayStore since a loooooong time now, but on my OneX+ with the Venom's ViperX+ ROM, I can't ear anything (no sound)...:eek:

With the same apps, on my OneX, I had any problem...

It seems to work fine, I tried different settings and test function of the last version, but no sound...

I use, for music, PowerAmp + Noozxoide wich gives a great sound, but I miss my favorite FM radio...:(

Can someone help me to solve this problem, please?...:fingers-crossed:
[Spirit FM] mikereidis:
I had some email in the last month or so from a OneX+ ROM dev, and between us were weren't able to find a solution.

I had hoped that the new "HTC OneX/X+ Int ALSA" audio method would work, as it did on my International OneX, but it didn't. This should be the default on non-stock OneX+, and you can try the similarly named method WITHOUT "... ALSA" at the end.

Since we are desperate, you can also try the plain "HTC" method used on stock ROMs. And try changing Debug-> HTC to "Intent 1" and "Intent2". Restarting Spirit isn't needed, just speaker / headset or pause / play once or twice.

Nvidia's use of unknown and undocumented Realtek audio chips, and the NVidia proprietary APIs hooked to them are a major pain.

No offense intended to your purchase decision, but the OneX International is the only phone I bought in 2012 that I regret, both technically and sales return wise. I'm probably not the only one who wrongly assumed HTC and the One line would do well in 2012. OTOH, it's hard to ignore a leading OEM "flagship" device, but 2% of my sales means I might be breaking even a year or more after purchase and that's too long.

Anyway, I hope this helps explain why I don't expect to get a OneX+, and why it's going to be between very difficult and impossible to support it. I THINK Spirit works on it on stock ROMs, but I've never had verification, despite several sales on this device that I've seen.

What's strange is that the ALSA controls seem identical to the OneX. So why wouldn't the two different audio methods that work fine on custom ROMs on the OneX not work on the X+ ??? Maybe it's a small problem/difference on the custom ROMs ?

The FM chip is different, making for 3 different FM chips on the 2 OneXs and at least 1 X+. But Spirit can handle that.

I don't expect to support the OneX or X+ in Spirit2. And that's sad for a flagship device I bought when it was fresh and new in 2012 for somewhere near $600. And no S-Off, at least not w/ software, makes both my OneX's a major pain to update.

Anybody want to buy a slightly used OneX ? I'm mostly joking, since I have customers with a OneX to support, and since the TI WL1283 FM chip and updated /dev/tifm API helps me support Moto Bionic and Droid 4, but it's the first device I'd sell if I needed to.
[Spirit FM] mikereidis:
After some moderate testing with cm-JellyTime_42_R6.1 and cfx_ace-4.2.1-SR10 on the DHD, I'm only seeing one new problem:

- On first start after reboot audio doesn't start. Pressing Pause/Play or Speaker/Headset once resolves it.

Subsequent starts don't show this problem and I have no problem with the Apollo music player after FM is off. I haven't tested with phone calls, or pulling headset out while playing or a hundred+ other scenarios.

This is with Spirit and the ROMs at a fresh default config, and with no other apps loaded. Sometimes volume boost or other low level audio apps can create interference.
[Spirit FM] cajunflavoredbob:
I didn't realize I cared so much about FM until I started following this thread.
[Spirit FM] Andras2872:
Nexus 7 rooted

Hi!

is there any solution/option to work the FM radio, work spirit FM on Nexus 7?

I have rooted Nexus 7 32GB with 3G.

I read this thread to find something but without concret success.

Thanks for reply!
[Spirit FM] a9999:
issue with sensation-4g

I have found the following issue with HTC Sensation-4G

rooted, rom: ViperS_1.6.0 - android 4.0.4 sense 4.1

Spirit and PowerAMP are installed

when Spirit is launched and speaker mode was in use, and after exit spirit, PowerAMP will start but will NOT work

through the speaker, only through earphones. ;-(

Only reboot allows PowerAMP to work again both in speaker and in earphone mode.

no matter what I do in Spirit,(stay in speaker/or in earphone/leave it on/exit or kill Spirit/ plug earphone in and out)

it still has a conflict with PowerAMP,

Any solution / workaround to this bothering issue?

Thank you
[Spirit FM] audaxrandonneur:
No headset audio with new kernels on HTC ONE X

Hello.

I ran into a kind of weird problem after installing the newest kernels on my HTC ONE X. :mad:

Recently HTC published the sourcecode for the Jelly Bean kernel for the ONE X and momentarily the devs startd to build up their own kernels.

I tried three different versions from pbax, n3ocort3x and tbalden referring to AOSP, AOKP and CM.

Only with the kernel by pbax I am able to hear fm audio with the headphone. With the oder two kernels I am only able to hear souind over the internal speaker. :eek:

So: Is the any magic hidden setting that helps me or is it a problem of the kernel only?
[Spirit FM] mikereidis:
No solution within the N7.

Sony MW1 and MW600 BT headsets with FM are nice.
[Spirit FM] mikereidis:
Magic setting I think (hope), but not hidden.

Try Audio-> Method = "HTC OneX/X+ Int ALSA" with "... ALSA" at the end. I made this default at one point but it creates issues when using the stock audio library blob,

There is code that does this automatically for pabx's "tg_endeavoru" ROM. I'll probably need to do something like on GS2 that detects the size of the audio library.
[Spirit FM] mikereidis:
Debug-> Power Restart Media is a brute force solution I usually offer for rooted devices.

But there should be other/better options on a stock derived ROM that supports the stock FM app. Here are two:

1 - Set Debug-> FM API to OEM Proprietary and restart Spirit. This should make Spirit work much like the stock app, and by default the HTC audio method is used.

2 - Better yet, likely, just set Audio-> Method to HTC and restart Spirit. It may help to set Debug-> HTC to "Intent 1", but "Intent 2" is needed on stock HTC JB ROMs I think.
[Spirit FM] I2lavanu:
Promblem of Spirit FM in Sumsung SGH I927

Please! can you help me,

I have bought this application but it fail to produce sound in my smartphone,Installation is ok.
[Spirit FM] a9999:
first, thanks for your quick reply

non of the 3 solutions solved the issue ;-(

- Debug-> Power Restart Media - enable => did not solved it

1. Debug-> FM API to OEM => caused an error "Power error: su:2 FM:bc" and Spirit stopped working

2. Audio-> Method to HTC with Debug-> HTC to "Intent 1" => did not solved it

with Debug-> HTC to "Intent 2" => speaker was not working at all.

any more ideas ?

Thanks a lot
[Spirit FM] xhejtman:
Yes, same for me.

For me it does.

Neither do I. However, I removed Apollo music player, I use Music folder player. If FM is off, everything works just fine.

This is what I meant. If FM is on, no audio notification works. If I answer a call, I don't hear anything.

I don't have any audio apps except Music folder player. However, I removed some system audio apps such as Apollo music player, voice search and so on.

I have SR7, I give it a try with SR10.
[Spirit FM] mikereidis:
This phone seems incapable of FM, like most or all of AT&T's Samsung devices, or at least the nicer ones.

It's disabled on Play ; did you get it there from a stock ROM or custom ?

Email me and I'll cancel your order.
[Spirit FM] mikereidis:
Was it working for you before ? Before a Spirit or ROM update ?

And other audio works OK through the headset ? If not, there might be a headset jack problem.

- Remove Spirit and Re-install it, or just clear the app data to start fresh.

- Do a full cold reboot of the phone. A system setting is probably needed to allow this, instead of a "fast boot" on a stock ROM.

- Deny SU/root to Spirit when it starts. Presumably you'll have the same power error as before. Send me a debug log with Menu-> Test-> Email-> Logs and after 20 seconds press Send.

- Restart Spirit but with SU/root allowed. Send me another debug log in this state.
[Spirit FM] Samga:
Yes, it's the Programme Service Name (PS).

The Samsung FM app had a very simple solution: it's the users responsibility to set the preset at the moment when there is a meaningful station name.

Some RDS car radios try to intelligently get the station name, as some stations misuse it.

I can already enter about 16-18 characters in two rows as preset name (SGS i9000 with standard font size). I think it's the responsibility of the user to choose a suitable font size.

So where's the problem? ;)

Thanks a lot for tackling! Maybe the suggested easy method could be done with little effort as an option in Spirit UL? :fingers-crossed:
[Spirit FM] audaxrandonneur:
I'm sorry to say but your solution selection the ALSA driver does not work. So I assume that the kernel developers messed up something.

ATM I stay with AOSP 4.21 for the One X which works flawlessly.
[Spirit FM] scoppyxda:
Hi Mike,

I tried the free version from market and audio is not working. But Rds, search and signal power are working.

2.0.17 was working.

I have an HTC Desire with Reflex s 2.15.

Do you need a log?
[Spirit FM] captmeach7:
Yes the schematic is in my dropbox. dl.dropbox.com/u/19494894/LG%20LS670%20Optimus%20S%20service%20manual.7z

this is for the p509 so you can see the difference: dl.dropbox.com/u/19494894/EN_LG-P509_SVC.7z

And yes it's-->

~ # ls /dev/snd/

ls /dev/snd/

controlC0 pcmC0D0c pcmC0D0p timer

~ #

I have to get dmesg later though
[Spirit FM] mikereidis:
EDIT: See my post below and try 11.06.23 from the Market. Hopefully this is fixed for you.

Sorry. A log would be useful. But I'll edit this post and give you some ADB shell commands we can try.

Some background: This file based mechanism for configuring some things is quicker to implement than a nice GUI interface. In future some of this will migrate to GUI.

These config files can either be in the /sdcard/spirit_cfg directory or the /data/data/com.mikersmicros.fm/files directory. If the /sdcard/spirit_cfg directory exists, it will be used exclusively. This has the advantage that the app can be completely removed and these files remain. The /data/data/... is good when you don't have an SDCard.

The following should create the directories we need:

adb shell mkdir /sdcard/spirit_cfg

adb shell mkdir /sdcard/spirit_cfg/opt

adb shell mkdir /sdcard/spirit_cfg/opt/aud

The following will hopefully fix your audio issue:

adb shell touch /sdcard/spirit_cfg/opt/aud/nohtcflag

adb shell touch /sdcard/spirit_cfg/opt/aud/nomsm7x30

adb shell touch /sdcard/spirit_cfg/opt/aud/noqsd8250

adb shell touch /sdcard/spirit_cfg/opt/aud/nosp

I think this should get your audio back to the way it was in the last release or 2. I hope at least speaker or headset work, perhaps with an extra button push or 2.

If not let me know, there is more we can reconfigure. Thanks !

EDIT: I'll try to push out a new release tonight that allows GUI configuration of "Audio Method".
[Spirit FM] mikereidis:
Could you refresh me as to what the advantages are to having the app integrated into a ROM ?

Will the FM app then need to be re-integrated every time you want a new version ? I don't think automatic or manual Market updates will work in that case, and I expect to continue to update regularly.

And I'm OK if you shared such a ROM with just a few people, but I don't think it would be good beyond a "few", say 6 or so at most.

Unless there are some convincing reasons to see this app ROM integrated, I think I may have to say it's unsupported. If you can reproduce the /data/data/com.mikersmicros.fm/ directory structure as it is once the free version is installed, it should work as expected, and the unlocker should work.

But you WILL hear me complain if I see a ROM easily available on the Internet that comes pre-unlocked.

Thanks ! :)
[Spirit FM] suiller:
really GREAT JOB! the only working alternative to system radio :)

we are all proud of your work, thank you bro :cool:
[Spirit FM] mikereidis:
Wonderful... :)

I've pushed v11.06.23 to the Market:

What's in this version:

1. Allows GUI configuration of "Audio Method".

2. Audio Method default reverted to "sfu_sdcs".

3. If no audio, select each Audio Method in sequence until audio is heard. Automatically raises volume and switches speaker to headset to test without returning to app.

4. If no audio is heard from headphones or speaker using any method, the app does not currently support your device FM audio method, sorry. Hopefully a future release will.

#3 Means you can stay in the Config screen and try each method to see if one or more works. You should get a blast out of the speaker for half a second before it switches back to headphones.

At the top center of the screen you may see "Config Audio Method!" if the bits indicating FM speaker or headset are not set, even if audio is working for you sometimes.

Otherwise you should see "Hdst" or "Spkr" or in very rare cases my app doesn't even try for yet, you could see both.

These FM headset and speaker bits are not guaranteed. On my HTC Legend it always shows "Hdst" even when the Speaker is on. IMO a bug in the CM7 ROM.

Hopefully with feedback about how well this all works on various devices and ROMs, and some work from me, the app will be better able to auto-detect the Audio Method needed.

My total so far is 7 apps sold and $1.30 in Ad revenue. :)
[Spirit FM] mikereidis:
OK, thanks.

I'm afraid I think it's likely the schematic is correct and there is no FM antenna connection. Pin 38 on page 163 goes nowhere. Even the Ear Jack Connector diagram shows no connection while pg 58 or so of the P509 document shows the antenna connection to ear jack.

The schematic for the Galaxy Tab showed exactly the same lack of connection, and also shows no real sign of receiving FM.

So between no antenna connection and no analog audio connection and no signs of reception by my app, I think this is likely a lost cause, at least for now. I would never say never, but unless and until I can achieve a digital or BT audio connection, I don't think we can even investigate this further.

It MIGHT be worth a shot if/when I get some ALSA control code running though.

Sorry to bear bad news, at least for now....
[Spirit FM] ghiki:
@mikereidis, yes or yes, I'm using homemade script for "cleaning" CyanogenMod ROMs (I'm using with 1 or 2 of my friends that have the same phone, so it's not for distribution as is), I have had problems with little free space in /system (boot loop), and removing "livewallpapers" or some apps (for me they are useless) I solved this. Then, when I'm using my script take the opportunity to integrate the FM app and remove the original FM.apk (also useless :( ) substituting by "Spirit FM", simply for "comfort"

PD: WOW!! Your app has 10000-50000 downloads in the market!! :eek:
[Spirit FM] katun79:
I receive this error running your app:

Sorry! Compatible FM chip not found... :(

Fm:BC Sh:1 Ht:1 H2:0 Mo:BCU

I have an LG Optimus 2x running CM7 Nightly #56 (latest) and baseband 614.
[Spirit FM] mikereidis:
Ok.

Re: 10-50k: So does FM TwoO which only works on a few phones, but it's been up there longer. (Just noticed it's updated and now requires root for RDS.)

My developer console shows:

14391 total installs

3013 active installs (20 %)

So 80% of those installs were removed, presumably because the app didn't work on their phone.
[Spirit FM] mikereidis:
Hi katun79,

Is there a CM FM app that works for you ? Edit: Just checked the CM forums and it appears they are on the verge of supporting FM, but it's not enabled yet ?

It looks like my app sees that there is a Broadcom chip but is unable to access it.

Can I presume you said "Yes" when Superuser access was requested ?

The app should toggle the Bluetooth power state for you, but it might be helpful if you did that manually before starting the app.

A log from "adb logcat" or similar would help narrow down the problem.
[Spirit FM] imopen:
Mike, the name of the RDS station is wasted in that corner (upper right)... I've all station's name trunked... CAPIT.. instead of CAPITAL or RADI... instead of RADIO 1 :(

Please give radio name more space! :D
[Spirit FM] plastikman187:
I just tested this app on a CM7'd Droid X and it does indeed work.

To get it working you need to do the following:

using adb

adb shell touch /sdcard/fm_su

or with any file explorer create a file on your sdcard called "fm_su"

then inside the app hit menu -> Settings-> Audio Method -> FM_Launch

It is able to tune in radio stations and seemed to work well.
[Spirit FM] scoppyxda:
Thanks!

I tried new vision from market and audio works without doing anything!

Anyway audio method is Sfu_sdcs.

I agree on giving Rds more room, i.e. you could switch pi position with Rds... What do you think?

And a little bug: when radio is on it stays in background and you can see the icon in the top bar and in notification too.

Would be nice if you could tap on the notification menu radio label and get back to the app. Now nothing happens.

Do you still need logs?
[Spirit FM] mikereidis:
Hi plastikman187. That's great !

You are the first to report success with any of the new audio methods. I'm working a bit blindly as I don't have a phone that uses FM_Launch.

I think there should be more Motorola phones working now, including the Atrix a few have tried unsuccessfully so far.

The fm_su trick is no longer needed as of v110621. Can you try without it ?

Thanks !
[Spirit FM] mikereidis:
Great ! No i don't need any logs if it's working OK.

The "Sfu_sdcs" method is the default and was the main method since v2.0.0. If anyone is curious is stands for the APIs used: setForceUse and setDeviceConnectionState.

RDS is the acronym applying to all the "data". I'll guess when you say "switch pi position with Rds" you are referring to the 64 characters of RadioText (RT) under the thumbwheel.

One of my GUI goals is to keep separation between touch sensitive screen elements. Currently PI and PT are between the graphic frequency indicator and the thumbwheel. This helps prevent touching the wrong element.

But another issue is that I want to touch enable some RDS elements. Touching the RT could initiate a search for song lyrics.

Anyway I'll consider your idea. It would be ideal if I could make much of this configurable...

Notification menu access to the app was just recently disabled. I wasn't sure that anyone actually used it; I normally switch back by long pressing the Home button.

I disabled this function due to a bug which brought up a second copy of the app. Once I fix this bug I will re-enable the feature.

Thanks !
[Spirit FM] mikereidis:
Thanks, yes I noticed this tonight while at my daughters' soccer practice,

I also noticed the media buttons crash my app on the HTC Legend. On the P500h the single button starts the media player. I've had better results when the phones are booted with the proper earphones plugged in at boot time. Swapping the earphones between phones does not work. These media buttons are going to cause me grief I think...
[Spirit FM] imopen:
And if you are using the app, you select the home button, then you click on the status bar on the notification canvas nothing happens. To come back to the app you must reselect it on the drawer.
[Spirit FM] maxibeginner:
Market version works on HD2 with Audio Method: All. Curiously, methods FMRadioOn, FM_launch, fm_on don't work if select them after top methods in the list, but work after selecting All.
[Spirit FM] ghiki:
One question; is there any way to use CM7's "DSP Manager" (or equalizer ap in the market) with "SpiritFM"? The radio volume is too gentle
[Spirit FM] mikereidis:
Use / Misuse ; doesn't matter much when most stations (North America mostly ?) seem to do it, at least here. I think they use this as a workaround to "not distracting car drivers with RT". My car radio won't even show PS when the car is moving, but not all are like that.

Just time. I'll do what I can, when I can, and when it fits into priorities. It's a full time job just keeping Spirit patched for the latest ROMs on 60 odd devices.
[Spirit FM] mikereidis:
Don't assume that, and I do thank you for your report.

I'm more prone to blame NVidia for making the audio so closed and difficult. Audio on the OneS and OneX LTE with Qualcomm chips is a dream in comparison.

I'll try 1 or both of these other ROMs, and I'd hope that any fix found would also magically enable the newer OneX+.

EDIT: I can't see any AOKP ROM by n3ocort3x. The tbalden CM is official CM and my OneX International is running the Jan 20 nightly currently with no problem. I'm updating now to the latest Feb 3, which I guess is really a weekly build.
[Spirit FM] audaxrandonneur:
Aah, I see the problem now.

I'm sorry for being unprecise. The kernel ist maintained by n3ocort3x, http://xdaforums.com/showthread.php?t=2134086

The complete ROM ist by LorD ClockN, http://xdaforums.com/showthread.php?t=2052610 .

The two are working closely together.

TBalden made an alpha release of CM 10.1 for the One X with the new kernel:

http://xdaforums.com/showthread.php?t=1786696

Alpha 4: http://d-h.st/TgD - Kernel 3.1.10 included. Only 1.28+ HBOOTs supported! Read forum how to upgrade HBOOT.

boot.img: http://d-h.st/3i4 (same as in installer zip).

BTW: Your support ist really unrivaled!
[Spirit FM] mikereidis:
:) Most of my customers are custom ROM users, so that's my focus, and supporting many custom ROMs means LOTs of support, especially for those running the latest nightlies.

I'm not even selling an app so much, in effect. I'm selling support and a reasonably quick and convenient update service. And that's why Spirit can't be a 99 cent app, since the support would be much lower in quality and/or prevent me from doing any further development, like Spirit2, or enhancements to Spirit1.

I've loaded the Feb 3 CM10.1 and it works OK.

Thanks for the links. My HBoot is ANCIENT and I've been putting off re-locking, upgrading to stock (Do I need Windows ? I'm Linux and hate Windows.), re-unlocking, etc.