yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
These problems should be fixed in the latest: http://www.mediafire.com/file/84bm0s6ptwed4jb/Spirit_FM_Radio_v110726.apk

Japan Wide has been removed due to incompatibility with most devices.
[Spirit FM] Kusa123:
I checked new version, and looks all jp band problem (region setting, auto-wrap, and indicator) is fixed.

Thank you for looking into this problem.

Sent from my Liberty
[Spirit FM] Quinny899:
The latest version is giving me a parsing error on my LG GT540. All of the other versions have worked and the download size is the same as MF says. Could you put it on the market? I am unlocked.
[Spirit FM] mikereidis:
Do you mean you can't download it from mediafire ?

Here is an alternate URL: http://www.mediafire.com/?84bm0s6ptwed4jb

EDIT: There's been 16 downloads by others and nobody else has reported any error.

I just tried on phone upgrade from both of my phones and it worked OK.

This version may go to the Market later today/tomorrow if nobody reports any major bugs.
[Spirit FM] Quinny899:
It worked. Thanks. The phone didn't download correctly from the 1st one and so gave me a parsing error due to a invalid apk. The new one I downloaded via JDownloader on my PC (mediafire doesn't dl correctly on it, it refreshes last second) and installed via ADB and it worked. Thanks again. *listens to radio*

I've also noticed you've added move left and right 1 mhz buttons, below the scan and above the preset buttons. Where it used to say "button A" and "button B" when tapped. Thanks, that's useful for me
[Spirit FM] cos68:
Thanks for your new version.

I have tested it on both my phones (HTC Desire and LG GT540).

I do not see any major difference, but one thing seems to be broken in the new version. If I disconnect the headphone or if I am located at a place with a weak signal and try to search for a channel, then it will go up to 108.0 MHz. It then starts searching from 87.5 MHz and goes to around 107.6 MHz due to the weak antenna signal. At this frequency it get stucked. I am not able to search any more and the only way to get out of it is by by entering a frequency directly.

This is a problem with both my phones. It worked fine with your version from July 17th.

Thanks!

Best regards

Claus
[Spirit FM] mikereidis:
Yes, those are the hidden, experimental buttons. They move the local frequency increment. Regional Band United Kingdom uses 0.1 MHz or 100 KHz. North America is 0.2 MHz or 200 KHz.

I removed these buttons when I added the thumbwheel, but I'm finding thumbwheel dragging tedious.
[Spirit FM] mikereidis:
Thanks for your report.

I see this problem on my Broadcom phone, but ONLY when set to a Regional Band with 50 KHz offsets, like World or Denmark. I'd bet that if you set the phone to Europe (200 KHz) or Australia (100 KHz) you wouldn't see the problem.

I'll find out what changed...
[Spirit FM] mikereidis:
320 x 240 text cutoff should be fixed in the latest:

http://www.mediafire.com/file/84bm0s6ptwed4jb/Spirit_FM_Radio_v110726.apk

It's pretty tricky getting it right for smaller screens. I didn't change any text size.
[Spirit FM] cos68:
Yes, you are right. If I select Europe, then the problem disappears.

Thanks for your support!
[Spirit FM] psyke83:
Mike,

Thanks for the information re: the I5500.

I wrote this quick script:

mv /system/bin/mediaserver /system/bin/mediaserver_disabled
pkill mediaserver
# i=0; while [ "$i" -le 257 ]; do echo $i; /data/data/com.mikersmicros.fm/files/
ssd 1 $i; i=$(($i + 1)); sleep 3; done

Latest version of your app, volume was at full, radio tuned to a valid station with good signal, set to European region, default sound driver & headphones plugged in.

I get absolutely no sound on any channel from 0 - 33, and ioctl calls to devices >33 causes the phone to immediately reset.

I've looked at the libaudio code from some other phones but haven't found anything helpful. My device only has SND_DEVICE_FM_SPEAKER at 27, so the ioctl call to device 0 is reporting the sound devices accurately. This is the kernel's board file: https://gist.github.com/1109426

