yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Model detection on newer Sony devices is currently done manually for each device name I identify, and non-stock ROM device names are at the mercy of the FreeXperia dev.

Try Audio-> Method = "Sony Z..." for "non-digital" audio.

If that works, (or even if not) I may be able to make it automatic if you send me a debug log. Use Menu-> Test-> Email-> Logs and press Send after 20 seconds.

Only the old, single core Galaxy S GT-I9000 seems to get much CPU strain from Spirit digital FM audio, and even that isn't too bad.

On devices such as the ZL, Z, OneXL, etc. with Qualcomm WCN3660 FM/combo chips, FM audio is always pure digital until the audio output chip anyway, so there's not too much difference. And this despite that Spirit still does more than a "properly engineered" digital FM audio solution.

AFAICT, modern, powerful phones can run on one CPU core, running at low speed, for all the stuff apps do in the background, that they technically shouldn't be doing (including Spirit), for best battery.
[Spirit FM] mikereidis:
Thanks. Yes it could be done in software only, but the HW support can make it easier and faster.

In addition to an ALSA driver, you have a /dev/msm_snd device. That should generally work with the msm7x30 Audio Method. On my P500 though, it doesn't because mediaserver keeps the device opened exclusively.

To test for this you could run this after the app is open with decent volume levels and "playing"::

adb shell "killall mediaserver;/data/data/com.mikersmicros.fm/files/ssd 1 9"

On my P500 this results in a brief burst of sound in the headphones before mediaserver restarts.
[Spirit FM] Kess78:
I just did what you said but it does nothing... And when i have the audio via the stock app it stop the sound.

A strange thing is that sometimes when i have lunched the radio before i have only RDS in your app and when i hit the volume keys the sound appears but RDS stop and RSSI says 0...
[Spirit FM] TeutonicWolf:
Hi Mike (mikereidis),

I just wanted to drop a quick message to first say thanks for this app. I was using the FM Radio in CM for ages but since it doesn't seem to be getting updated I went looking for something else.

Spirit FM is the best FM Radio app out there right now so I gladly bought it to help support its development. (I actually bought it twice -- the first was refunded for some reason and when I noticed, I bought it again! LOL)

Second, there are a few things on my "wish list" for this app that would make it better IMO:

1) The ability to lock orientation in Portrait (or Landscape.) I almost always use it in Portrait FWIW.

2) The ability to remember settings for a particular Radio station. e.g. remember to play 97.7 in Mono (due to weak signal) but everything else in Stereo. Right now, changing between Mono and Stereo is an all-or-nothing setting :-(

3) The ability to relocate RDIS elements. If I can explain, some radio stations seem to be using different fields to display program info, station identifier, etc. I'd like to be able to long press on an element and select a different attribute to display for just that station. (I know, it'd be better to email the stations and ask them to fix what they are broadcasting but I doubt they would do anything).

For some stations, I see the Song Title, Artist and Station Identifier scrolling in the top right corner of the app (8 chars at a time) when the middle field is empty or just displays the station identifier. I'd love to be able to "switch" them for 80% of the stations in Toronto that I listen to.

What I'd like to see is:

PI code in top right (instead of the scrolling 8 char Song/Artist/Station display)

Song Title, Artist (and Station Identifer if available) scrolling across the middle field.

Genre and/or station on the right hand side where the PI code pops up.

Maybe the stations in Ottawa present the info differently to Toronto though -- so making it selectable would be best IMO

Keep up the great work and Thanks Again!
[Spirit FM] mikereidis:
Hi, Wow, thanks ! And thanks for your wonderful review.

That's very strange about the cancellation. My info claims "Cancellation requested from phone." I assumed the 3 cancellers (of 24 sales) were just looking for a freebie. So it could be Google's fault somehow.

Feature requests in next post.
[Spirit FM] mikereidis:
OK. Easy to do. I find it annoying myself sometimes.

Sounds good. I had thought of that, but I can easily think of a year's worth of features.

This one is more difficult. There are only 4 RDS elements visible and 2 usually never change: PI = Program ID eg: "PI: 55555" and PT = Program Type ed: "Rock".

So that leaves 2 elements that can change: The 8 character PS = Program Service at top right. and the 64 character RT = RadioText under the thumbwheel and over the numeric frequency.

