yashsingh1/xdaforums huggingface dataset:
[Spirit FM] sasukepl:
mike you look some new about spiritfm for s4

Wysłane z mojego GT-I9505 za pomocą Tapatalk 4
[Spirit FM] Lagkage:
I am not sure what you mean, but Samsung Galaxy S4 don't have hardware capable of FM radio so Spirit won't work on it.
[Spirit FM] zviki:
Why SpiritFM doesn't work on LG p760 with TI OMAP 4430 processor? It has radio enabled by default on stock rom,but now I have CM 10.1 on it...
[Spirit FM] mikereidis:
Because the secret of enabling FM audio on most LG phones is not known.
[Spirit FM] James Bottomtooth III:
sudo start FM :D
[Spirit FM] aavvaallooss:
Working On Samsung Galaxy S III Mini

http://xdaforums.com/showthread.php?t=2411047
[Spirit FM] radiobuzzer:
RDS Pi and logs

Hi,

I just started using Spirit FM in my Galaxy S2. I have two questions which I didn't manage to find in the thread

(a) why PI, AF, and R indications are always 0 ?

(b) how is it possible to produce logs of the stations' frequencies RDS data etc that I listen to?

(c) how can I display the graphical equalizer?

best

Lefteris
[Spirit FM] mikereidis:
As posted there:

Audio-> Method setting should be automatic if ro.product.device starts with "GT-I819" (ie GT-I8190).

But I see the official name is "golden", so next release should set it automatically.

I've enabled "golden" on Google Play for anyone who wants the full Unlocked version of Spirit.

I can only support phones well when I see sufficient sales in the Google Play app stats.

CM ROMs may stock using the stock audio library at some point, as they have on other devices. When that happens FM audio will no longer work unless I devote time to it, and ideally buy a phone myself. But I can't/won't do that without sufficient sales, especially if I get bombarded with support requests and debug logs from pirates.
[Spirit FM] mikereidis:
Do you have Unlocked ? I search my order list for "Lefteris" and only see a 2012 Light order, and can't be sure that's you anyway.

I can get a bunch of answers quickly if you send a debug log. Use Menu-> Test-> Email-> Logs and press Send after 20 seconds.

Such as, GT-I9100 or 9100G ? Stock ROM or which ROM ? Rooted ?

For logs, Spirit puts new RDS data in the system logcat that can be extracted.

If you are using Spirit in digital audio mode, you can use any equalizer that works for other media apps.
[Spirit FM] mikereidis:
I got my new 2013 Nexus 7 tonight.

And flar2 built a custom version of his ElementalX kernel for it to enable the radio-iris-transport.ko FM module. Thanks flar2 !

His kernel & module worked perfectly.

As expected, once again it appears that both antenna pins are grounded and OTA FM is not possible without likely impractical hardware modifications.

Here's what I posted in his thread here: http://xdaforums.com/showpost.php?p=44800238&postcount=434

When the module is loaded, my FM app "works" with no errors, but RSSI is always -128 or 0. Seeks go to random frequencies.

There is no audio whatsoever. I can even set Spirit to digital audio mode and that "works" with no errors. I can record a WAV file, and it's full of zeros.

I would have thought there'd be some small audio hiss at least around 0, 1, -1 values. Either the chip kills audio completely when there is no signal, or it's disabled somehow else.

I guess the story is the same as for every other Nexus device ever, except the old HTC Desire/Nexus One. The FM antenna pins are connected to ground to disable all hope of OTA FM. On this chip there are even 2 pins for internal/external antennas and I tried both. Sadly, internal means phone internal and not chip internal.

I cracked open my 2012 N7 last year to see if some simple hardware mod might work, but the chip is under an RF shield and I didn't want the hassle of trying to open it. I suspect the 2013 N7 is the same.

And here I'm quoting my June 15 post on the new N7:
[Spirit FM] Zero_Shadow:
I just wanted to report back that I was able to get the audio working with the Galaxy SL/i9003 option with the latest UL its amazing I tried that option before and it didnt work that time weird.