Any ideas?
[Spirit FM] mikereidis:
I checked the last Market version: July 16 and see exactly the same issue at 50 KHz, and it seems to affect TI chips also.

The problem is that there is no configuration of the Broadcom chip for different offsets. The default is 100 KHz and it's stuck there.

There IS a register for this for the better BCM4329 chip I think. On my now gone Desire HD this register HAD to be written to make seek work. But on my BCM 4325 device writing any value to this register (or reading) resulted in 256 KHz offsets until reboot.

So I disabled writing this register. It can be re-enabled by:

adb shell mkdir /data/data/com.mikersmicros.fm/files/opt

adb shell mkdir /data/data/com.mikersmicros.fm/files/opt/bc

adb shell "echo 1> /data/data/com.mikersmicros.fm/files/opt/bc/ss"

Anyone with seek problems on Broadcom should try this if they can. I'll make it a Settings option at some point. To disable it if it messes up your seeks, or doesn't help:

adb shell rm /data/data/com.mikersmicros.fm/files/opt/bc/ss
[Spirit FM] mikereidis:
Wonderful script, thanks !

Please see my reply to sfortier below (#795).
[Spirit FM] sfortier:
Maybe you can include new "endpoints" on kernel´s board file and try again the test script...
[Spirit FM] nicesoni_ash:
It's really shocking to hear about wht happened with your son mike, I hope he is doing ok now.

_____________

Sent from my GT-I9300 powered by Temasek Rom & Kernel

Fueled by 7000mAh ZeroLemon Battery
[Spirit FM] gonuldostu82:
hello , Does it support I9070 advance?

costum rom cm11 slimkat
[Spirit FM] fayn88:
xperia p Lt22i not working

xperia p Lt22i not working
[Spirit FM] mikereidis:
Please email me mikereidis@gmail.com .

I've had a few success reports with GS4 mini in the past, but I think those were stock or ran custom ROMs that used the stock audio library. Over 20 people bought Spirit1 on GS4 mini, so it's not too common, but works for some at least, and I think it's a mostly Qualcomm type architecture like OneXL, Sony's and MotoG.
[Spirit FM] mikereidis:
I don't think LG G Pro works with Spirit. There's a free version here if you want to try: http://d-h.st/H4x
[Spirit FM] mikereidis:
Sure, email me mikereidis@gmail.com .

I don't think Titanium should be needed. You can use Menu-> Test-> Settings-> Export to export settings to /sdcard/spirit.xml . Then install fresh and use Menu-> Test-> Settings-> Import. There's no funny stuff for copy protection etc.

But it's often better to install fresh anyway, to clear away old settings you may have experimented with. The only thing important you'll lose, IMO, is presets, and it should take long to re-add and rename them.

There are currently no general CM11 problems that Spirit is known to have. If the problems are related to CM11 I think they are relatively phone specific. Sometimes CM changes have broken FM, and the CM devs aren't concerned because they don't "support" FM.

GT-I9003 Galaxy SL is relatively rare compared to 9000, 9100, etc. I don't have one, nor do I have any device with a similar OMAP audio chip. The code in Spirit for this chip is a bit strange; it looks almost like a 9000 (with a very different Wolfson chip), but with a few additions. All this to say: Yes, it's reasonably possible that some CM11 change for 9003 is associated with this audio problem.

You can try setting Menu-> Settings-> Debug-> Silent Loop to "Disable" and restarting Spirit.
[Spirit FM] mikereidis:
Thanks for your support. :)

So far, Play store errors/problems have always been Google problems. They are temporary and eventually "fix themselves".

I can send a copy anytime, just email mikereidis@gmail.com . In a pinch, Google can usually find pirate copies within a few seconds, LOL. To avoid malware risk, md5sum for the latest Spirit1 April 8, 2014 is:

md5sum ~/a/spirit/old/ul_apk_2014/ul_140408.apk
9127acd0ad7ebbbe95a9af42f5f41d08
[Spirit FM] mikereidis:
It's worked for some people, on stock ROMs at least.

