yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
PI yes, it's the best way to identify the station, especially combined with frequency and location.

But unfortunately PI is not available on most stock, un-rooted phones, and these "average person" phones may be the primary target for info.

PS isn't any better than PI. Here in North America, PS is usually used to scroll the same info as the 64 character RT, 8 characters at at time. Here's what I see locally now:

RT: "HAIL TO THE KING BY AVENGED SEVENFOLD"

PS:

HAIL TO

THE KING

BY

AVENGED

SEVENFOL

EVENFOLD

On this station, words greater than 8 characters, like "SEVENFOLD" use an extra "scroll slot" for each character over 8, but that depends on the RDS encoder the station uses.
[Spirit FM] mikereidis:
My first priority must be to paid customers. AFAICT there are a "smallish, but still notable" number of customers with this phone.

I encourage any customers with this phone and this problem to report by email.

But I don't have this phone, and I doubt I can justify much time slogging through kernel code or doing anything else extra-ordinary.

If a dev or anyone with some technical knowledge in this area gets in touch with me, there is a better chance for progress.
[Spirit FM] Lagkage:
Here in Denmark, this is not a problem. All the stations seems to only write there name in the PS. The station i listen to is called Radio ABC and is based in East Jutland. They write the song and artist in the RT. It looks like this: Lady Gaga - Poker Face.

How long does it take before the station name gets back in the PS? For me, it is inappropriate if I want to hear a particular station, but their name is not there.
[Spirit FM] mikereidis:
Widget ! :)

There is finally a homescreen or lockscreen widget in the next release of Spirit Unlocked.

I wanted to release last night, but there are some crashes I'm seeing that might be related, and I should fix those first.

It seems to be most useful between 2x1 and 4x2. Everything is there, no matter the size, which is easier to do and matches what the Spirit app does.

Data and controls are same as for notification window: data = Station ID, PS, RT and controls = pause/play, previous and next.
[Spirit FM] mikereidis:
The RDS/RBDS specs say that PS is for static station ID, and that because PS can be displayed on moving car radios, that is should not be distracting.

Here in North America, these "RDS/RBDS suggestions" are mostly ignored, in part because car radios don't show RT when moving.

There is no guarantee about what will or won't appear in PS. At least one college station doesn't even send it. The national broadcaster CBC either doesn't use it or is static. The vast majority of commercial stations scroll the RT.

North America has the advantage that there is a formula to determine the 3-4 call letters (eg "WABC") from the PI for most stations. Spirit shows these call letters when Band is set to North America. Otherwise, Spirit now shows the PS as a station ID.
[Spirit FM] mikereidis:
Deleted.
[Spirit FM] danielalarcon:
I'm im
[Spirit FM] Lagkage:
Mike do you have any concerns about countries turning off the FM band? In some countries in Europe they have put a date on the "turn off", and in Denmark they will turn it off the 1st January 2017 if at least 50% radio listining is from digital sources.

Do you know of any phones, there is capable of DAB/DMB/DVB-T2-Lite (formerly known as DVB-T2A)? I have heard that Nokia experimented with DAB, but dropped it again because it used too much battery power.

Sorry if my English is not perfect, but i hope you understand me.
[Spirit FM] mikereidis:
July 29 Unlocked release with Widget is now on Google Play.

It also has some hopefully minor Bluetooth adjustments that will reduce startup time in some circumstances, especially with JB 4.2+.

I've noticed that the RT may oscillate between current and previous RT.
[Spirit FM] mikereidis:
I have longer term (1-2-10+ years) concerns about FM in general, and about higher end devices removing FM. 2017 is over 3 years from now.

Anything beyond 1-2 years out is IMO unknowable anyway. It's hard enough to predict if Galaxy Note 3 will have FM in several months.

In the UK, they planned to go all digital, but that's on hold for now it seems, due in parts to lower range (some rural locations would have NO radio) and nobody desiring to buy new radios.

Here in North America, HD radios came out over 10 years ago (I think), but beyond some ongoing experiments, it's been a bust.

Digital isn't as compelling for radio as it's been for digital TV. Here in Canada it was only a few years ago that we got an upgrade from the 1950's NTSC color TV standards, with 525 lines interlaced. (LOL.)

No, there is virtually no such thing as a cellphone with digital radio, beyond perhaps some China, Japan, or Korean market specific devices. There may have been a rare prototype or 2.
[Spirit FM] mikereidis:
:)

My abject apologies.

I get so much email from pirates that it's easy to see co-incidences.

