yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Motorola/Verizon Bionic Jelly Bean update disables FM on un-rooted devices. There is nothing I can do about that, except recommend considering rooting if you want FM.

Spirit still works on rooted Bionics with the JB update. Of course I can't guarantee Google/Motorola/Verizon won't further cripple FM in future updates. If they disabled the /dev/tifm kernel driver, a custom kernel would be needed.

If they disabled the historic FM audio support, I would likely give up; There's an ALSA driver but my few attempts to use it, without a Bionic in my hands, have failed in the past.

The FMRadioService was removed, at least. I was surprised it was there in the first place, given no official FM support. Likely, they decided to clean up and/or free up some space.

Because of this, none of the Motorola FM apps that worked before will work now. AFAIK, Spirit is the only FM app that will work now, and it requires SU/root.

I will be interested to see if this noticeably affects the Spirit stats for the Bionic.
[Spirit FM] antonio89drop:
Hello

Sorry if I could not answer before.

You've understood what I wanted to say.

I tried again on the Galaxy S3 with MediaRecorder method since I did not root by setting the sound level in 3 of 15 but the problems of audio Recording from FM Radio sounds persist with input and different volumes on the two audio channels.

Are you sure that with the PCM method these problems are not there and you have a great audio in stereo Recording from FM Radio ?

I wanted to ask if you feel are most appropriate (such as fewer problems) for Fm Radio Recording from your Xperia P or the Galaxy S3 ?

As always expect a reply.

Thank you.
[Spirit FM] mikereidis:
I've uploaded some recorded audio files, 360 MB: http://d-h.st/iU2

Yes, GS3 sounds good when rooted w/ PCM. I note though that after going back to Mediarecorder/stock FM recording, it ends up over-driven. A reboot fixes. The Samsung audio library must change some volume control that allows a good recording with volume at 7, and Spirit doesn't change it.

If you want stereo recordings, the Xperia P works fine and reliably, and without root. The hard work is done in the audio library that Sony built.

My PCM code is a "hack", as long as it's not integrated within an audio library. Hacks always have more problems.

Running these test, I saw a variety of issues that will take some time to address. I saw 0 KB files created on GS3 after switching back and forth between PCM and mediarecorder. A re-boot can fix this. I also saw some WAV files that were at least 8 minutes long, yet their header info indicated they were only about 24-28 seconds long. I don't know why this bug is happening yet.

Here's some notes about the recording files I uploaded. I ran the stock MP4 tests with all Spirit defaults after denying SU and rebooting.

I ran the PCM WAV tests with all Spirit defaults except Audio-> Method was set to Digital Auto, allowed SU and rebooted.

Generally the tests were run with volume at 7 of 15. Volume didn't matter, except on the stock GS2 and GS3 with no SU and thus using stock mediarecorder.

AT&T OneX LTE w/ stock derived JB

oxl_digtl.wav : Good but only 22.05 KHz.

Xperia P w/ stock ICS

sxp_stock.mp4 : Good.

Galaxy S w/ CM10.1 April 19

gs1_digtl.wav : Shortened to 28 seconds and skips a bit.

Galaxy Note w/ CM10.1 April 19

gn1_digtl.wav : Shortened to 28 seconds.

gn1_digtl2.wav : Good.

Galaxy S2 w/ stock derived JB

gs2_stock.mp4 : Volume sensitive & over-driven in parts.

gs2_digtl.wav : Shortened to 28 seconds.

Galaxy S3 w/ stock derived JB

gs3_stock.mp4 : Volume sensitive & Right channel only.

gs3_stock2.mp4 : Over-driven in parts and Left channel only.

gs3_digtl.wav : Good.

gs3_digtl2.wav : Very over-driven as result of switching without reset.
[Spirit FM] mikereidis:
Spirit Free 0420: http://d-h.st/X3q

Also on Play.

- Minor mods including warning about Android 4.1 JellyBean update FM loss on un-rooted Motorola Bionic.
[Spirit FM] downloader50:
Hi Mike

Just installed the latest free version on my HTC HD2 running this rom NexusHD2-ICS-CM9-HWA and it is a vast improvement on the older version. Going to buy the full version just a question will the full version auto update from play?
[Spirit FM] Caio09:
Hi mike thank u for answer.