If I could pick your brain once more mike (sorry) I would like to get Digital working so that I could use the recording function I am under the impression that a user with the 4.0 version of my device(Galaxy player 5.0) was able to get option to work (http://xdaforums.com/showpost.php?p=42950652&postcount=9) what would be required in the kernel to get Digital to work I also asked the user who posted this. Currently when I select Digital GS1 the headphone will pop (best way to describe it) as if it will come on but then nothing.

Thanks again for all your help

You right it is a small world :)
[Spirit FM] kingars:
Hi! This app works fine in one stock 4.3 Nexus 4?
[Spirit FM] buzzqw:
for anyone using boeffla kernel, like temasek, (or boeffla sound enabled) disable Direct DAC or Spirit Free will not work

BHH
[Spirit FM] mikereidis:
No.

Never can.

Never will.
[Spirit FM] mikereidis:
Galaxy S GT-I9000, and presumably Player devices with WM8994 audio chip, require Voodoo Sound support in the kernel for digital audio. And it can be "finicky" in large part because the WM8994 audio chip kernel driver must be bypassed to go to an even lower "direct codec write register" level.

Specifically, one of these "pseudo-files" must be present:

/sys/devices/virtual/misc/wm8994_sound/wm8994_write

/sys/devices/virtual/misc/voodoo_sound/wm8994_write

/sys/kernel/debug/asoc/smdkc110/wm8994-samsung-codec.4-001a/codec_reg

/sys/devices/platform/soc-audio.0/codec_reg
[Spirit FM] zaclimon:
I've already talked with him, thing is the galaxy player 5.0 has another DAC than the WM8994 on the original sgs series. From what I see, the 5.0 is most likely impossible to have the digital fm radio.

Envoyé depuis mon Nexus 7 en utilisant Tapatalk 4
[Spirit FM] spunker88:
Like you said, not many people own this USB tuner, but I have one and was playing around with it. I noticed the audio input part of this uses a generic driver in Windows so it may be worth a try in Android. I was able to record audio from the tuner using USB Audio Recorder Pro on Android which detected the tuner as usb audio device with the correct sampling rate autodetected. All it records is FM static since no station can be tuned on Android. I imagine a kernel driver is needed to control the tuner like you said, so actually tuning this thing would take a lot of work which wouldn't be worth it.
[Spirit FM] vladi-it:
About P880 I'm trying now, I don't know if it can help... no alsa trick, CM10.1 stable branch

speaker works only if you haven't the jack inside.

If you put the 90% of the jack you can hear normally your favorite station; speaker audio stop working only if the jack is "deep" inside.... :victory:

Ciao
[Spirit FM] mikereidis:
Yes, no WM8994 means no digital audio, unless some device has the same audio as GT-I9100 or other digital audio supported device.

The Player line has a lot of models in the Android dev console, and some of the more recent ones are rather different in circuitry/architecture.
[Spirit FM] mikereidis:
Yeah, it's just a standard USB sound card interface, and some ROMs/kernels support that; running aplay (on some ROMs) could be done from adb shell, just like on my Linux PCs.

I recall actually testing that I could control the FM from adb shell with a utility I built, and it worked.

But still, not worth my time, which is in short supply, unfortunately.
[Spirit FM] 7Aid:
Hi,

Could somebody share settings for Huawei Ascend G300 please? I run B952 firmware.

I launched Spirit Fm Free v 2013_08_12 (tried earlier versions too) and every time

error appears:

"Error: No FM accessible

SU:1 Fm:BC2 Su:0 Bt:1 Ht:0 Mo:BCU"

I've set audio method to msm7x30 Hua G300/MotXT557, similar errors appears on automatic settings.

Thanks for any info that could let me setup this app correctly.

Regards,

Adrian
[Spirit FM] KOLANICH:
Galaxy Note N7100 - no sound via phone speaker (hate headphones)
[Spirit FM] jlalande:
Verizon blocking FM on HTC One?