The alleged guilty party who sent a log was running AOKP, not Slim, on his GT-I9300, but also uses googy-max and had recording issues:
[Spirit FM] mikereidis:
I'm running Slim on my 9300 now and can see the speaker volume issue.

AFAICT you can just keep the volume lower, or set Audio-> Volume Scale to 80 or so, but that will lower headset volume too.

I'll have to add some new ALSA control settings to fix this; Slim uses different defaults than CM and other ROMs I think.
[Spirit FM] mikereidis:
I don't think any change between the 2 would affect you.

I'm not in the habit of releasing the Light version still. I thought it was just June 8, but you're right I released June 11 Light too, but with no link from post #1.

:)

What's funny is that it's pretty much just the pirates (but just a few, to be fair) who get indignant when I ask for purchase details/proof. Customers have no problem with me asking.

I'd say they just pretend to be indignant, to save face, but I think

some feel the world owes them, and they are justified to lie and worse to get what they think they deserve.
[Spirit FM] zviki:
Does this application work on lg p760 (CM 10.1)? Thanks
[Spirit FM] scutworker:
The easiest way to find out is to download and install the FREE version from the first post of this thread. If it works, then you can buy the full version. If it doesn't then maybe Mike can analyse the log to see why? Good luck.
[Spirit FM] sodvmi:
Does this application work on samsung getis s5360 (CM 7.2rc)? Thanks
[Spirit FM] zviki:
Well,it's not working on p760 - No FM accessible (some Ht:0)
[Spirit FM] mikereidis:
Probably won't work then. No stock FM app, or other clear evidence FM works, is there ?

You can try again with the new July 31 test release in my next post. It fixes a bunch of problems since July 26.
[Spirit FM] mikereidis:
Rushing out a July 31 Free release, now also on Play for Light and Unlocked: http://d-h.st/oXC

I appreciate any reports I can get in the next 12 hours, especially if you had problems with July 26 and 29 releases.

July 26 and 29 releases were built with the latest version of Googles' Android SDK.

Some strange changes caused the sprtd and ssd binaries to crash on older & less powerful ARMv6 based devices such as Desire HD, P500, One V, etc.

This was most notable on ICS ROMs, where the FM wouldn't start, but may have also prevented audio from working on some devices.

Thanks ! :)
[Spirit FM] deeppans:
Mike,

Bought this app for my wife's Galaxy Ace s5830 running CM 7.2.

Although the app starts well or of box couple of issues :

1. Considerable noise while listening. The same is not there while listening on Galaxy S i9000. (I know it's different h/w, the point I want to make is FM station signal strength is Good)

2. Sound doesn't switch to Speaker even after pressing the button. Restarting app immediately after that resolves the problem.

BTW latest (I guess 29 Jul) version is been used)

---------- Post added at 08:27 AM ---------- Previous post was at 08:26 AM ----------
[Spirit FM] zviki:
It was a stock FM app on stock JB,but now I installed CM 10.1,so no radio... Thanks for help

BTW,this phone has TI OMAP 4430 processor
[Spirit FM] mikereidis:
Hi. It's been difficult for me to support older devices going back to Android 2.3 Gingerbread.

Try setting Menu-> Settings-> Audio-> Method to "Cyanogenmod 7" and restart Spirit. If no audio, set it back to "Automatic" and restart Spirit again.

The problem I've seen with many of the ROMs for the Galaxy 5/Ace series, including my own test phone, is that the audio library sets the FM input gain much too high. When you turn the volume down on the FM chip (and I presume the volume is too high at max), the result is high amplification on noise.

On some MadTeam ROMs at least, this problem was fixed in the audio driver.

There is a small chance that selecting Menu-> Test-> Volume and one of these might reduce the excessive gain:

setFMVolume 1 (at end of list)

msm7x30 1

Otherwise, I don't think I have any solution for this issue, other than using a stock ROM.

After you have the latest July 31 release loaded, please send me a debug log, right after switching to speaker and seeing it not work.

Use Menu-> Test-> Email-> Logs and press Send after 20 seconds.
[Spirit FM] jururu:
You can add the following profiles ?

It can tune the spanish bands:

144-148 Mhz - Amateur "2 meter band" [narrowband]

137-174 Mhz - health emergency services, police, private security, courier, minicabs, transport, etc.. [narrowband]

110-136 Mhz - commercial aviation Band [narrowband]

156-160 MHz - Band maritime [narrowband]

spanish:

144-148 Mhz - Radioaficionados "banda de 2 metros" [banda estrecha]

