yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Yes, Spirit should work, and at least you should see the RSSI at top left go over 20 when tuned to a strong station. RDS requires the Unlocked version.

I have an N7 myself, the only Android device of 20 I have without FM. And I'd been planning to try and crack open the RF shield myself, but never went that far. I touched the PCB in that area with my fingers and saw no effect. I tried to poke an insulated wire inside but wasn't able to crack a gap open enough.

The N7 uses a "module" (I think AzureWave) for BT/WiFi/FM and I recall that specific module DOES support FM with an Rx antenna pin. I think the module isn't much more than the BCM4330 chip. I guess it was used so Google could get an FCC etc. certified device to market as soon as they could.

Audio could be a challenge. The /dev/snd/controlC1 ALSA driver doesn't show anything with "FM" in the name, but perhaps "IN1" or "IN2" might work, if we were lucky. I have doubts, due to the likely need for analog audio connections to the BCM4330 (or digital ?) and my doubts that the planned Asus device that became N7 would support FM.

And further, Nvidia architecture is foreign to me, and very much undocumented and little known.

Hypothetically it's possible that audio could be output via Bluetooth, with data never leaving the BCM4330 chip. Somebody doing rev-enging showed me how to output low voice quality BT audio on BCM4325, but I haven't really been delving into the 4330 possibilities.

The Asus TF101 actually seems to have working FM (I was surprised to see), but without audio, although I've never dived into trying to figure out the audio, due to little interest for FM on TF101.

Nexus 7 schematic ? Great ! Found the 44 page PDF. But disheartening to see "REMOVE FM I2S 0609", "remove FM" and "remove FM audio interface". And the NC X's for antennas, FM_AUDIO_L & FM_AUDIO_R... :(

With your surfacemount skills and tools I'd guess that if anyone could add an antenna, it'd be you. :)

If all else fails, maybe some space could be found inside for a USB FM device with a Silicon labs chip; and then we'd need a V4L kernel driver.
[Spirit FM] deeppans:
Hi Mike

Thanks for keeping FM alive on many devices.

I have Galaxy S i9000, I am aware of Speaker issue. I used to set Settings -> Debug - > Galasy S method to Safer. However I cannot see that option now. Wherein Popup comes in having options like Safer, Better, etc.

Couple of months back when I was using the said options where there.

Can you please help me.

TIA.
[Spirit FM] antonio89drop:
For

"mikereidis"

You might have a list of smartphones that support recording from FM radio?

And which of them support recording FM Radio with Stereo?

Then the maximum bitrate recording which is supported?

And the highest attended KHz sampling?

Thanks in advance for your answer!

Last thing when you plan to release Spirit FM 2?

Thanks again for your wonderful work expect a reply.
[Spirit FM] Typhoe:
Hi,

I own a Samsung Galaxy S3 International which seems to be in the supported list of devices.

It's running the new CyanogenMod 10.1 (nightly from december the 17th).

When I try to launch the version from "December 11 Free", it takes a few seconds (asks me if I want to kill it in fact), then if I wait, I get an error message "Error: No FM accessible SU: 1 Fm:SLS Su:0 Bt:0 Ht:0 Mo:SLS"...

Could it be caused by a problem accessing root access on the phone?

Supersu seems buggy for now on this version of CyanogenMod...

Or is it not supported yet?

Best regards,

Typhoe

---------- Post added at 09:54 PM ---------- Previous post was at 09:09 PM ----------

Reinstalling SuperSu solved my problem...

Thanks for this app!
[Spirit FM] mikereidis:
Hi. Wow, it was really quiet here, then bam, 3 posts. Perhaps a Christmas season post-weekend effect. :)

Those options are long gone. I'm not sure there was much difference, and after the last round of changes, the only "sub-method" left is more or less "safer".

I still get reports, had 1 a week ago or so, but the frequency seems to have dropped to one every 3 weeks or so, from the original once per week.

Several people have reported the problem appeared to happen when plugged into (or unplugging) a charger, computer USB or computer speakers.

It makes sense that a fully charged battery would raise risk. An overcharged battery fed by a defective charger would likely maximise risk.
[Spirit FM] mikereidis:
Spirit1 can record only on Sony devices and stock Samsung GS3/Note/Note2. GS2 GT-I9100 can work on the "stock" JB leak.