Custom ROMs like FXP CM11, less likely, unless it includes a working FM app.

Of course you haven't said what ROM or rooted status or what happens when you try.
[Spirit FM] mikereidis:
Maybe. Try the free version and let us know: http://d-h.st/H4x

I removed it from the support/Play list March 2013, then re-added it July 2013 on request by someone who had it working, on their ROM at least.
[Spirit FM] mikereidis:
Yeah, he's fine for now thanks, and my wife is freaking out about everything in the house that might trigger him. For now we're back to his "moderate" autism; it's almost impossible to parent properly when normal discipline methods aren't working anymore. He got Minecraft addicted and will play all night/morning long and steals phones from my collection to do so on a way too regular basis. :(
[Spirit FM] mikereidis:
If you're asking about LG-E980 G Pro, Spirit is not able to support it.
[Spirit FM] nicesoni_ash:
He is a kid, what can you expect. :)

_____________

Sent from my GT-I9300 powered by Temasek Rom & Kernel

Fueled by 7000mAh ZeroLemon Battery
[Spirit FM] divinehan:
Checking the box for "Silent Loop" didn't work for me, but after I check "Silent Loop Off" and uncheck "Silent Loop", no more force close. Thanks for the help !
[Spirit FM] mikereidis:
Thanks for your report. It looks like this cutting out and in IS a general problem in CM11.

I just tested my GS3 using the default non-digital audio mode on the CM11 May 13 nightly and it shows the problem; cutting in and out every half second or so.

Enabling Debug-> "Silent Loop Off" and restarting Spirit works around the problem, but returns the problem Silent Loop solved.

With Silent Loop Off there is no volume control available when the screen is off or locked. It still works when Spirit is off screen while the screen is on at least.

A volume control workaround with media buttons is to set one of the UI-> Media Buttons settings to "Volume", though on Samsungs this only works for the Pause/Play button.

In theory, Debug-> Play Audiotrack = "Enable" might fix this on some phones, but it doesn't work on my GT-I9300.

My next steps include finding out what other phones with CM11 this affects, trying to figure out which nightly this started with and what changed in the code.

Digital audio modes and Spirit2 are not affected.
[Spirit FM] mrmail:
its work on my Nexus one using CM7

thanks
[Spirit FM] divinehan:
I tried Debug-> Play Audiotrack = "Enable", but when screen off, it'll pause playing too.
[Spirit FM] mikereidis:
See next post. :)
[Spirit FM] mikereidis:
It turns out that the fix is to update to CM11 May 14 nightly, or whatever versions implement this fix: http://review.cyanogenmod.org/#/c/63469/

After the last M snapshot, about May 7, the CM folk made changes to the media player with FFMPEG stuff. This broke playback of a lot of media files, including the simplest WAV files that Spirit1 uses for "Silent Loop".

I put together a debug release that works by using a FLAC file instead, but it doesn't seem needed now that CM fixes are rolling out.

I haven't checked my email since Friday, so I'd guess there are a few complaints/reports in there. ;)
[Spirit FM] fayn88:
Cm 11 sg3 spirit ui stoped
[Spirit FM] ncmdn:
Hi. This app is great. But when i'm listening radio, it doesn't mute during incoming calls. I answer it from the headset button, music is still playing and i'm trying to talk :) Before KitKat this was not a problem, the app was working just wonderful. (It muted, and after call, it started again. Not now) Can i fix it with settings or else? (Lg G2)

Thank you.
[Spirit FM] mikereidis:
The post above yours explains a May 7+ CM11 problem that was fixed in the May 14 nightly.

Besides this, I haven't seen any Spirit specific issues on my GT-I9300. But I have seen a few strange things with latest CM11 nightlies. The last M snapshot may be more robust than nightlies. I think they made many "riskier" mods after the last snapshot.

More info would be useful. If you are a customer please email me mikereidisi@gmail.com .
[Spirit FM] karlos5f:
Bro Can ask why really need this app
[Spirit FM] mikereidis:
No ?

Too hard.

Too much work.