There are no standards for these. Radio stations can not use them or can set them to whatever they want. In some cases I see nothing or just fixed text. The 8 character PS is sometimes the same as the 64 char RT, except it "scrolls".

The different lengths make it very difficult to just swap them. And I think it would be a really bad idea to try and anticipate how the scrolling works to turn 8 characters into 64.

I'm still writing this post; Just saving in case of power outage.

I'll consider the UI ideas. I like to make things configurable, but it could be a lot of work, and many people may still see the UI as "ugly". :(
[Spirit FM] SaurusX:
It seems like the latest update doesn't work with CM7 on the Droid X. Going through this thread it appears that the "fm_su" workaround is no longer needed, but even having done that the app tells me at the get-go that no compatible FM chip is found. After that all the buttons in the UI are unresponsive. Many people on rootzwiki are reporting success with this, but I've been a big fat fail so far. Thanks for all your work on this app.
[Spirit FM] jacko5:
@mikereaidis,

Does this ap work on the Sony x10 yet ?

If not when you get it working can you update the 2nd post please :D
[Spirit FM] daniel.weck:
Just a quick message to say well-done for the app, but unfortunately nobody seems to be abe to wire the audio/FM path on the Samsung Galaxy Tab :(

I hope some ingenious mind will figure this out soon, perhaps it actually requires some kernel (module?) additions...
[Spirit FM] jewisharific:
I appear to get no audio or RDS w/ my CDMA desire on CM7 nightly 128 with any audio method :(
[Spirit FM] Victorino86:
Uhm... I see what AF is... very usefull in Italy too (just a few major radios transmit on the same frequency all over the country). But not a rush, i made a tab for every radio I listen with the different frequencies :p

I was wondering, as a temporary workaround for PS TR swap, can't you just add a button (in the settings, UI already crowded :p ) to switch place for the 2 of them?
[Spirit FM] mikereidis:
Thanks all for the great comments and reviews, and the 23 purchasers and 5 donors !

I think the paid Unlocker app is off to a great start. It seems to indicate I will be able to continue full time+ development of both apps indefinitely. Or at least until the Android market saturates in 3-10 years.... :)

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

I know there are several "conversations" or ongoing investigations I haven't been able to follow up on lately. When I have no useful reply, I may also have not replied to all posts, but will when I have information and can reply. Sorry, and please don't feel you are being ignored.

At this point I need to create a list of the ongoing investigations; I guess this will be a "partly supported" or "known issues" list for the specific devices and ROMs in question.

I will be updating the first few posts with the information I gather.

---------

Persons with fewer than 10 posts should be able to post on my new thread in the paid app forum. If you CAN post here however, I'd prefer that you post here.

I'll try to ensure useful info gets copied or linked here. The new thread: http://xdaforums.com/showthread.php?p=15608450

Thanks !

Mike.
[Spirit FM] mikereidis:
OK, the X10 is a Texas Instruments FM/Combo chip device if my notes are correct.

Your problem when you hit the volume keys seems exactly like the problem I can see on my TI based HTC Legend and has been reported on the Motorola DroidX.

I'm not sure exactly what you tried but there are two workarounds that work on my Legend. The first requires deleting or renaming hcitool. I rename it "hcitoo" so my app can still use it if needed. This works on some CM ROMs that call hcitool.

The other workaround was forcing my app to use hcitool (or hcitoo) by disabling SuperUser/root priveleges for my app.

I hope to find and fix the root causes of this problem as soon as I can.
[Spirit FM] mikereidis:
This feature is now in the code for the next release. :)

Subtle sales pitch: Paid customer requests get priority. ;)
[Spirit FM] mikereidis:
Thanks for the pointer ! I presume it's this thread: http://rootzwiki.com/archive/index.php/t-389-p-13.html?

It sounds as if an older version of my app may not have had this problem. I can try to figure out which versions might work by testing for the similar problem on my HTC Legend.

I'll let you know what I find, and see if I can get some older versions more easily available for download. I've deleted most of them from download sites but still have all APK versions back to and the source back to v2.01.
[Spirit FM] mikereidis:
Sure.