Unfortunately my device crash when i try to send ther logs.:( and the screen stops like in the image that i post.

Now i try the release 20/04... can you suggest me an initial configuration?

thanks
[Spirit FM] 089man:
Hi mike, Thx. for the

New update on play store.

No issues at this time on my s2 9100 and my Rom. Works perfectly.

I9100 Tapatalk 2, Rom2 CarbonRom / Rom1 jbam 7.5 Kernel Dorimanx
[Spirit FM] mikereidis:
Yes, just like any Play app, assuming you have Play set to auto-update.

Which previous version and what was the problem ? I've changed relatively little.
[Spirit FM] mikereidis:
Hmmm. Someone else said that Email-> Logs was hanging.

If you can get files in this directory, they'll give a clue why it's hanging:

Unlocked: /data/data/com.mikersmicros.fm_unlock/cache

Light: /data/data/com.mikersmicros.fm_li/cache

Free: /data/data/com.mikersmicros.fm_fr/cache

Files should be like sprt_log0.txt & sprt_log1.txt but just grab them all and send.

You could also try using a Logcat app and capture it's output.

Generally speaking, Spirit should self-configure as needed. I'd prefer not to offer any config ideas until I see a debug log.

Can you at least grab and send the /system/build.prop file ? The "ro.product.device" variable will let me search my email for any similar debug logs. Or if you just send me a link to where you got the ROM I can download it and look. There are quite a few different Galaxy Players and I guess the hardware for FM might be different on some.
[Spirit FM] mikereidis:
Source code for GS4 kernels has been released: GT-I9500, GT-I9505 and SGH-1337M. My guess is that the first device shipments will have kernels based on this released version.

For GT-I9500 only, there are GPIO definitions for GPIO_FM_SCL_18V and GPIO_FM_SDA_18V in these files, all under arch/arm/mach-exynos/include/mach/:

gpio-exynos5410-j-cu-rev00.h

gpio-exynos5410-lte-jpn-rev00.h

gpio-exynos5410-j-ctc-rev00.h

gpio-exynos5410-3g-rev00.h

gpio-exynos5410-lte-kor-rev00.h

gpio-exynos5410-lte-rev00.h

gpio-ha-3g-rev00.h

But not these:

gpio-v1-3g-rev00.h

gpio-v1-lte-rev00.h

gpio-v1-wifi-rev00.h

I think this indicates there are si470x FM chips in some GT-I9500's, or at least there were plans for FM.

Usually there should also be GPIOs for FM Interrupt and Reset, but I see none.

BUT,... there is no sign of si470x FM chip drivers in the kernel config, as there was for GS, GS2 and GS3.

And nothing else in the kernel trees uses the FM_GPIO definitions. In previous devices, there are special Samsung specific (non V4L) drivers for Si4709, or on GS3 and Note2 for Si4705.

All of this strengthens my thoughts that there at least WERE plans for FM. FM chips may or may not be present in shipping GT-I9500s, and official support for FM may or may not be there. I'll be very interested to see the first detailed tear-downs.

-----

As for FM support on the BCM4335 combo chips, including on variants other than GT-I9500:

As expected there are WiFi and BT drivers enabled for BCM4335 combo chip.

In the past there has virtually never been kernel drivers for the FM portion of BCM Broadcom combo chips. The stock FM library code is combined with the BT code in Broadcoms' proprietary BT/FM stack.

So, there may still be usable FM if the BCM4335 FM antenna pin is connected somewhere useful.

But I'm getting more and more pessimistic every day. As soon as I get debug logs I'll be able to say more. If you get an S4, and particularly if it's rooted, please email; thanks...

I may get an HTC One as my 2013 phone if FM is not possible.
[Spirit FM] Alucard:
Hey mate,I don't know how but latest updates work better on p970 lg cm10.1 official ROM,it seems that antenna receives the radio signals because the app shows letters from any station,but only audio is not working ,in cm7 for some reason Bluetooth was necessary, if u have the time please take a look if u can make it work.
[Spirit FM] Midomad:
Is spirit fm working on galaxy nexus?

Envoyé depuis mon GT-I9100 avec Tapatalk
[Spirit FM] Lord Kalma:
Just a question. Is there anyway I can add a playlist or presets manually editing the xml? I don't know xml, but if you can give me an explined example I can make the rest.

Thanks in advance

EDIT: Figured out myself, thanks anyway.
[Spirit FM] Imanuelt:
htc

will it work on htc sensation xe?
[Spirit FM] dk147in:
with the latest update the lockscreen widget to change stations are not appearing, however it is enable under setting.
[Spirit FM] srspinho:
Hi Mike !

thank you for the support !

I sent you an email (to your gmail account) with the subject : "Spirit FM Unlocked Version Logs from Brazil."

Inside the zip file attached, you will find the Spirit logs, the ROM download address and the build prop file.

I hope tha logs can help you !

My best Regards,

Sérgio
[Spirit FM] mikereidis:
Thanks.

I see this on CM and will investigate. Previous Play version April 8 seems OK.
[Spirit FM] mikereidis:
What improved ? You're at least the 2nd person to say it improved, but I'd like to know what improved.

I'm afraid I've pretty much given up on LG, and I don't think I should try to start supporting phones I haven't supported in over a year. (Though I did take one last try in November/December.)

I have more than enough work dealing with other phones. Perhaps someone in the LG community can help.
[Spirit FM] mikereidis:
No.

The only Nexus that has ever been FM capable has been Nexus One (HTC Desire). Even that requires a custom non-stock kernel, since Google has always refused to help even the smallest bit in regards to FM.
[Spirit FM] mikereidis:
Great ! :)