Not enough interest among potential customers.

I have to concentrate on the most popular, higher end devices.
[Spirit FM] mikereidis:
Is it a stock G2 ? I've seen lots of problems on stock, and effectively I kind of gave up on it.

If it's recent CM11 nightlies, or derived from them, try May 14 or later.

Set Menu-> Settings-> Debug-> Audio Focus to "Enable" and restart Spirit. You can also try enabling Debug-> Silent Loop (and restarting Spirit), or disabling that and enabling "Silent Loop Off".

If you are a customer please email me mikereidisi@gmail.com .
[Spirit FM] divinehan:
I've updated to newer build for CM11 today and the problem is no more. Thanks !
[Spirit FM] gonuldostu82:
thanks

good all frequencies

super works

but no sound
[Spirit FM] mikereidis:
Sound is the hardest part. :(

Sometimes somebody figures out the basic "tricks" for audio, but even then problems can remain, such as when phone calls interrupt FM.
[Spirit FM] gonuldostu82:
continue waiting :))
[Spirit FM] Czechnolog:
"New phones: Note 3 LTE, HTC One Mini, Xperia Z Ultra & Z1/Honami: http://xdaforums.com/showthread.php?t=1059296&page=673"

- anybody knows how to setup AUDIO on HTC One Mini with CM 11?

(Link above is broken.)

I played with it - and the stations are tuned, but AUDIO does not work.

Any ideas?
[Spirit FM] zhuchella:
mikereidis

I have G2 and CM M6. How can I make The Spirit working on this rom ?
[Spirit FM] mikereidis:
This links works for me, but not much info there: http://xdaforums.com/showthread.php?t=1059296&page=673

One Mini was confirmed working at that time on a stock, unrooted phone, using the default "HTC" Audio-> Method.

I don't know how to enable the audio on non-stock One Mini ROMs. It's a Qualcomm audio chip, paired with a Broadcom FM/combo chip. Just about every phone with Qualcomm audio and Broadcom FM are hooked up and controlled differently, eg HTC One M7 and LG G2.
[Spirit FM] mikereidis:
If you have an International LG G2 D802 or Sprint LS980, it should just automatically work. If you're a customer, please email me mikereidis@gmail.com .

Other LG G2 variants do not have usable FM it appears.
[Spirit FM] mikereidis:
I've branched out a bit from FM with a new app: AudioTricks / VolumeTricks.

It can be used to modify output volumes and input gains, in many (but not all) circumstances.

It works with any Android digital audio, including Spirit2, Spirit1 in digital audio mode, and media and streaming players etc.

It won't work with most stock FM (except Sony ?) or Spirit1 in the normal, non-digital modes.

More info and download link are on the new thread here: http://xdaforums.com/showthread.php?p=52765309

I now need some "off time" from development and will be back to Spirit as soon as I can. :)

As mentioned up-thread, I'm learning LOTS about the arcane secrets of Android Audio, and that will result in improvements to Spirit. Also, things like an addon.d script for Broadcom devices to update ROMs without an extra reboot, and Android studio, which has some nicer app development features.

Thanks !

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

Happy Victoria Day to all fellow Canadians & CommonWealther's, and Good Long Weekend to all those with a day off of work this Monday. Finally nice weather here lately... :)
[Spirit FM] Czechnolog:
Thank you very much for your answer.

What do you mean with STOCK, UN-ROOTED ROMs?

I thought that Spirit is for AOSP ROMs.

I am using CM 11 M6 - not modified.

(HTC Sense 5.5 ROM for Mini has already built-in FM Radio.)

I tried every possible Audio settings, but it does not work.

Any more ideas?
[Spirit FM] Draw Em!:
Do you use any DRM for content?
[Spirit FM] mikereidis:
Spirit1 DOES work on many stock, un-rooted phones.

But I've been refocusing my efforts on AOSP ROMs, because most of my customers use AOSP ROMs where there is no other FM app that works, AND because some of the OEMs are now preventing "non-blessed" (ie Spirit) FM apps from working.

No, Sorry.