Hopefully I will find one reasonably easy to fix problem for the X10, the DroidX, my Legend, and probably other TI based devices. I'll let you know.
[Spirit FM] SaurusX:
That's the one. I don't know if you made any changes and the app automatically updated or what, but Spirit FM Radio was all of a sudden working when I tried it again last night. I certainly didn't make any changes to my setup, but the app now starts up without error and I can tune stations. The tuner does bounce around quite a bit and it was a lot of trial and error to set stations to the presets on the bottom. Once that was done, though, it seems to work, though there's more interference than what I experienced with the stock Motorola FM Radio app (that's not working on CM7). Again, thanks for all your effort put into this.
[Spirit FM] cedarman:
managed to get it to work on dell streak !

it will work with the streak PROVIDED you load any one of the two working applications before hand , ie load fm_radio.rar , then load the spirit fm ,

a tricky workaround but it works with rds etc
[Spirit FM] mikereidis:
You might be aware of the efforts Idkidk and I have been making for this, with no success so far, not even RSSI and RDS.

Alas my working theories at this time are:

(1) The Samsung FM app only supports Silicon Labs FM chips (not Broadcom), and

(2) There are no Samsung devices that have all 3 of the following:

(2a) Power connections to the FM RF power pins on a Broadcom chip,

(2b) Headset/antenna connections for FM receive on Broadcom, and

(2c) Usable analog (or digital?) FM audio connections.

(1) could be disproven if someone can point to a Samsung device that supports FM on the Broadcom chip. (Galaxy S and perhaps S2 has Broadcom combo chip but uses Silicon Labs dedicated FM chip.)

If somebody could send me or point me to a downloadable Samsung FM app APK I could look and see if there is any evidence of Broadcom FM. I might even learn something about Samsung FM audio routing,

(2a) and/or (2b) seem to be indicated by similar results on the Tab and the Samsung/Google Nexus S. Both show strange signal strength values that may jump around. Since the Nexus S is a developer phone I would have hoped more information about this was available. But I think the Nexus S was a flop compared to the Galaxy S (and now S2).

It appears to me thus far that the new Tab10.1 has the same FM problems.

(2c) could perhaps be disproven by a Samsung schematic that shows otherwise. AFAIK, all Samsung schematics are public, but I don't have the time for finding and checking them all.

Digital audio might be a solution for (2) but I think HCI/SCO based digital audio is only good for mono, phone quality audio at 8 KHz sampling rate. And I suspect only static, or rather weak sound from strong stations would be heard. Time will tell on this issue.

Yes, if there was a usable analog or digital audio path from the Broadcom combo chip, and the needed kernel code was not on your ROM of choice, then a loadable device driver or similar could help.
[Spirit FM] mikereidis:
Are there any good summaries online about what is so different about the CDMA version ? I see there is a distinct CyanogenMod ROM for GSM and CDMA variants.

The HTC Desire GSM is by far the most popular identifiable phone running my app: 9.1% of active installs versus the 2nd place HTC Evo 4G at 5.6%.

While I'm spouting the stats, as of July 9 Spirit FM Radio has:

26453 total installs

5694 active installs (21%)

I presume most of the 79% of inactive installs were on devices that my app won't run on. :(

66.3% of active installs were on unidentified devices.

The identifiable devices:

1	HTC Desire	9.1% (518)

2	HTC Evo 4G	5.6% (320)

3	Motorola Droid X	4.7% (266)

4	leo	3.8% (219)

5	LG Optimus One	3.5% (200)

6	HTC Nexus One	3.5% (199)

7	HTC Desire HD	3.5% (197)

8	Samsung Galaxy S	2.8% (161)

9	HTC G2	2.7% (155)

10	SEMC Xperia X10	2.5% (145)

I would think this would be a decent top 10 compatibility list. But I can't imagine why Galaxy S (#8) and X10 (#10) are there unless the app actually DOES work on those devices, or there are enough people trying to get it to work that their installs show as active.
[Spirit FM] mikereidis:
OK, clearly AF is needed, although requests from (paid) customers would likely speed that up. ;)

There are ways the UI could get uncrowded, such as using a single button and a dialog for all presets. And it would make sense to make UI elements configurable via normal or long presses on the element itself.

It would be easy to swap PS and RT except for one thing. The former is 8 characters and the latter 64 characters, which takes much more space including multiple lines.

PS takes the right part of one line, the top line with 3 other elements. RT takes 2, or sometimes 3 lines by itself. I COULD move RT to the top and push the top 4 down somewhere. I could also put PS under or above RT, whether in the top row or any other.