Just picked up a new HTC one at the Verizon store, and it looks like they are blocking FM radio on their HTC One.

The FM Radio app included with HTC One on ATT / Sprint / TMo is missing, and Spirit UL does not work. App launches and finds a radio, but cannot tune any stations (just get static where there should be signals).

Typical Verizon. Glad I waited 5 months for them to get this phone!
[Spirit FM] Pajaroide:
Wow! Best app, thank you! :laugh:
[Spirit FM] mikereidis:
Yeah, I was wondering if they'd do that; thanks for your report.

Is your phone unrooted ? If rooted, try setting Menu-> Settings-> Debug-> FM API to "Low Level".

Please send a debug log. Use Menu-> Test-> Email-> Logs and press Send after 20 seconds. Ideally I'd hope to get one log with Spirit set to all defaults, and another with FM API set to Low Level (again, only works if rooted.)

Verizon seems to be the only US carrier that actively sabotages OTA FM on HTC phones.
[Spirit FM] mikereidis:
So that's a stock ROM ? I think this phone may need root/SU and you either don't have that, or Spirit didn't get root permission.

Audio-> Method only fixes audio problems, not startup problems. For startup issues, Debug-> FM Chip, FM API and HCI Access are the most common adjustments.
[Spirit FM] mikereidis:
What ROM, and is it rooted ?

Send me a debug log with Menu-> Test-> Email-> Logs and press Send after 20 seconds.
[Spirit FM] jlalande:
The phone is unrooted. I'm not sure that I want to root it because I may be returning this phone and don't want to accidentally brick it.

I did go ahead and send you a log file with the default settings. If I change my mind and root the phone, I'll let you know what I find with the low-level API.

Thanks,

John
[Spirit FM] mikereidis:
Thanks for the log.

The Broadcom OEM Proprietary FM API is there, but RSSI is always 0 or 111 and only static can be heard.

The firmware file for the Broadcom FM/combo chip is the same variant on the latest Google Play edition of HTC One. IE, FM is disabled on it.

Spirit can work around that with root, assuming the FM antenna pins are not (IMO maliciously) grounded to disable them.

If the Verizon HTC One is similar to the other One's, then rooting and S-Offing shouldn't be too hard, or dangerous. I'd check the section for the Verizon variant to see how others are doing first though.
[Spirit FM] aavvaallooss:
Hello Mike!

Can you add the Samsung Galaxy S III Mini (GT-I8190 a.k.a Golden) to the compatibility list when you update it, please?

Thanks!
[Spirit FM] mikereidis:
Sure. I was not sure I would support it officially, but some good feedback from multiple people are pushing me in that direction.
[Spirit FM] Lagkage:
Do you have any plans for the S4 Mini?
[Spirit FM] Jonathan_l5:
Support Spirit FM LG L5

Endure at some point the phone LG L5 (E610, E612g,?).

Since LG has released the source code for your version ICS classes and includes FM radio
[Spirit FM] xmguy:
Too bad the Verizon Samsung Galaxy S4 isn't supported! :(

I'm holding out hope that the Verizon HTC One will be however!

---------- Post added at 06:11 PM ---------- Previous post was at 06:04 PM ----------

Please find out! I'm holding off getting the HTC One til I know 100% if it supports FM Radio or not. If it doesn't I'm getting the Motorola Droid Maxx.
[Spirit FM] aavvaallooss:
I would be eternally grateful if you´ll do so!
[Spirit FM] kakaana:
Which one to download????

Galaxy tab 2 p3100 jb 4.3

Country: India
[Spirit FM] mikereidis:
I haven't heard much GS4 Mini interest yet, and I try to concentrate on the most popular and highest end devices among custom ROM users.

If Spirit "magically works" on GS4 Mini with little or no work from me, that's great, and I will likely officially support it.

If I have time and requests, I may spend some time trying to get it working, even if I don't have the phone.

If I get sufficient requests from the "1st world" for any device, I'll buy it and support it fully.
[Spirit FM] mikereidis:
I don't know & I'm not that big on LG phones.