If somebody can help figure out how to enable FM audio on this phone on AOSP ROMs, then there is a chance. Otherwise and until then, we are out of luck.

In order to properly support devices, I need to buy one, spend probably dozens of hours a year maintaining it, and at LEAST dozens of hours to make it work well.

And the vast majority of phones now do not show the potential for me to be sufficiently compensated for the work required. Right now, the only new (for Spirit) phone that seems to hold the potential for official support is the new HTC One M8.
[Spirit FM] mikereidis:
Copy protection ? No.

I've tried that in the past, and it's never worth it. It takes much effort and hurts legitimate customers more than it thwarts piracy.
[Spirit FM] leo_kazapi:
Mike, my honors tô You. And about moto g XT1033? Android 4.4.2? Work fine? I dont do it work!

Enviado de meu XT1033 usando Tapatalk
[Spirit FM] mikereidis:
:)

I have the Moto G, so yes.

If rooted, try Spirit2.
[Spirit FM] supermaxkato:
Mike, I have the sprint galaxy s4 mini (sph-l520). The nextradio app to works OTA, so I know the radio hardware is there and functional. But I can't get your spirit fm to work. Could you give me any the settings suggestions that I should try? Thanks!
[Spirit FM] :
this will work across the globe or Country specific ...
[Spirit FM] karlos5f:
Mikereidis ... everyone else seem to be make progress with spirit except me. .... sooooo unfair
[Spirit FM] marvasten:
Hi mike, I also have a Moto G (XT1032) rooted. I bought Spirit2 some weeks ago. However, most of times the app freezes or audio is distorted. I also have a version of Spirit1 that you sent to me (1227ul) some months ago. It's working well w/o problems. I'm using Viper FX 2.3.3.0 (latest version). Any clues?
[Spirit FM] utx:
Volume on HTC Desire Z

I have the latest version of Spirit 1 and I experience strange problem: Low volume and noisy sound. Volume buttons don't change volume, but do something like fine tuning instead. I tried Fixed volume from the test menu and I see the same behavior: number change tunes the radio instead of volume change.

Data reset of the application does not help.

In time of purchase of the application everything worked OK (on different ROM with different kernel and different version of Spirit UL).
[Spirit FM] mikereidis:
Stock rom, which version, or what ? Rooted ?

Does the tuner part work, but with no audio ? AFAIK, the only Audio-> Method settings that work are Samsung stock settings, I think "Galaxy S2/Note/S2_ICS".

If you're a customer, please email mikereidis@gmail.com.
[Spirit FM] mikereidis:
Globe.

Default Settings-> Band for Spirit1 is USA, otherwise Japan or one of the "World..." settings.
[Spirit FM] mikereidis:
Hi, is it stock or stock derived ROM ?

I haven't tried stock on my G since I got it in December.

I tried to try out Viper FX about a month ago on a phone or 2, and didn't get it working in the time I had, LOL.

Is everything OK when Viper is disabled or removed ?

Did you try digital audio mode in Spirit1, recent or the old one ?

Email me again.
[Spirit FM] mikereidis:
Hi, please email me mikereidis@gmail.com .

What ROM ?

Desire Z, Desire HD and similar have some long-standing bad audio issues. I might actually be able to fix these with the new work I'm doing.

My Desire HD and Z have hardly been tested lately, but on DHD I have an unofficial CM11 KitKat running on it now that's breathed new life into it.
[Spirit FM] :
Thanks Developer for such a nice concept.
[Spirit FM] marvasten:
Hi Mike, thanks for your response. My report:

- Stock ROM

- I removed Viper and Spirit2 it's working well :laugh:. In fact, I'm using your another app VolumeTricks and it's working perfect :good:

- I tried automatic mode in Spirit1 (UL 27/Dec)

Thank you again. Keep your work!
[Spirit FM] MaDaLiNoSt:
Support for S6500? (Galaxy mini 2)

On cyanogenmod 9, I was able to get RDS Signal, but no audio. I tryed all audio modes, but no luck.