Spirit2, I think, will support FM record on all Spirit2 supported devices. I'm going to try to use a policy of only supporting devices that can support digital FM audio. It will be much easier to support digital features by making digital audio required. The Samsung devices above are likely the first support targets, and more or less guaranteed.

They all support stereo. Strange, but I think the Galaxy FM apps record in mono.

Bitrates and sampling rates will be limited only by the hardware, and the HALs that support them. Default, pretty much always supported sample rate is 44.1 KHz. Some may be better at 48 KHz, if that's the native rate. Spirit allows you to enter any number, more or less, so it's only limited by the hardware/HAL.

Same for encoding bitrates. The current default is 200 KHz. Here's what I've seen in the log when setting it too high, which indicates that just setting a high value gives you the best possible:

Oh, but..., this is only an issue when compressed formats are used via MediaRecorder. Spirit2 will mostly be using uncompressed PCM formats, so stereo bitrates at 16 bits per sample would be 32 x the sample rate. Perhaps I'll kick off an audio encoder like ffmpeg in the background to compress, and it has almost every conceivable encoding option.

I'll likely put out test releases for Spirit2 in January. But I've started prototyping, so perhaps something could be seen before the New Year. One problem is that as soon as I put something out, I'll get a bunch of requests from impatient people, so... maybe I'll keep it low key, and a bit private among some technically oriented people. I'll see, so please don't ask to be put on a list. Lists distract me from my work.
[Spirit FM] mikereidis:
Thanks for reporting back. Yes, the second SU in the debug line ("Su:0") indicates no SU, as does the first one: "SU: 1". Yes the numbering is mixed up.

On supported devices, SU is one of the most common problems, especially after a ROM update/change.
[Spirit FM] Quinny899:
There doesn't happen to be a 'no piracy' cat too does there?

I might get one of those if there is...
[Spirit FM] mikereidis:
There's the "Cat-o’-nine-tails":

But there's also evidence of cats being pro-piracy:

But my best idea so far is just to make Spirit2 freely available here on XDA and a paid app on Play. It's work to have different variants and I'd rather develop. I think I'd ban re-distribution on ROMs though, if for no other reason than to allow people to purchase on any ROM with no interference.

Purchase would then provide guaranteed, personalized email support and the "good feeling" that comes from supporting a worthy endeavour.

And I hate to say it, but limiting capabilities to just higher end devices should also be effective. GS3 owners are less likely to pirate than owners of $100-200 phones. Let the pirates put their talents to creating plugins for cheaper phones.

I'll just have to see how it goes. If my income maintains, I'll be happy. It's dropped a surprising 20% this month so far; I'm not sure if it's the season, the talk about the coming Spirit2 (free upgrade anyway) or declining support for Spirit1, or the Light price increase last month (which didn't affect November income, AFAICT), or what.
[Spirit FM] imopen:
:eek:

wow, I never jumped on AOSP rom for the lack of an RDS FM Radio, and now I discover that it exists!

and your radio works great on Oxygen Rom on Htc Desire. :D

it's a little bit ugly :D but it does its work wonderfully

thanks man, you're great! :)
[Spirit FM] eoghan2t7:
Just to let you all no i have ask mikereidis if i can improve the UI and he has said yes so i am currently making a quick mock up and pming it to him to see if he want anything changed but before i do that does anyone have any ideas?
[Spirit FM] icke:
Yazzz....would be nice, if u can fit the theme with honeycomb GO launcher theme.:) I like blue....blue makes palmy!:D
[Spirit FM] CR5N:
Mike, I removed ssd and sprt from /system/bin and removed the sprt folder before installing the latest apk. No joy I'm afraid. Tried restoring sprt folder but still no audio. Had to put ssd and sprt back into ...bin folder and restore sprt folder on sd card and now works like a charm.

System sounds still kill audio first time but after restarting app, they don't. (After a clean boot I must add). Liking the new layout and look forward to the gui changes.

Ps. Apologies for lack of feedback but writing off my car with a lampost has kept me busy!

Keep up the good work.

HD2 on nexushd2 v2.7
[Spirit FM] mikereidis:
OK, yes, I'll try to incorporate into the next release.
[Spirit FM] mikereidis:
Great ! Yes, I'm currently trying to make it look better.
[Spirit FM] mikereidis:
And the followup:

Mike, got it to work on HTC DESIRE with Latest MIUI 1.6.17. Just put ssd of 2.0.17 in /system/bin and sprt folder on SD Card root. And most important: Installed 2.0.18...now its working fine...i couldnt post it on original thread 'cause im a newbie =/...Hope you share it with others
[Spirit FM] mikereidis:
OK. As of the last release, v11.06.12, the ssd is now automatically loaded at /data/data/com.mikersmicros.fm/files/ssd.

You would need to reference that entire path explicitly as it's not in the normal path.

But I get the clear feeling that I should just incorporate this into the app, which is the general plan when audio enabling is verified. I'll try to get this into the next release.
[Spirit FM] mikereidis:
I just want to say that while I support this in general, I do have a few concerns.

One is that the UI is now finally in the midst of changes. That could make your job more difficult, and I'd prefer to have the freedom to make needed changes instead of keeping the app "UI compatible" with previous releases.

Another is that you'd have to re-package the app and I haven't really thought too much of the implications, but there likely would be some potential downsides for me, depending on how the modified app is presented or distributed.

So I'm giving a cautious OK for now, and we'll have to see going forward.

Thanks !
[Spirit FM] bkmo:
Ability to make the black background themeable via a drawable and also transparency.
[Spirit FM] eoghan2t7:
dont worry mike anything i do will be pasted on to you i dont want to pass your work off as my own so when get round to finishing the mock up i havent had time these past few days lol ill pm you the mock up and if you give the green light i will make the UI/theme whatever you like to call it lol and send it to you for releasing :)
[Spirit FM] imopen:
Something like this:

or this:

it would be very nice.

If I would give both you a beer, can I do a donation to mikereidis ?
[Spirit FM] sibere:
Tried again on my Archos 70 IT both with Urukdroid and stock android, and nothing... No signal even if tuned to a strong local radio with headset plugged-in. :/
[Spirit FM] mikereidis:
I'll see what I can do.

I've decided to disable my donate button. I think the concept of "donation" is incompatible with my intent to produce a paid version ASAP. If you like my work, buy a copy or two when I make it available... :)
[Spirit FM] mikereidis:
v11.06.21

http://www.mediafire.com/file/0yv09s4j6ar8qds/Spirit_FM_Radio_v110621.apk

A warning: I'm on the verge of releasing a paid version and haven't decided exactly how to differentiate free from paid yet.

So because this version likely contains features that won't appear in the free version, this version will cease to function on July 1, unless the coming paid unlocker package creates a "key". BTW, this "key" is very simple and won't cause anyone any hassles going forward. Edit: Just read a thread indicating trial apps aren't allowed here. My next release won't just stop working as this one will; this situation is only temporary as it was the fastest way I could release...

2 biggest changes:

- Support for 7 different audio switching and enabling methods. Hopefully this will enable audio on several new devices (but not ALSA devices the tablets need probably). Hopefully it won't kill anyone's working audio and won't create audio glitches.

The ssd utility for HD2 etc. should no longer be needed. The /sdcard/sprt directory is no longer used but has now migrated to /sdcard/spirit_cfg since I hope most won't need audio customisations any more.

- UI improvements, most notably a red needle indicator frequency display at the top, and a fine tuning thumbwheel below that.

Touching the frequency display should change frequency and seek upward to the next strong channel.

The thumbwheel can be dragged left or right to fine tune. The graphics, and a line or two of code are "borrowed" from the CM app, which has an Apache license allowing just about anything...

There are lots of other little fixes and configurable options, but I won't bore you with the details for now...

Please report your experiences. Thanks ! :)
[Spirit FM] imopen:
For sure I'm going to buy your app on market ;)
[Spirit FM] idkidk:
Hi Mike,

I've recently change rom from froyo to gingerbread (now i'm on Overcom 2.0.1 Hermes), this is the report:

Fm:BC Sh:1 Su:1 Bt:0 Ht:0 H2:0 Mo: BCH UA Hv:4 MA:15 BC

and Logcat.

1) Very nice scale indator :D

2) as expected no audio

3) Signal: -128, 0, 16, 55, 6 only this value. (Ok no antenna, but where fake signal come from?)

4) Scan not detect any station (maybe related to point 3)

5) UI fit perfectly SGT screen

Bye