137-174 Mhz - Servicios de emergencia sanitaria, policial, seguridad privada, transporte urgente, radiotaxis, transportes, etc. [banda estrecha] 110-136 Mhz - Banda de aviación comercial [banda estrecha]

156-160 Mhz - Banda marítima [banda estrecha]

thank you very much
[Spirit FM] sodvmi:
How configure in galaxy y s5360 cm 7.2rc?
[Spirit FM] Lagkage:
Most FM chips in smartphones doesn't support these bands, so it's very unlikely.
[Spirit FM] andrecrespo:
I have a problem with my i9300 (galaxy s3) and devil kernel + spirit FM (31/07 and other versions)

When use this kernel and only in spirit FM, the right channel have a higher volume than left channel. No matter the sound settings I changed on kernel the result is the same.

I have tried googy, temasek and agni kernels and don't have this problem.

Strange that this is the only application I have problem, I am using poweramp and no problems.
[Spirit FM] MurukanDHD:
Hello everyone.

I have been using the app for a couple of weeks now.

Everything is working fine when I use headphones, sound quality and volume are bang on.

But when I switch to speaker the quality stays good but the volume is way too low. Even at max it feels like it being at about 30%.

Any ideas or any settings I should check?

My phone is a international Galaxy Note 2, on a CM based rom.
[Spirit FM] ramiwi:
This version fixed the "no FM accessible" error i had on my device (HTC Legend, CM9.1B8) with the previous July light versions. Thanks!
[Spirit FM] mikereidis:
Configuration is automatic.
[Spirit FM] mikereidis:
On some ROMs, the volume is too high, and I'm looking into that now.

On the Unlocked version of Spirit, digital audio mode may fix/workaround this.
[Spirit FM] mikereidis:
People regularly say "media apps don't have problem XYZ".

Many of those people don't realize that FM audio paths on phones are almost always special paths only for FM that require their own separate settings, especially if the ROM or kernel defaults aren't too good.

I'm continuing to look into these issues.

I kinda hate to keep saying "Unlocked digital audio mode may fix this(, so buy my app...)", but this is often so.
[Spirit FM] andrecrespo:
Sorry I forgot to say that I have payed for the app. I am just report my problem.

Enviado de meu GT-I9300 usando Tapatalk HD

---------- Post added at 07:58 PM ---------- Previous post was at 07:52 PM ----------

Ahh I am using the digital mode also

Enviado de meu GT-I9300 usando Tapatalk HD
[Spirit FM] mikereidis:
In that case, send me a debug log in digital mode on the bad kernel. Use Menu-> Test-> Email-> Logs and press Send after 20 seconds.

There are often over 300 ALSA low level audio controls on modern smartphones. In theory, Spirit could set every one of them to a known good value. In practice, this would make mute/unmute and speaker/headset take forever to complete, and would likely have other nasty issues.

So, with Spirit, I try to set as few controls as should be needed, with the remainder using defaults that are OK. And this helps avoid problems when ROMA sets Gain1 to 2 and Gain2 to 3, while ROMB does the reverse, with the same overall effect, more or less.

I've long struggled with accommodating differences between ROMs etc. I make a change to fix things on some ROMs, release it, and then hear it breaks things on other ROMs.

Just trying to relate the tight-rope that Spirit walks sometimes...

I've had a report in the past about mismatched channels and fixed it at some point. This is likely related to the controls affected.
[Spirit FM] mikereidis:
Qualcomm WCN3660 FM/BT/WiFi.

For this chip, the kernel config needs to include radio-iris into the kernel itself (not a module). AND radio-iris-transport.ko needs to be a module, it can't be in the kernel like radio-iris. Strange, but so. You can insmod the ko, but the official method is to run this as root:

setprop hw.fm.mode normal ; setprop hw.fm.version 0 ; setprop ctl.start fm_dl

Spirit should detect the FM chip OK, if the ko isn't loaded the phone will reboot due to stupidity in the kernel driver.
[Spirit FM] mikereidis:
Android 4.3 may break FM on devices using Broadcom FM/combo chips.

EDIT: See post 6574 below for solution.

I updated my HTC One to the new Android 4.3 GPE ROM.

Spirit won't work, via HCI UART or a shim I built that worked on Android 4.2 AOSP.

I'm not sure why yet, nor do I have any fix. Maybe Goog disabled it on purpose, LOL.

The only possible good news here is that HTC (Goog ?) appears to be using the open source AOSP/Broadcom BT stack instead of Broadcom's older proprietary stack, as HTC did for Android 4.2 GPE.