Help ???
[Spirit FM] mikereidis:
Sorry, I'm not familiar with the audio on that device.
[Spirit FM] gonuldostu82:
'I9070 advance' works super well (For your information)

settings;

band: world 50 khz

audio/method: galaxy s3/note/s2_ıcs

output :speaker (It doesn't matter!)

channels:blend auto

volume scale : 30

Thank you very, very much
[Spirit FM] MaDaLiNoSt:
So, what to do? :(
[Spirit FM] mikereidis:
A: Figure out how to enable FM audio, or find someone (besides me) to do that.

or...

B: Get a more popular and better supported phone.

Samsung phones supported by Spirit2 are a good bet, and there should be some good used deals by now if you look at EBay auctions etc.

Eg: GT-I9000, GT-I9100 (NOT g variant), GT-I9300, GT-N7000, GT-N7100. All of these have VERY good support by devs and there are MANY stock derived and custom ROMs available.

These 5 phones have been responsible for 65% of overall Spirit1 sales (2011-2014) and 75% of Spirit2 sales. I would have been better off ignoring all but these 5 phones. Most popular were GT-I9100 and GT-I9300.
[Spirit FM] MaDaLiNoSt:
Ok..ok, But if samsung can make an fully working fm radio for stock rom, why you can't do same for cm ?
[Spirit FM] mikereidis:
Oh, Let me count the ways:

- I'm not a huge, highly profitable corporation. I am one person, not a company with thousands of engineers, HR dept's, janitors, secretaries, dedicated tech support people, etc.

- I try to support many different ROMs, stock, stock derived custom, AOSP.

- I try to support many versions of Android, from 2.1 (still) to 4.4.3 expected any day now.

- I try to support many different OEMs: Samsung, HTC, LG, Moto, some random obscure things and Nexus (original Nexus One at least).

The guy at Samsung working on the FM app only has to make sure the given source code "instance" works on one specific version of one specific Samsung phone.

- Spirit has many more features than the stock FM apps. Some might have a feature or 2 that Spirit doesn't (not really), but there is no other FM app out there anywhere with all the features Spirit does.

- Much of the phone hardware and software is undocumented. I'm lucky to find a schematic occasionally, and they can't even always be trusted for details. Lots of the source code (like audio libraries/HALs) is never released, and even CM has to use "binary blobs" on many (most ?) devices.

Even if source code is released (either Googles part, or the GPL Linux kernel), there is rarely any good documentation. Some of the kernel ALSA drivers now are incredible behemoths of source code and large parts may now be machine generated, thus leading to "copy and paste" syndrome.

- Perhaps worst of all, FM chip and driver details are secret and confidential. Try to find a public data sheet/document for Broadcom BCM FM combo chips. There are only bits and pieces out there, on chinese websites where they don't worry about getting sued.

Most of the hard work in Spirit has been in reverse engineering.

If this was easy, there would be more apps out there like Spirit. The small handful that do exist (MIUI, CM7, CM10/11 on a few devices) are derived from code that came from that huge profitable chip IP company Qualcomm, and take a lot of work to port to non-Qualcomm chips.

Nobody else is even TRYING to sell an FM app.

I've written plenty about this, but couldn't find a link in these threads, so I just added this new explanation to the plenty.
[Spirit FM] 089man:
Since more than 2 years I'm always happy with your spirit app. On all systems this app works permanently fine without issues on my s2. The support was always great here, but i not need often. Smile.... Thanks again Mike for spirit app... Your hard work and great support....

I9100 Tapatalk 4, AICP-Rom 4.4. 2
[Spirit FM] Preter:
The LG G2 and LG G Pro 2 DOES NOT HAVE radio hardware! Get it right!
[Spirit FM] Rick O:
LG G2 D802 (international version) does have FM radio.
[Spirit FM] mariusx25:
HTC Desire 500

Is there any chance that Spirit fm will work on HTC Desire 500 rooted, but original soft?

I tryed, but no succes, no sound.
[Spirit FM] mikereidis:
Yes, and so does the Sprint variant which I own: LS980.