All the same issues for the GS4 mini in the post above apply to this, or any phone.
[Spirit FM] mikereidis:
None.

There is no usable FM on that device, nor on any Samsung tablet over 5" ever released. (Besides the 5" GT-N7000 Note and GT-N7100 Note2 and I guess the new Mega 6.3", and these can be called phones or "phablets", not tablets).
[Spirit FM] mikereidis:
An incompatible change is happening to the Broadcom OEM FM API for (mostly) un-rooted devices.

The HTC One stock Android 4.3 leak (via MaximusHD 12.1 ROM) shows this problem. Rooted and with Bluetooth off is still OK though.

EDIT: It looks like this may be mostly "cosmetic changes", mostly just changing the names of classes. Will require a Spirit update at minimum though.

EDIT2: No, it's more than cosmetic changes. Many methods and callbacks are the same, or similar, but some of the parameter lists have changed. I'd call this part of the ongoing evolution of the Broadcom OEM FM API; there is already code in Spirit which handles some of these differences on HTC and LG devices.

As I've long said, if Spirit didn't update for 3 months, I think it would be broken on maybe 50% of devices, though mostly on custom ROMs, and this is a stock ROM issue. Seems similar to "bit rot", but due to rapid changes in system software, instead of storage media decay.

Damn, I think it's time to retire from this crazy catch up game, or at least move on to Spirit2 and concentrate on a smaller number of devices. LOL.

And the Emmis/Sprint NextRadio app still works; it just sends some command Intents to the HTC FM service.
[Spirit FM] xmguy:
Done. Let's work that Mike Reid FMagic!

Sent from my (Verizon) Samsung Galaxy S4 using the XDA app!
[Spirit FM] xmguy:
Once I get a phone that supports Spirit again (Verizon HTC One or Droid 3). I would be willing to OPT-IN! :)
[Spirit FM] aavvaallooss:
Opt-In!!!
[Spirit FM] xmguy:
Mike would you support the Casio GzOne Commando 4G Verizon? Officially supports FM Radio.

Sent from my (Verizon) Samsung Galaxy S4 using the XDA app!
[Spirit FM] mikereidis:
I have no plans for official support. The original Commando didn't sell too well, Spirit only half worked on it w/ no audio, and I've heard exactly zero "buzz" about this followup.

BUT... If it uses pretty much the Qualcomm reference design for FM, like the HTC OneX LTE, OneS, as well as some Sony and LG's do *, then the existing support should work, with digital audio on rooted phones at least.