The original Qualcomm app used scroller code for RT, to fit it into a single line. It made RT look like an old style (but single line) Movie/Cinema Marquee.

I removed it because I didn't like having to watch the display for a while instead of just giving a quick glance. It LOOKED cool, but IMO that was at the expense of usability.
[Spirit FM] LenAsh:
The Sony Z.. doesn't work, although TBH the Digital Auto solution is fine for me (as per your comment, newer phones seem able to cope with this and DSP without draining the battery).

For what it's worth, UL and CM10.1 work just fine in "normal" automatic.

Unfortunately, I can't send you a log as it hangs for a minute or so after hitting "logs" and then I get a toast stating a file cannot be found...in /storage blah blah (it disappears too quickly. And the Superuser toast stays on the screen all the time...
[Spirit FM] mikereidis:
I've approved the membership of 6 people in this group for Unlocked: https://plus.google.com/communities/118032870995675059664

The one for Spirit Light is here: https://plus.google.com/communities/114827828758198482546

Can anyone tell me if you have to be logged in with a verified purchase account ?

IE is it possible for a non-customer to get approved and get the beta versions, or must you be a customer ?
[Spirit FM] RuedasLocas:
Well, I know it works in CM but today I tried in JB 4.1.2 (stock) and I can't make it work...

I'll take a better look in O4X forum and I'll try to get some help there.

Thanks anyway.
[Spirit FM] mikereidis:
On stock ROMs you can try not giving SU to Spirit, or set Menu-> Settings-> Debug-> FM API to "OEM Proprietary".

I'm not sure how well audio can be accommodated on a stock ROM though; I haven't dealt with LG devices much in over a year now.

But if we get the FM tuner part working, I can give some ideas for Audio-> Method.
[Spirit FM] RuedasLocas:
Thank you [MENTION=3575078]mikereidis[/MENTION] for your time but, nothing works... maybe in a future version.

The error only changes from "SU: 2 FM: bc" to SU: 1 FM: bc".

Don't worry, it's not important for me.

Keep the good work :good:
[Spirit FM] guhvanoh:
It seems you have to members of both to be able to see posts in both groups. It also seems you must be logged in to G+ with the account you were approved with. Using my account I used to purchase, I was able to get in fine. Using an alternate account, I got a 404 error.

HTH
[Spirit FM] Xaratas:
I want to say thanks for spirit fm. It works on my Huawei Ascend Y201 pro with CM10.1. And it works better than the stock fm player. Have tested it in the underground today and got nearly everywhere understandable audio. The stock fm player could play down there only much white noise and a few fragments of sound.

Needed setting is only "Menu-> Settings-> Audio-> Method" choose "msm7x30 Mot XT557/Hua G300" as noted here (arg, account to new) link to the [myhuawei forum]/Thread-ROM-CyanogenMod-7-2-Unofficial-U8655?pid=4041#pid4041