As you've seen, it's not too complicated. I've been hoping to improve it, and/or make it a separate XML file (for backup).

But it still has the original 2011 format. If/when I support more per station features it will likely change. But that's more likely at least 6 months away in Spirit2.
[Spirit FM] mikereidis:
Yes it should. It's not explicitly listed in the current compatibility list, but was in a previous one. I'll add it.

I guess the device name is "pyramid", also used for "Sensation 4G".

But it's "Sensation XE with Beats Audio Z715e"

And I guess this is different than "runnymede" aka "HTC Sensation XL X315e".
[Spirit FM] Lord Kalma:
Yeah, it was easy... I even made a python scipt to generate xml code from a text file with the stations name and frequency. Then i just have to add the generated code to the file and edit the line:

<int name="list_number" value="n" />

to the proper n

Yes, i am THAT lazy even to write the presets. I can share the code it you want, but as it was written for personal use, it has some assumptions to run: python3 required, the station name and frequencie MUST be separated by a tab and other small details.. but it works.

Btw:

Thanks for your work, it's great!
[Spirit FM] mikereidis:
Thanks, not needed.

If Band is set to one of the "World..." entries, and you have Unlocked, the preset names should be set to RDS PS, which I guess in Europe at least is usually some station ID.

I'll likely do the same for US & Canadian call signs soon. At some point I'd like to support RDS+ and likely get info from an online database of station names, referenced by RDS PI.
[Spirit FM] dk147in:
Thanks
[Spirit FM] Alucard:
Yeah mate the only issue is to find maybe drivers to make the received radio waves to be converted to audio cause they are received by the antenna since the sentences from the radio station are shown,i say again for some reason fm radio on cm7 had to activate bluetooth i dont know if that happened to other phones too,i made a new thread to p970 forum to see if anyone better than me can help.Any suggestions of how we can help u so that u dont have to do that much of a big job?
[Spirit FM] mikereidis:
The CM7 FM app has to go through Bluetooth. Spirit added a "fancy UART feature" to go lower level, as long as Bluetooth isn't needed.

No suggestions. If someone with the skills can find the time to figure it out, it will be figured out.
[Spirit FM] mikereidis:
A bug disabled Audio Focus, and likely caused other issues. See April 21 release.

If anyone found that this bug improved audio, disable Audio Focus and please let me know.
[Spirit FM] mikereidis:
Spirit Free April 21: http://d-h.st/JmO

Also on Play.

- Fixed the disabled Audio Focus as well as Lockscreen controls.
[Spirit FM] Caio09:
Hi Mike,

at this link i thake the ROM for my player : http://xdaforums.com/showthread.php?t=2235446.

i also attach the 3 file sprt_log0 , sptr_log1 and build.prop file.

Thanks for the support.
[Spirit FM] antonio89drop:
Hello

Thank you very much Mike for having made available on the various test your smartphone.

I wanted to ask about this at a peak detachment "gs3_digtl.wav" at the time was 3:19 this detachment of fm radio or a recording error of Spirit Fm??

If the answer is the second you wonder if this is common?

Thank you very much for tests with which I could see once again your good work.
[Spirit FM] Boaty:
Am I the only one experiencing problems with the phone functionality after using spirit fm on a i9300 with cm10.1? It is only fixed after reinstalling the modem.
[Spirit FM] mikereidis:
I had not noticed. It looks like some defect in the digital recording.

It looks like around 9340 sample or so are missing and zero'd.

I think such a defect is relatively rare on GS3 and may be related to CPU load.

The GS1 CPU doesn't have enough power sometimes, but that results in audio that jumps forward. It doesn't result in silent sections.

I'll watch more for this. But clearly, digital audio and recording can be tricky and it will take some time to improve. The kernel has the biggest impact. Some kernels will just crash after 3-15 minutes.
[Spirit FM] mikereidis:
Possibly not, but most people don't change their modems too often. I'm regularly surprised by how long a bug can continue before someone reports it or until I realize how many people it might affect.