(* And LOTS more WOULD work, if the WCN3660 FM antenna pins weren't maliciously grounded, as we seen on the very popular Nexus 4, Nexus 7 2013, and several quite popular LG, Googorola and other OEM phones).

If this is a higher end component device, a Qualcomm reference design w/ WCN3660 FM and WDC9310 type audio is a good chance; original Commando was a ref design using the then obscure Qualcomm FM/BT combo, and Casio is a small player (outside of Japan ?), so they're much less likely to create a one-off design.

And this Qualcomm combo is very popular at high end this year, though Broadcom continues to be very successful in selling their FM/combo chips over the "integrated" Qualcomm companion chips. The Qualcomm to Qualcomm audio path is well defined, unlike Qualcomm to Broadcom, and I can't reverse engineer all the crazy combinations, just important ones like HTC One.
[Spirit FM] cagrimir:
Do you have plans for LG Optimus G Pro?

LG-E986 cihazımdan Tapatalk 4 ile gönderildi
[Spirit FM] mikereidis:
EDIT: I just received an unsuccessful debug log from a stock, unrooted G2 user. It may be the Broadcom changes I see on the HTC One Android 4.3 leak I posted about in post #6701. But there are usually different issues and Spirit support statuses for stock, unrooted ROMs versus AOSP ROMs.

See post #6706 right before yours for pretty much the same story.

If it works, it works. I think it might be the popular Qualcomm architecture same as on the Optimus G, which has at least one rare-ish variant that connects the FM antenna pin properly.

If it doesn't work with those settings, I'm not likely to put much time into investigating it.

If it became particularly popular among custom ROM users, I'd reconsider, but Optimus G was mostly shunned in favor of the almost identical and much cheaper Nexus 4.
[Spirit FM] Daniel Barcelos:
I have an unrooted stock HTC One (Android 4.2.2, with Sense, Blinkfeed, etc.). What should I do to make Spirit FM work over bluetooth?

Need I to root my phone? If possible, I do not intend to change my ROM (keep Android 4.2.2).

Regards,
[Spirit FM] mikereidis:
First, I'll assume it's not a Verizon One. This variant seems incapable of FM.

Second, you need the Unlocked version of Spirit.

You need to root the phone and give Spirit SU/root privilege.

Then, set Menu-> Settings-> Audio-> Method to "Digital Auto" and restart Spirit.

If the A2DP BT headset is paired and connected, FM audio should go through it now.

Ensure the wired headset is plugged in for the antenna. The metal case makes operation without impossible.
[Spirit FM] JustArchi:
Hey mike.

First of all thank you for your awesome work.

Do you plan to take a look at Android 4.3 f.e. for Samsung Galaxy S3? Available as CM-10.2. Maybe it would help with trying to catch changes between 4.2.2 and 4.3 in terms of FM.

Spirit FM worked great in 4.2.2 but doesn't with 4.3.

If you need any specific information just let me know.

Cheers.
[Spirit FM] mikereidis:
Works fine for me, and the GT-I9300 has been my "phone" phone for a few weeks. Been running most of my top phones on CM10.2 nightlies since before they were nightly. Currently 0826 nightly and downloading 0827.

There's nothing inherent to Android versions for FM, since Google does not support FM at all.
[Spirit FM] nicesoni_ash:
Works fine here too on cm10.2.

_____________

Sent from my GT-I9300 powered by 7000mAh ZeroLemon Battery

Fueled by Temasek Rom & Kernel
[Spirit FM] guhvanoh:
And as good things come in 3s, it works here for me...
[Spirit FM] JustArchi:
Thank you for an answer. Probably there's something on my side then.
[Spirit FM] sinkingfish:
Any sign of support for the One X+ on custom roms, specifically CM?
[Spirit FM] mikereidis:
Probably.

As always, if you're a customer, send me a debug log with Menu-> Test-> Email-> Logs and press Send after 20 seconds.
[Spirit FM] mikereidis:
Hmm, is there some reason I'm suddenly getting a lot of questions about OneX+ ?

I don't think I've ever been able to enable FM audio on OneX+, except on stock ROMs.

The audio driver looks almost identical to the one for OneX International. But that audio method does not work.

That's where it stands, and I'm not sure there will be any resolution, unless and until someone with this phone determines the secret.
[Spirit FM] sinkingfish:
Thanks for the answer, a real shame... If there's anything I can do to help debug, just say.

I guess maybe the influx of questions might be because the HOX+ went official CM recently.
[Spirit FM] JustArchi:
You're right. I've just prepared ultra-clean and it works fine. Sorry for bothering you mike. Stay awesome :).
[Spirit FM] mikereidis:
New phones:

A helpful person with access to several new phones has sent me debug logs and success/failure reports. Thanks ! :)

These are all stock and unrooted.

Galaxy Note 3 LTE SM-N9005: No stock FM app included and Spirit won't run. Uses a Broadcom combo chip. When rooted I'd bet I find the FM antenna pin is grounded, same as on all GS4 variants.

Sony Xperia Z1 Honami: Works fine with Audio-> Method set to "Sony Z...".

Sony Xperia Z Ultra: Works fine with Audio-> Method set to "Sony Z...".

HTC One Mini: Works fine.

Also I've seen Xperia M works, but not sure about audio yet. Uses Qualcomm OEM API, but Qualcomm low level may also work on stock, unrooted, as well as "STE/Android" API.
[Spirit FM] aavvaallooss:
None? ;)
[Spirit FM] mikereidis:
Check again.