I wonder if the "stock" Sense based 4.3 will move to the AOSP stack too; seems to make sense, but it might impact HTC's stock FM app.

All this may mean that Spirit isn't working on all AOSP 4.3 ROMs on devices using Broadcom FM/combo chips.
[Spirit FM] qazsxdcfv:
Anyone can help me ?

Im using rootbox ( customrom 4.2.2 ) on htc one s , and this app doesn't work

..

Later on my dhd , it worked with qdspbllabla ... :D

Sorry for cannot describe to the detail .. Im not pro on this :D

Sent from my hTC One S powered RootBox by $droyd$™
[Spirit FM] chrcol:
nice app, only app on the entire google play for FM radio :D

and haha to S4 users they dont have a radio (I learned from your page?).
[Spirit FM] mikereidis:
I have a solution now for Android 4.3 HTC One GPE, by forcing the use of the older Android 4.2 Broadcom firmware/"patchram" HCD file.

Remember that GPE requires root and Bluetooth off for FM.

So it appears that somebody between Broadcom, HTC and Google removed/disabled FM support in a new firmware file. I can fix/workaround this, but this could be a bit challenging going forward, especially if they are doing this on purpose.

To fix, on HTC One GPE Android 4.3 at least, grab a copy of the old firmware file: http://d-h.st/6fl and put it in your current directory. Then do these:

adb shell mkdir /sdcard/sprt

adb push BCM4335B0_002.001.006.0092.0093.hcd /sdcard/sprt/broadcomp.hcd

Spirit should now start and work like before.
[Spirit FM] mikereidis:
There are a few other FM apps, but one is an old stock Motorola app and a few are very device specific.

I usually get at least 2 emails every day from S4 owners. Caveat emptor.
[Spirit FM] tjsooley:
Doesn't work on the HTC ONE GOOGLE PLAY EDITION with android 4.3

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

Will this brake the Bluetooth 4.0 LE support?

Thanks. Works.
[Spirit FM] mikereidis:
I have a new APK available by email to customers that doesn't require the file trick.

Good question; I've been wondering.

On GPE or AOSP for HTC One, or any Broadcom based FM, Spirit takes over the Bluetooth UART port. So nothing Bluetooth related can run when FM is on.

Best solution may be an updated shim library that will work when BT is active; it worked on 4.2, no longer on 4.3 and likely just needs "adjustments". But I don't like the needed automated or manual system partition messing about, including each time a ROM is updated.
[Spirit FM] chrcol:
I found your app via a xda thread, many other apps have FM in their name when they stream not tune so are entirely misleading.

I used my radio on the phone yesterday because live sports coverage on the radio, on digital versio of the radio station they turn the coverage off because of the coverage rights (is for analogue only). They dont want people on the internet getting coverage without paying for it. So having the facility on my phone is great, so no longer have to use my big clunky old radio to listen to the sports now. Plus the signal is better, on the old radio was a dial to tune, and very hard to get clear signal as interference either side, on your app can type in the frequency and its much clearer signal.
[Spirit FM] mikereidis:
Yeah, I consider putting "Real FM" or even "Real OTA FM" in my app name, but left that for the app description, within the 1st few words:

& top of post #1 this thread:

Analog rights ? LOL.

Even recording analog to digital comes with some complications in some places.

There's no UK radio antenna tax is there ? (Quick, hide your wired headset...)
[Spirit FM] tjsooley:
How would i go about getting ti. My google play account is tim.sooley@gmail.com
[Spirit FM] LenAsh:
For info, the Xperia ZL doesn't work. Tried every config, including Qualcomm intent. RSSI is fine. Xperia Z does work, which is strange given the hardware is supposed to be largely the same...

I note that using the stock FM Radio app "Radio3", the signal sensitivity is excellent (particularly compared with the useless HTC One) and is slightly better on the Z. Sony (or Qualcomm) appear to have changed the low signal regime/behaviour from a "muting" type in 4.1.2 to a "mono" type in 4.2.2. The stereo separation is very good indeed, with a nice controlled blend...

Rambling, sorry.
[Spirit FM] mikereidis:
Emailed.

I'll see if I can post a public update tonight.
[Spirit FM] mikereidis:
I have an Xperia Z on loan from Sony, but have to return it now.

You mean the "Sony Z/QC Intent" audio method ?

I presume you also tried "Sony/STE/Android".