Idk
[Spirit FM] imopen:
Just tried for few minutes (I'm at work) on HTC Desire with Oxygen, it seems fully working.

And UI is improving even if some colors and some eye-candies somewhere would be appreciated :D

I'm going to test it more tonight, for the moment, keep uk the good work :)

And I'm waiting for a paid release to remove ads ;)
[Spirit FM] mikereidis:
I think we should try to get you a *.hcd file from another device with known working FM. That's the best idea I have right now; that your *.hcd file firmware has some bugs, or even has FM somewhat disabled.

Did we determine if your Tab has a Broadcom 4325 or 4329 ? I think mine is a 4329.

It's a copyrighted firmware file and a minor sin, but I figure you're licensed for the FW... Edit: I've PM'd you a link.

If you run the following, the app should use this hcd file on next startup:

adb shell mkdir /sdcard/spirit_cfg

adb push bcm.hcd /sdcard/spirit_cfg/bcm.hcd
[Spirit FM] idkidk:
Hi Mike,

4329 for sure. I've try your hcd but "no chip compatible" is the hanswer.... i'll try to find some hcd to try in the next day :confused:

Tia

Idk
[Spirit FM] cajunflavoredbob:
I dug up this thread when I got my Note2 (t889). I used to use this on my HD2 for a while, but I'm sad to find out that US carriers all suck since they disable the FM radio for no good reason. Even my Motorola Defy XT can't run it. Oh well. Good luck to you, Mike! Keep up the good work. I hope Sony delivers a Note competitor so I can jump ship.
[Spirit FM] antonio89drop:
I give you thanks for your precise and accurate answer.

I wanted to ask about the models supported by xperia recording of FM radio are all supported?

That is, which of these product families are supported?:

Xperia 2011

Xperia 2012 U / P / Sola / Go

Xperia 2012 V / T / TX

Xperia 2012 S / SL / ion

Xperia 2012 Miro / Type / J

Which of these are supported by the record from FM radio?

Then the music and Galaxy mini galaxy s3 anchessi are not supported by the record the FM radio?

Thanks again for your answer.
[Spirit FM] mikereidis:
I was about to refer you to this thread, then realized it's your thread for your recording app, LOL: http://xdaforums.com/showthread.php?p=27560996

I've been mostly ignoring Sony until recently, so I'm not too aware. I've been under the impression that pretty much every Sony/SE device, 2011-2012 that supports FM can also support FM recording. Strange though that there's no record function in their app, given that they design recording capability in.

I have an Xperia P now, and I can tell you all 4 "family members" can likely record FM: P, U, Sola and Go. P and Sola are confirmed, I just presume the other 2, since the architecture is pretty much identical.

I see the P reports getAudioSourceMax() as 7, but 8 can be used for FM, same as Galaxy S2/S3/Note/Note2.

Galaxy S Player ? It's like the Galaxy S and I think no recording. But the story with GS is that the hardware appears to support record; the wm8994 audio chip is an amazing chip for it's time, and the GS3 uses an almost identical WM1811. But hardware isn't enough. There are no audio libraries in any stock or custom Galaxy S ROM that enable this capability, and likely nobody will ever build them.

Galaxy s3 mini or whatever, I'm not sure, but it seems to be a much cheaper device intended to fool people that they're getting a GS3 for cheap.

So I'd bet no record. But any device based closely on the Galaxy S2 Gt-i9100 architecture has a good chance for record, since the GS2 stock JB ROM now supports record, and the similar Note always did.
[Spirit FM] _AnAkIn_:
Thanks, Spirit FM now works fine on my I9100G!
[Spirit FM] antonio89drop:
Thanks for the answer now I clarify the situation.

As you have seen from my thread you've already noticed that I use the recording function on my Xperia by this method.

I have a Xperia Active and I want to change it with a new smartphone faster and with a larger display but always supports recording from FM radio.

I've seen the stock of Galaxy FM Radio S3/Note/Note2 but purttroppo the stock samsung only record mono sound hence my question about recording from the FM radio of Spirit FM and Spirit FM 2 and their compatibility with the Xperia smartphone and Galaxy who are the candidates for my purchase.

I wanted to ask on a platform last smatphone the Advance Galaxy S (GT-i9070) & Galaxy Beam (GT-i8530), they will be supported by Spirit FM Radio with recording from FM???

Since they are similar to Galaxy S2 that you Xperia U / P / Go / Sola as also the same processor of the latter (NovaThor U8500).

Thank you for your response and precision for your excellent work with Spirit FM really GREAT!!

And from what I understand Spirit FM 2 will be even more.

I await your ultimate answer.

Thank you very much!
[Spirit FM] mikereidis:
It's difficult to understand you exactly, so feel free to clarify if I don't understand.

If someone wants FM and Spirit2 and/or just one of the "best" phones of 2012, the International Galaxy S3 GT-i9300 or Galaxy Note2 GT-N7100 are what I'd recommend. The older Galaxy S2 GT-I9100 or Galaxy Note GT-N7000 are also good, but I'm not sure yet how easily they will handle 100% digital audio. I'm not sure about GS3 or Note2 either, but they have more than one PCM /dev/snd/PCMC* device for recording and playback, so that gives me more confidence. I'm trying now to prototype the 100% digital audio idea to see.

Yes, it's rather strange the Samsung FM app records in mono, when the hardware seems to work fine in stereo. I think Samsung's FM app is the only app besides Spirit that contains a record feature within it.

Regardless of what I've said above about Samsung's, the ST-Ericsson based Xperia's can be good for anyone trying to get familiar with this possible future standard Android FM API. When it's ST-Ericsson's proposed API, ST-Ericsson chips are likely the best for that. As a bonus, some European models at least are among the very few Android phones with proven transmit capability, also supported by this API.

Spirit2 may very well not officially support Sony devices. The un-official support may be very good though. Official means I will enable it on Google Play, and I may do much more to make sure the implementation is as flawless as possible.

I don't think the GT-i9070 or GT-i8530 will be supported by Spirit2. They aren't flagship devices that will get as much attention by custom ROM devs as the GS3, Note2, OneX+, and upcoming Sony highest end devices. They are IMO "watered down" and in some cases try to capitalize on the name recognition of the flagships.

But if any DO have very similar architectures to supported devices, they may work well with Spirit2, whether or not that support is official. To be official, the architecture will have to be similar enough that I don't feel the need to buy one in order to support it well.

For example, I feel no need to buy a Note2 as I have the very similar (almost identical) architecturally Galaxy S3. I DO have both a GS2 and a Note, but feel I probably could have gotten away with having only one. Except that the GS2 only starts supporting record in the stock JB ROM, and the audio chip inputs are swapped. And sometimes a ROM is only available on one and not the other.
[Spirit FM] mikereidis:
Post 5001 reserved for some good news. :)