I try to reserve posts that end in number 1 for info I link from post #1.
[Spirit FM] mikereidis:
I'm sure you're right.

What's frustrating is that the ALSA audio driver controls look exactly the same as OneX International.

EDIT: There's only 5 ALSA controls, so all I can think of is sending different values to a few of them. Maybe I can post an update with test functions that allow trying different values. Then again, the config files I've looked at seem to indicate control numbers are the same.

And I've got all these recent HTC phones for testing, and they all have different FM chips and FM/audio architectures: OneX International, OneX LTE, One.

The X+ has 2 variants (I think ? LTE ? enrc2b vs evitareul) and seems less popular than any of these 3 HTC phones I have.

So I have no plans to buy a OneX+. I still kind of regret getting the OneX International with the same Tegra, in part because the audio chip is mysterious and mostly inaccessible, which has resulted in no digital FM audio on a recent high end device. All other recent high end devices I've bought in 2012 & 2013 have digital audio in Spirit.
[Spirit FM] mikereidis:
Try this test release: http://d-h.st/imM

If still no audio, try these Audio-> Method settings:

HTC OneX/X+ Int

HTC OneX/X+ Int ALSA

Sony/QC Intent
[Spirit FM] xmguy:
My take on FM and carriers blocking it... "

I use my 12GB per month (of unlimited) for streaming radio only. With a bit of YouTube in there too. But it adds up. FM radio doesn't use data. Simply put carriers and FM radio is kind of like the prohibition of the 20s. The government didn't care if people drank. But when they couldn't tax it that's when they started prohibition. Same for FM since the carriers can't charge a monthly use fee then they block it. If they could ever get money from FM radio use they'd be all for it!"

Sent from my (Verizon) Samsung Galaxy S4 using the XDA app!
[Spirit FM] mervluk:
I think in Europe (at least) it's not quite so naked commercial. Quite simply the authorities want to refarm the spectrum for data services. FM, convenient as it is for consumers, is an inefficient use of spectrum. That's why cars replaced horses as a means of mass transport. It's called progress. As usual, whenever humans are involved, everything is out of synch, though.
[Spirit FM] danielalarcon:
Hey Mike! I finally took the chance and moved my S3 from CM 10.1 to CM 10.2.

Mostly all stuff works fine, Spirit included, however, I noticed a behaviour that happened a long ago on CM 10.1 .. and that is whenever I listen to Spirit FM, and I stop the app as normally, I can't get any sound out from the speaker or call speaker untill I reboot. Once rebooted everything works fine.

Let me know if you need me to try any debug log.
[Spirit FM] Lagkage:
A solution to this is to enable Power restart media in the debug settings, but i don't think it should be needed on the GS3.
[Spirit FM] mikereidis:
If you're a customer you can Menu-> Test-> Email-> Logs.

It works fine on my GT-I9300, running the latest CM10.2 with just about everything set to default.

If you have Unlocked you can set Audio-> Method to "Digital Auto" and see if that helps.
[Spirit FM] danielalarcon:
1. Yes, I have the UL version

2. I enabled the suggestion of power media and worked, I had it set to automatic then changed it to enable

3. Set it back again to auto and now it works, I tried several restarts and scenarios :)

4. I use digital audio since a few months back, works like a charm

I will send a log anyway in case there's something there to find.

Thanks for answering! Great support as always.
[Spirit FM] mikereidis:
GT-I9300 works fine on CM10.2.

Maybe there's an issue with the Googy kernel. Someone with an S+ fixed audio problems with "changed governor on ondemand and i/o to noop".
[Spirit FM] mikereidis:
I don't know if it's you, but I think I've had at least 1 other report.

GT-I9300 Slim 4.2.2 v8 works fine for me, with original kernel as well as Googy Max 1.7.0, set to all defaults.

The only problem I see is with Slim-i9300-4.3.beta.4-WEEKLY-409 and that's with digital audio. Default non-digital audio works OK though.