BUT..., the modem ? IE, the cellular radio or baseband ?

I've never heard that re-installing a modem fixed anything, and it's difficult to imagine how it might help.

If the problem returns, can you pull the battery for 5-15 minutes to see if that fixes ?

What exactly is the problem ?
[Spirit FM] Boaty:
The problem is that I cannot hear anything when making a call after using spirit fm. I have created a logcat and it seems that the output device unless removement of the headset is still set at headset for some reason, also other apps that use the speaker stay using the headphones also when the headphone is detached. The removing of the headphone is however detected by the phone while the playing of the music stops. Restarting the device fixes this so reinstalling the modem via a zip file also fixes it :D. Hereby I attach a part of the logcat from starting spirit fm, closing it, remove the headphone and making a call.
[Spirit FM] mikereidis:
You are using the digital audio mode. Plugging and un-plugging the headset can cause some issues in digital mode.

A brute force fix could be to enable Debug-> Power Restart Media. That should reset the Android audio system when FM is turned off.

I can look closer if you send me a debug log. Use Menu-> Test-> Email-> Logs and after 20 seconds or so press Send.
[Spirit FM] radiobuzzer:
Samsung galaxy S3 Mini

I have read your (negative) opinion on Samsung galaxy SIII mini, but I may be buying it soon, as I need something smaller than 4.3" and this one has the best features for its size and only for ~200 euros which as far as my pocket can afford. I have also seen you do not support this device, but do you at least have any information on how compatible it is with Spirit FM? If there is any positive suspicion I would be happy to buy Spirit Unlocked and also get back with a compatibility report.
[Spirit FM] mikereidis:
I personally would buy a used GT-I9100, or even something like the Xperia P or U before an S3 mini, but everybody has different needs.

Try the free version, and let me know: http://d-h.st/JmO

But even if it worked perfectly I don't think I'll enable it on Play. There are even phones like HTC First I'm looking to disable now because I just don't have the time for new devices.

(And yes, to my surprise the Facebook phone: HTC First has FM radio, and with recording, perhaps a 1st or 2nd stock FM recordable phone for HTC.)

I think the S3 mini has an ST-Ericsson NovaThor chipset (like the Xperia P) and a CG2900 FM/combo chip.

If the kernel uses a V4L driver, it's possible the V4L code I have for Qualcomm WCN36xx might work partially. I have no idea if any of the Audio-> Method settings will enable FM audio.
[Spirit FM] dk147in:
YES now working perfectly.

thanks
[Spirit FM] Boaty:
The brute force fix indeed solves the problem. I have sent you a log via mail. Thnx allready for the quick response.
[Spirit FM] mikereidis:
Spirit Free April 24: http://d-h.st/bRF

Not on Play pending further testing.

- Attempt to support Intel devices such as Motorola Razr I XT890.

May restore FM for rooted Razr I's after JB update, but must be rooted. EDIT: Works but no audio.

- US / Canada RDS call letters used as preset names, but RDS only available on Spirit Unlocked.
[Spirit FM] avishekt:
Sgw i8150 + cm 10

Hi Mike,

I'm using the unlocked version for quite some time now. Thanks for your mind blowing work !!!

I'm using SGW I8250 with CM 10 and method=qdsp5v2 Altern (Digital Auto is not working).. Using World band..

While listening to FM, if any phone call comes I am not able to hear anything.... I have to close app and then I can hear other android sound.

This problem is there for quite sometime now.

Any solution yet?

Avishek Thakur

Galaxy W I8150

DXLM2

CyanogenMod 10
[Spirit FM] mikereidis:
Hi, Digital won't work.

Have you always had this problem, or did it start after a certain release ?

Can you mute the FM, then take a phone call ? If not, try again after setting Debug-> Audio Focus to "Enable + Pause Return" and restart Spirit.

If this problem started within the last few months, it's possible that enabling Debug-> Phone State and restarting Spirit might help.

And... you might as well give a shot to enabling Debug-> AM Mute Off and restarting Spirit if nothing else helps.

If audio ends up in a bad state after FM off, try enabling Debug-> Power Restart Media.

That should be enough Debug setting ideas. :)
[Spirit FM] N00BY0815:
Hey man, how about support for the LG P970? I would gladly help you to get it working, because I simply love CM10.1 and one of the things, that are missing, is fm radio. So please help us out on that and I ll see, what me and the rest of the community can do for you ;)

Sent from my battery eating android monster!
[Spirit FM] mikereidis:
How about it ? I've spent dozens of hours trying, with not much result.

I gave up. I don't even have this phone, nor frankly the time to do anything more.

If you want to try, please do.