The linked Thread contains version 0227. I tried then the current version linked here September 7 only to see spirit fm refused to start "device not supported" :( To get the old Version working again i needed to uninstall, reinstall and manage apps -> remove data.
[Spirit FM] mikereidis:
The only proven way that Spirit will have better reception than stock, is when audio is set to Mono. The older free versions of Spirit forced Mono, but newer ones allow (or force ?) stereo.

I made a decision at some point this year to disable most Huawei and ZTE devices.

This has resulted in a substantial drop in logs emailed from pirates, particularly in China. So that's a good thing for me, and for Spirit I think.

I regret that it means some phones won't work, but I'll always reconsider my decisions.

I was on a Chinese forum recently, in a big thread devoted to my app and of course pirating it, LOL. It appears that some have even modified Spirit with a Chinese translation, double LOL.

... And the "Huwaei" disablement was seen by some people; I think there's at least one hacked version that bypasses this, but it may not be widespread, or my email load wouldn't have improved.
[Spirit FM] carabao72:
hello,

I have a problem with the version Spirit FM Unlocked.

Although having activated, function RDS as well as function AF, the change of frequency do not function

BAND: Word 50 Khz

UI: RDS ONE

UI: Automatic STATION ID

AF: RDS+region

AF RSSI Threshold 16

AF Period 500

Af polls 4

AF pi Mask 65535

AF RSSI Pauses 500

AF pi Time-out 4000

Galaxy NOTE 1 , slimbean 4.3 béta 5 (Europe, Belgium)

Thank you for this application
[Spirit FM] mikereidis:
When tuned to a station with AF, at top left of Spirit you should see something like: "AF:4 R:0". This indicates 4 alternate frequencies. Do you see that ?

Send me a debug log at this point with Menu-> Test-> Email-> Logs and press Send after 20 seconds.

If so, remove the antenna or move it such that RSSI is less than 16 for 2-3 seconds. This should trigger a search for a good alternate frequency.

You can also do Menu-> Test-> AF-> Switch to force a switch without low RSSI.
[Spirit FM] Kess78:
Hi,

I think you just have to set AF Mode > RDS instead of RDS+Region and it should work.

Also you can reduce AF PI Timeout to 1500 or less the AF search will be faster.
[Spirit FM] carabao72:
YES

it is done

IN TEST

---------- Post added at 04:29 PM ---------- Previous post was at 04:24 PM ----------

modification carried out: RDS, test in progress

modification carried out: 1500, test in progress

Thank You
[Spirit FM] cecr:
having just updated my Huawei G300 U8815 to the stock ICS I was disappointed to find the FM radio gone - I us it a lot. I remembered seeing mention of a radio app on a thread and managed to track you down lol.

I've just installed the free version of Spirit to give it a try and it appears dead.

On startup it gives the message:

SU: 1 FM:bc

There is no audio output, and no tuning - the buttons don't work.

I _did_ have the tining working but no sound, and _did_ have sound but no tuning. I couldn't get both at the same time, and still can't.

I read earlier that you've

disabled "most Huawei" phones, does that mean there's no hope for mine? If you think it should work, can you give me a hint of the settings I should look at, I've tried most of what seems likely, but maybe haven't got the right combo?
[Spirit FM] Xaratas:
Thanks again, i have a new question. I find the sound of spirit fm quite low. First thought was the loudness limit setting, but after disabling it radio does not play louder. To find out if i have to blame my phone or me or the app i have tried an mp3 in apollo which feels double in loudness, and an opus file in vlc which feels quadruple in loudness. All apps were on maximum with the Slider. I found the Loudness limit function in spirit fm but it only uses values from 0 to 100, and 100 were already set. Interesting is that the audio on the headset get ~20% louder if i switch to speaker and back again. But this effect is not stackable.

So is there a way to get spirit fm to play louder or need i to look for some „amplifier“ app?

Other Question: Where can i get an legal unlocked version without huawei block?
[Spirit FM] superabis:
For me also is sound of spirit too quite. How i can it make louder? HTC Sensation.
[Spirit FM] ankjain:
Galaxy S4 zoom SM-C1010

hi folks

just purchased the s4 zoom. officially no FM app. just curious that will spirit FM work? FYI s4 zoom is having exynos 4212 dual core chip . will be glad if any of friends can answer me..

regards

ankjain:good:
[Spirit FM] Lagkage:
Try the free version linked in the first post.
[Spirit FM] rienkandroid:
You could try voodoo sound, works for me.

https://play.google.com/store/apps/details?id=org.projectvoodoo.controlapp&hl=en
[Spirit FM] mikereidis:
Thanks.

Just to note, adding "Region" means that transmitters with "Regional Programming" may also be switched to. That regional programming may be different.

I presume there are cases where it's not different, for example when only certain hours have regional program differences. AF isn't really used here so I don't know how common this is.

Some radios apparently have a "Region control" that is equivalent, so I've assumed some people would find this useful.

When Spirit starts looking for a new/better signal it stops at a potential replacement frequency. This is the maximum time, in milliseconds, that Spirit will wait for a Program ID that matches the original. If signal is weak it may take a while for RDS/PI to come through or it may never come through at all.
[Spirit FM] mikereidis:
Hmmm...

Huawei had stock FM included on Android 2.3 and removed it on stock ICS ? That doesn't sound too friendly. No other OEM has done exactly that, which goes beyond simply disabling FM on a device the OEM originally did NOT support FM on.

Yes I disabled Huawei devices, but I made an exception for G300 u8815 because I noted that I had at least 20 customers who purchased Spirit on this phone, and it worked for them, so I didn't want to turn my back on them.

I think most G300 Spirit users are on CM or some AOSP based ROM.

I think it may then work on stock phones, if they are rooted. But there is a special "Bluetooth always on" problem on many ICS ROMs that could prevent even this from working.