Rumours of the death of Spirit1 are much exaggerated:

- I've added audio methods that work on Huawei GS300 & Motorola Defy XT557.

- And for future devices using "msm7x30..." audio methods with different/new numbers, such as the above, there is a "msm7x30 Custom" method, and Debug settings to set the numbers. And I fixed the logging ability to get those numbers, when killall or kill commands aren't present.

- There's a new option (Dec 20 release) for Unlocked which changes the seek up, seek down and frequency buttons (next to each other), to the same functions as the media buttons are set to. So you can use them to change presets, or anything else those buttons can do.

I still don't think I'll officially support Huawei; not sure about the Motorola Defy XT557. Probably maybe ?

ST-Ericsson proposed Android FM API is updated December 19: https://android-review.googlesource.com/#/c/46080/

- Not much change, but at least it's still moving forward.

- Yay, Google. Let's get a standard Android FM API going; It's been much asked for at least 3 years now. Let I & others get to the fun stuff, without so much reverse engineering & drudge work...

Nexus 4 may have usable FM; we are close to an answer it seems, thanks to new XDA member craggy_island: http://xdaforums.com/showthread.php?t=1963623&page=16

EDIT: Good news is we have an answer for FM on Nexus 4. Bad news is the RSSI is always 0 and the FM receive antenna pin is likely grounded. :(
[Spirit FM] gabrielking9:
Sorry
[Spirit FM] mikereidis:
..........Nothing to see here... :)
[Spirit FM] gabrielking9:
Oh you're the OP sorry i didn't seen
[Spirit FM] mikereidis:
Yeah, and with over half, or 2,500 posts mine, I figure I'll take the fun ones. :)

I've never noticed a mod on this thread, and thankfully nothing's ever gotten close to getting "out of hand" or needing posts deleted.

I'll have to think of something nice for those post #s, and I've already documented the Spirit2 detailed design at top of page 500, post 4991.

EDIT: Post 5000 reserved for some developer humour & the not necessarily so humorous relationship to the god-awful mess the Spirit1 code has become, and why it needs to go the way of 2012, and welcome 2013: http://xdaforums.com/showpost.php?p=35658172&postcount=5000