Search this thread, and others if you wish, for lots of related info.
[Spirit FM] insulae:
question about S2

2 questions:

I can use Spirit on a Galaxy S2 (i9100 international) with external speaker? I run some risk of breaking the device like Galaxy S?

could tune the same or less than a stock FM apk?

i want to back to CM10.1 but i need FM radio.

Grettings!
[Spirit FM] mikereidis:
I count 3 question marks ("?"). :)

Yes.

No. That problem is unique to GT-I9000.

Spirit does everything stock does, and a bunch more. There's more RDS info, no requirement to plug headset, and experimental but decent digital features like bluetooth, EQ, waveform and frequency visualizer.
[Spirit FM] insulae:
in Spanish are just 2, perhaps the translation added one more, hahahaha. :D

thanks for the info I will try the free one, and then buy you the unlocked.

New question: still prefer play instead of paypal? I prefer paypal :D

Grettings!
[Spirit FM] mikereidis:
Google Play is still preferred and the source of 99% of customers.

I try to limit the 1% of Paypal users to those who have no CC or whatever and can't use Play.
[Spirit FM] insulae:
I bought spirit, is my first purchase on play store, I bought it because you deserve it. Thank you!
[Spirit FM] mikereidis:
My post copied from a GS4 FM thread: http://xdaforums.com/showthread.php?p=40711077

It's preliminary, but the chipworks GT-I9500 teardown is up: http://www.chipworks.com/blog/recentteardowns/2013/04/25/inside-the-samsung-galaxy-s4/

Bunch of chips identified. No mention of any Silicon Labs FM chip, but they don't even note the known BCM4335 combo chip yet either.

I hope/presume we'll find out one way or another soon. Then hopefully we can find out if Broadcom chip has an FM antenna connection. The those of us needing FM can go look at One's or Zperia Z's or whatever.
[Spirit FM] mikereidis:
I hate PMs. If you're a Free user, then post. Customers can post or email if they wish.

Isn't Pacman up to v. 22.1.0 now ? I'd advise updating.

Beyond that, if there's an alternate kernel or ROM you can try, that can help determine the solution.

A few people have recently mentioned issues with Pacman on Galaxy Players, which is unusual because they have always been rare devices. A quick search here and in my email didn't turn up a resolution for the recent reports.
[Spirit FM] zaclimon:
Actually latest pacman for 4.1.2 is 19.3.0 and 4.2 hasn't been ported yet... I've tried with CM10 as well and it doesn't work too. I will try an older version of the free one to really see if it's a problem with the device or app.

EDIT: Ok I've tried the 0323 build and I think i've found the culprit. Is your new digital audio thing needs some specific tweaking or something like this? Because so far when i'm pressing danger instead of digital, it works but when I choose digital, my devices freezes and restarts.

EDIT2: It seems that I can listen to digital when I choose it but it freezes and reboots when I check it, so I think the problem is how the system handles digital or how the digital system works. It's just my point of view on this so any explication would be helpful.
[Spirit FM] mikereidis:
"Danger" is the older, more "reliable" analog method of enabling FM audio. Unfortunately a smallish minority of GT-I9000 users have had speakers broken using it. I've never had a report of damage from a Player, but Galaxy S vastly outnumbers Player by about 80:1 .

In the last 6-8 months I get about 1 damage report every month, but last might have been 2 months now. That's small given the massive numbers of I9000's.

"Digital" is a newer, hopefully speaker damage free (no re reports yet) alternative that has other pluses, like BT headset support. It runs a LOT of code fast and so it causes some kernels to crash; I think lately notably Semaphore. CM10.1 stock kernels, and some others seem fine.

Another issue is that the high CPU usage can contribute to problems when other apps are doing a lot. Basically, when not much happens in the background, as on my test phone which isn't used as a normal phone, the CPU becomes uncomfortably close to fully used (say 50-80%) when screen is on, BT and equalizer and some visualizer are all running at once.

IE, Galaxy S (& most Players I guess) is showing it's age when trying to use Spirit in a digital audio mode. It's much smoother on GS2, and hardly notice-able on GS3.
[Spirit FM] zaclimon:
Alright so from what I've read, it would be better to keep analog. However I can't really change digital to analog with newer free spirit (0420 I think) so it results as a direct freeze and reboot upon opening it. So for the time being I will use 0323. Also I think a 3.0 kernel port will bring much more optimization so hopefully I can try to run digital (I know i'm at JB and we still don't have 3.0 kernel... -.-) :p

Anyway thanks for your help. :good:

EDIT: I know this is off topic but just knowing, do you live in ottawa or gatineau (judging from national capital region)