I've already de-rooted my loaned Z (not allowed to root, LOL) so I can't check, but "HTC OneS/X LTE ALSA" might work. And Unlocked may work with "Digital OneXL/S/Sony".

Send me a debug log with Menu-> Test-> Email-> Logs and press Send after 20 seconds.
[Spirit FM] :
I am a n00b with all the audio jargons. When I use a custom kernel with boeffla engine and enable DAC with 128bit sampling on i9300 (Samsung S3 international), the FM radio stops after a few seconds. mostly it never starts any sound but when it does, it stops soon.

Is it possible to disable DAC from the FM app so that other apps do not get impacted if I globally turn off?
[Spirit FM] mikereidis:
August 5 Free: http://d-h.st/gWe

Unlocked and Light updated on Play.

- Fix for HTC One Google Play Edition Android 4.3.

If you copied the HCD file manually to /sdcard/sprt/broadcomp.hcd it's best to remove it, but no big deal for now.

Speaker does not work, either with analog or digital audio, despite that it works fine on CM and stock. I forget if speaker worked on GPE w/ Android 4.2, but 4.2 pretty much doesn't matter any more.

It will take a bit of time for me to find the best solution for speaker, that doesn't break on CM or stock.
[Spirit FM] mikereidis:
No, not really.
[Spirit FM] :
I sort of guessed looking at non standard sysfs interface to controlling the DAC. How about a tasker plugin for pre and post run hooks?
[Spirit FM] LenAsh:
HTC OneS/X LTE ALSA does work on the ZL. Thanks!
[Spirit FM] mikereidis:
Whatever issue you're having doesn't seem to affect too many people, so I have to place it pretty low on my priority list.

If you're a customer, please send me an email, and I'll raise the priority some.
[Spirit FM] mikereidis:
I'd like to make this automatic then.

Please send me a debug log. Use Menu-> Test-> Email-> Logs and after 20 seconds or so press Send.

Thanks !
[Spirit FM] :
I am a long time customer from the days of CM6. This is not a requirement I cannot live with. I will just cook up something in tasker if I have to. Overall, I like to see more applications with tasker plugin though, it takes phone automation to the next level. Thank you for the wonderful app. My decision buying a phone depends on FM radio and custom ROMs. Your app makes the custom ROMs complete.
[Spirit FM] droid-x:
I am on HTC One GR 4.3 but it request to be rooted, any way to use it unrooted?
[Spirit FM] meduza:
Working perfect on s3 mini with CM 10.1ROM :)

Thank you!

m.
[Spirit FM] Lagkage:
The Google Play Edition? Unfortunately no. Root is required and bluetooth must be off.

Mike has posted a lot about the GPE in the thread, and the post describing what I said is here: http://xdaforums.com/showthread.php?p=44018102&highlight=htc+one+gpe#post44018102
[Spirit FM] makbil:
Currently I'm on Mike's ARHD 12.2 (4.2.2) with the HTC One GE firmware. Spirit works, however I have noticed something which you may or may not be aware of. As you also have an HTC One, you are probably aware that even the lowest volume setting on that device can be too loud if you want to sleep to it. I tried to limit the volume level to 20-30% in settings/audio. The interesting thing is, as long as I'm in the settings menu, it seems to work but if I return to the main screen, it has no effect. Going back into settings lowers the volume again.

I've tested these on loudspeaker output, not headphones.

Not a major issue but I thought you'd like to know.

I also have a nandroid of HTC 4.3 and will likely restore that over the weekend, if you need me to do any testing for you just let me know.
[Spirit FM] 0kti:
Damn. Not working on Galaxy S4 i9505

Sent from SGS4 with Tapatalk 2
[Spirit FM] mikereidis:
Thanks. That's true, but as always "the devil is in the details"...

He said "...it request to be rooted" so I presume his phone is rooted, but that he's just not comfortable with giving Spirit SU privileges.

Spirit should work on HTC One GPE or AOSP without root, but something must open up the permissions on a few device drivers. This should do it from "adb shell", and a script could be setup to do this, once per boot:

su

chmod 666 /dev/ttyHS0

chmod 666 /dev/snd/*
[Spirit FM] mikereidis:
I know almost nothing about this phone.

Can you send me a debug log with Menu-> Test-> Email-> Logs ? Press send after 20 seconds.

I will consider official support for this phone if it works well and there is sufficient interest.
[Spirit FM] Quinny899:
Tap the freqency and enter your desired frequency in the box
[Spirit FM] Whippler:
Just got scared cause there is no Radio app on MIUI... looks like this is working just fine, altough the UI is bit ugly.