yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Transmit experimental support for 2013 Sony's is in the July 23 beta of Spirit2 on Play. :)

Spirit2 customers can sign up for beta's here: https://play.google.com/apps/testing/fm.a2d.s2 or email me mikereidis@gmail.com .

Only works on ROOTED Sony's with a Qualcomm FM/combo chip; late 2012 Xperia T and later to Z1, but not possible on Z2 or later devices using Broadcom FM/combo chip, nor on Xperia M.

Worked OK on my Xperia Z1 with stock, rooted ROM. May or may not work on AOSP.

To enable, first ensure a wired headset is plugged in for the transmitting antenna. Tap the frequency button, enter 48 and tap OK. Turn FM off and restart Spirit2. Should now be transmitting whatever is playing (can't be FM, LOL.)

To disable and return Spirit2 to normal receive function, tap the frequency button, enter 49 and tap OK. Or just clear app data. Turn FM off and restart Spirit2.

So that's 48 to enable (only allows Sony) and 49 to disable.

Tune to a quiet, unused frequency that has low RSSI and little audible interference. You can use manual tuning controls (not seek) and presets while it's running.

If you have start/stop issues, force stop Spirit.

Be sure to follow all the applicable laws in your country. (LOL.) AFAIK, almost everywhere allows unregulated use of low power FM broadcast band transmitters, and I think the power is likely 20 milliwatts or less.

Some audio may not work. I played WAV files and that worked well, but some compressed files did not work, I think because they got sent directly to the lower levels of the audio chip, and bypassed the FM modulation path.

If there is sufficient demand, I'll create a paid dedicated FM Transmit app with useful features. This is my warning that transmit in Spirit2 is experimental, and subject to change or even disabling. I guess anyone who buys Spirit2 for transmit only can have orders cancelled in future for upgrade/update to a dedicated transmit app...
[Spirit FM] mervluk:
Sony's seem to be funny things. Stock-based ROM: Never had any problem with pause on the Z phone, nor with volume adjustments either on screen or by using the buttons when either Spirit1 or 2 running. The notification panel was always a bit temperamental though. Latest non-beta for Spirit2 sounds more like the stock app on first impression (quieter at same volume and subject to a bit of new crackling) though I'll persist as it might need to settle down with the Pro Sonic and Viper audio mods (if they work as they seemed to with the previous version where the audio quality sounded more vibrant than Walkman streaming. May be because Walkman isn't compatible with Viper, I believe). Now they're about comparable. I do find that my Sony needs to be kept at or below 80% volume (at least on headphones) though to avoid a little sound distortion/background hiss creeping in. Loudspeaker is awful by comparison.

EDIT: I've occasionally been caught out by volume setting itself to zero when Spirit starts.
[Spirit FM] paulle:
spirit2 sony z1c

spirit 2 fm works now on sony z1c. But in spirit 1 where was an exit button for terminating spirit, spirit2 don't have it. It's difficult to exit (or i didn't find the option to do it).

sony xperia z1compact with cm11

edit: it works has the meaning I can receive a station, but not all buttons on the UI are working.
[Spirit FM] oskar01:
Spirit1: Real FM Radio 4 AOSP works on Samsung GT-I9082 Galaxy Grand Duos - Firmware CyanogenMod 11 (OS 4.4)
[Spirit FM] LenAsh:
Unlocked BL and installed CM11. Used the 23/7 versions of Spirit1 and 2. Spirit 2 won't start.

Spirit 1 starts fine and immediately with BT on or off. RSSI and radio text fine. But no audio - tried auto, Z2 and Z2 ALSA.
[Spirit FM] mikereidis:
Digital FM audio always seems quieter for whatever reasons.

Re: crackling:

Sony's in Spirit2 right now use 320 byte buffers, which is way too small when they can handle more. Using digital audio in Spirit1, you can tune that with AF-> AF Period. Can you try 5120 and 4096 ? 5120 works well on my Z1.

Once I get a better idea of good buffer sizes, I'll change the code. But I should also make this configurable in Spirit2.

In the short term, I've posted some things that can reduce crackling, like raising minimum CPU speed.
[Spirit FM] mikereidis:
Square button at bottom left is to turn off FM. The home screen widget has a similar X button.

But perhaps your problem is that the buttons don't respond.
[Spirit FM] mervluk:
Had a quick try, initial obs: on stock Z: 5120 buffer size on Spirit 1 seems improved, 4096 is heavily distorted. Have already increased min CPU to 702MHz which helped considerably with previous heavy glitching when I think you reduced the buffer size (320?). Still prefer Spirit 2 digital to Spirit 1 digital (either Digital Auto or Digital Sony) though, much louder and more vibrant with much better stereo separation at the same volume despite the odd bit of crackling. I assume that's because Spirit 2 works better with audio mods?

For me the Spirit 2 square button, does the same as the pause button i.e. stops the playing station, but does not close the app. I can usually (not always) close the app by using the back button, occasionally I have to force close to use other audio apps when the notification shade doesn't disappear (and its square button doesn't close the app either, nor that on the lockscreen). Though in all cases I can start and pause play.
[Spirit FM] paulle:
yes the buttons don't respond.
[Spirit FM] maria137137:
?Any hope for LG - G3 - VS985 4G - Verizon ?

Can Spirit 2 work with the LG G3 - Model VS985 4G from Verizon?
[Spirit FM] mikereidis:
No, not Spirit2.

All I know so far is that the Spirit1 tuner part works on other variants that are rooted. So far audio is not possible, and may never be.
[Spirit FM] mikereidis:
I can't think of any reasons why Spirit2 would sound better. I think I'll have to buy a Z in order to support it properly...

Spirit2, unlike Spirit1, does not close the UI when the FM stop is complete. In your case you are getting some kind of hang on shutdown, which is still a problem sometimes on Spirit2.

It might be related to the reason I'm having shutdown problems with the Spirit2 transmit mode, and I think I've seen issues with receive too.

BTW, it appears FM transmit might be possible without root. The transmit prospect helped me decide to get a Z1, right after my Z2 tablet. So, a little bit more incentive to get a Z or similar.
[Spirit FM] mervluk:
NO!!! Not on my account, anyway.The Z/Z1 are similar enough, I'm sure. :laugh: Just glad I've got the audio working to perfection for my needs - only possible improvement would be to get that ability to adjust the buffer on Spirit 2. I'm holidaying in an area with poor data coverage, so FM is a saviour! (Might be an excuse if I get desperate enough to try out FM transmit of the phone's stored music to the car's old-fashioned radio though - if the signal is strong enough to reach the receiver aerial through the car's metalwork and plastics!).
[Spirit FM] antonio89drop:
Hi, Mike.

I would be interested in changing my Xperia Go and I would buy one of HTC ONE M8; XIAOMI MI3; LG G3; XPERIA Z2 all of course with Fm Radio.

I would like to know which of them already support Spirit FM or will in the future that Spirit FM with the function of Recording Stereo from FM Radio?

I await your response.

Thank you very much.
[Spirit FM] :
Just some report

Hi Mike!

Phone = SGS I9000

App = Spirit2 FM

Since the 2014-07-22a Version speaker volume control works without using AT_VT !!

Thank you so much for bringing this important feature into work.

Regards,

Frank
[Spirit FM] mikereidis:
I'm happy to see that transmit power is MUCH better than on old Broadcom chips, where even wrapping antennas together produced low quality audio.

It works well from one side of my room to the other, about 5 metres, but diminishes after that. This is with "randomly tossed" headset antenna cables.
[Spirit FM] mikereidis:
Stock, stock rooted, or AOSP rooted ?

I have a Z2 (tablet) and a Z1 now, so they are becoming officially supported in Spirit, as are pretty much all the Sony Z devices. Z's older than the new Z2's can transmit, which is unique.

I may buy an M8 at some point. It's VERY popular here on XDA. I think Spirit works on it (I have a good number of sales), but it must be rooted.

G3 I'm hearing a lot of interest about, but can't support yet. I still have a "bad taste" about my G2, so I have doubts, unless it becomes VERY popular (eg as much as One M8).

Xiami, no. If it has Qualcomm FM it may work, but I'll never be able to support it TOO well. (May be fine, but weird things will make me say "I don't know".)

On the Z2, and all 2012+ Sony's, Spirit can record on stock unrooted, and FM over BT is supported by the stock app. Spirit does FM over BT stock, unrooted also, but likely never for Z2 (unless rooted).

M8 is nice, but metal case means absolutely no reception without a wired headset plugged in. My admiration for HTC has dropped considerably since the M7 started blocking FM access on unrooted; I think M8 is the same.

I'd generally recommend Z2, or an earlier Z* like the Z1 I have.

Basically, if I have a phone, I tend to recommend it, or very similar models. (Except G2, among recent devices.)

If you will root or ROM, M8 also seems a good choice, but I'm not sure when I might get one.

I tend to prefer Qualcomm FM chips (Z1, M8) over Broadcom (Z2, G3), but that's mostly because low level Qualcomm FM access is easy via a V4L FM driver, while Broadcom requires special tricks for access. Also, Qualcomm code is open source, while Broadcom is largely not, for FM at least. There's a freely available Qualcomm FM app out there, and the app can be found on some AOSP ROMs, like the MotoG CM11.
[Spirit FM] guhvanoh:
I'm happy to post that I can now semi retire my SGS3. Spirit 2 works gr8 on my Z2. I now get to listen to BBC Radio 4 on my way to work ::heaven::
[Spirit FM] antonio89drop:
Hi, Mike.

Dear thanks for your reply.

I'd be interested for the moment for the rooted stock method.

I'm sorry that does not support Lg G3 I really liked because it has a removable battery.

Regarding Htc One M8 feedbeck have had positive feedback from the users for recording Stereo FM Radio with Root ?

Regarding Xperia Z1 and Xperia Z2 I use a lot of my trips the Altimeter function that uses the pressure sensor present unfortunately only in Xperia Z2 so the choice between Z1 and Z2 is obliged on Xperia Z2.

I understand that Xperia Z2 also supports Fm Transmitter ?

To Record in Stereo FM Radio with Xperia Z2 should I select Method Audio Sony Z2 or Sony Z2 ALSA ?

And in Setting/Digital I select MediaRecorder if without root ?

I need to change other parameters to Record in Stereo from Radio Fm Without Root with Xperia Z2 ?

I await your response.

Thanks you very much Mike!
[Spirit FM] amirsat2012:
It doesn't work with my N9005 . x-note rom 4.4.2

Envoyé de mon SM-N9005 en utilisant Tapatalk
[Spirit FM] amirsat2012:
Envoyé de mon SM-N9005 en utilisant Tapatalk
[Spirit FM] rob_yx:
Hi Mike,

any news of stereo blend rssi threshold adjustnent on si4709(i9000)?
[Spirit FM] LenAsh:
I had to come off CM11 - it's not quite there for the Z2. Lots of plus points though...

Laters, maybe.
[Spirit FM] mikereidis:
There has been LOTS of interest in LG G3 (like G2), so I may eventually re-consider, but I have a bias against LG's based on the 2 I've bought in the last 3 1/2 years. The first, the Optimus One P500 seemed a great buy for the price, but I found too many "engineering shortcuts" were used to keep the price low.

The second, a G2, has ended up not booting after flashes WAY too many times for a phone bought just 7 months ago. Each time I have to spend at least 1-2 hours restoring it to working, and needing a Windows PC to do so, with tricks like setting the date to 2005 and ensuring Internet is not connected. LG makes things really hard for custom ROM flashers.

Note that I very much like the prospects for Spirit on M8, but I still haven't bought one. I've felt the same way about Qualcomm based Sony's for a long time, and have only NOW bought 1 such Sony. At this point in the evolution of Spirit, I'm being a lot more careful before buying and supporting new devices. It's a long term committment; I don't want to have to say "I can't support it" after I've already said "I support it".

I'm looking at my Sony's now and realizing that Spirit1 does not yet support the new "qcom.caf.fmradio" name for the Qualcomm API (installed in addition to Sony's API). Spirit1 still supports only the old "android.hardware.fmradio" name that Google forced them to change. So I think this is the reason that Spirit1 does not work on stock, unrooted M8.

With root however, either Spirit can do digital FM audio. That means that record on M8 is supported, to WAV files at least. Maybe stock unrooted M8 can record to MP4 files, I'm not sure yet.

No, transmit is only for the Qualcomm based Sony's, from Xperia T to Xperia Z1 and similar. Z2 is a new generation using Broadcom chips.

Sony Z2 ALSA does not work at all yet. The default Automatic becomes Sony Z2. This allows record to MP4's if you set Digital-> Source to 10. At this time however, no record button is enabled in Spirit. Only Menu-> Test-> Record-> Start works, or you can configure a wired headset media button as a record button. Best to record on Z2 with WAV files using "Digital Auto" or the resulting "Digital XZ2".

Just leave Digital-> Method at the default of Auto. Spirit will set as needed. Other parameters are default.
[Spirit FM] mikereidis:
Impossible to support (except Sprint.)

Samsung disables FM permanently and unfixably.

Impossible means impossible. Rooting won't help. Unlocking won't help. Screenshots and logs won't help. Nothing helps except buying a new phone.

I shouldn't have to say anything except the word "Impossible", but so, SO many people think that with enough effort, they can negotiate this problem away.

Then they ask about resoldering the PCB. LOL.
[Spirit FM] mikereidis:
I'm not sure it's possible with the Samsung driver.

Datasheet indicates it's in SysConfig(1) register: http://www.silabs.com/Support Documents/TechnicalDocs/Not-Rec-for-New-Designs-Si4708-09-B.pdf

Ioctl definitions here: https://code.google.com/p/bonsai/so...rivers/samsung/fm_si4709/Si4709_ioctl.h?r=415

They show SysConfig2 and SysConfig3 set and get, but none for SysConfig1.
[Spirit FM] desalesouche:
requesting some help

to mike...

hi sir.i am trying since a long time to build radio apk from cm for my device: huawei honor( u8860). may i ask you to have a look on my logcat?

http://xdaforums.com/showpost.php?p=54402975&postcount=456

and thanks for the good work you did and do with spirit1 which is working good with my device running 4.4.4.
[Spirit FM] mikereidis:
V/FMRadio ( 1833): enable: CURRENT-STATE : FMOff ---> NEW-STATE : FMRxStarting D/FmTransceiver( 1833): Fail to Open -1

I was looking at the same error last night when I tried to use the Qualcomm OEM FM API on my Xperia Z1.

It's a permissions problem on /dev/radio0 . The normal way to solve it is to make an APK with a shared system UID, but this requires signing it with the system key which we usually don't have.

I tried "chmod 666 /dev/radio0" but that wasn't enough on my Z1.

I also had to do ""chown appid:appid /dev/radio0" where 'appid' was the assigned UID of the app.

Also ensure that radio-iris-transport is properly "insmod".

Even after all this, I had to run the stock FM app at least once. And right now I'm trying to get it working again and can't for some reason, but maybe because it's transmit I'm working on now, not receive.

EDIT: I only had to chmod, and run the stock FM app, or do the equivalent of this:

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

See /system/etc/init.qcom.fm.sh
[Spirit FM] antonio89drop:
Hi, Mike.

Thanks for the reply.

My past experience with LG was not exciting but not bad. However, the product of Lg at least year from a hardware perspective it seems good. Then on the road who knows .....

At this point I guess I look a little bit to see the evolution of Spirit Fm towards the support of these new terminals remain updated on the situation.

Meanwhile, I am looking for good deals on Xperia Z2 and Htc One M8 and if I get the chance I try them.

Thank you Mike.
[Spirit FM] shaq1907:
22a version doesn't work in Stock LG G2 anymore (there wasn't such a problem in old versions). Which settings should I choose?
[Spirit FM] N00BY0815:
Hey guys and especially mike. I think I read every post which mentioned the Moto X, but was unable to find if there is going to be some love for this device/if it is capable of receiving FM radio. I just read somewhere, that the antenna might not be connected to the headphone jack and thus FM radio wont work without modifications on the board. Is this true? And some love maybe? :D

Oh almost forgot, chipset is the: Qualcomm MSM8960Pro Snapdragon
[Spirit FM] desalesouche:
hi sir , thanks for such quick answer.

i chmoded 666 /dev/radio0 in ueventd.huawei.rc file : /dev/radio0 0666 fm_radio fm_radio

and i made change in init.qcom.fm.sh i mean i added this:

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

i made change in defconfig to compile radio_iris_transport as module...

will do a test...

but i have one question, by observing various huawei devices running cm11 with fm radio from cm i can see that in the defconfig of their respective kernel, it is only config_radio_tavarua enabled... should i try that?

will give more information after some more tests.

thanks
[Spirit FM] galaxy-steve:
Spirit FM UL gets no signals in Austria - Samsung Galaxy S WiFi

Hello community!

I've a problem with the Spirit FM unlocked radio using it in Austria. I'm using a Samsung Galaxy S WiFi (5.0) running Cyanogenmod 10.2 on it (Android KitKat). The problem I have is that I only hear rushings through the complete wave band, though I am at frequencies I know.

I have plugged headphones into my device and configured is Galaxy S ICS as audio method. I have changed nothing else.

Thank you in advance for your supportance! :good:

Yours faithfully

galaxy-steve
[Spirit FM] mikereidis:
I'd love to love the X, but it doesn't love me back.

TL;DR. Doesn't work, can't work, get a new phone.

Do not pass go, don't ask about root etc., nor hardware mods.

(I get tired of saying "impossible" and people think they can "negotiate" impossible to yes.)
[Spirit FM] mikereidis:
Sure, why not. :)

I think tavarua is old name and iris is new name, though chips are pretty much compatible.

init.qcom.fm.sh probably shouldn't be modified.

version may need to be non-zero, it is on my Z1, but OneXL liked 0.
[Spirit FM] mikereidis:
I have only a very vague recollection...

I know it as Galaxy Player 5.0 or YP-G70. Some info in this thread if you search on YP-G70.

See: http://xdaforums.com/showthread.php?p=44807316#post44807316

Apparently Audio-> Method = "Galaxy SL/i9003" worked.

If you're a customer, please email me mikereidis@gmail.com for further help.
[Spirit FM] mikereidis:
"Doesn't work" doesn't help me too much. I hope you are a customer, because it's not fun trying to be a detective with no clues.

What are the symptoms ? Does it start ? No audio ? What ?

Spirit1 ? Is it rooted ? Did other July releases work ? 9, 18, 19 ? Was there a ROM update ?
[Spirit FM] shaq1907:
I know that you work a lot, deserve support but sorry that I am not a customer :( Just wrote this for feedback.

My LG G2 has stock (no root) 4.4.2 v20c firmware. I used almost all methods but July releases has no audio (v19 and v22a). App installs but no sound. Older release like v2014_04_08 has not such a problem.
[Spirit FM] mikereidis:
Thanks for your report. :)

And I know not everyone can afford, or think it's worth the price.

I've been considering bringing back a Light version of Spirit1, maybe around 25% of regular prices: USD $2.50 or about Euro 1.75 . As before it wouldn't support RDS, nor digital audio and would be limited to 6 presets. I also think I'd have to say no individual email support, my biggest "cost" really is my time.

If you, or anyone, might find that interesting, please let me know.
[Spirit FM] mustasusi:
I need to speak to that guy urgently. I wonder if he still reads on this thread, guess I shall PM him shortly.

May try this specific version he mentioned, do you still have it on your records?

If this one won't do - maybe an older one will?

I remember long ago, the very earlier versions of Spirit were used to rely on a stock way to operate along with it. in this case - would it operate alongside with NextRadio and at least let me pick the even frequencies, as this is my main goal now?
[Spirit FM] mikereidis:
Sept 18, 2013 is the last official Spirit Free release, still linked in post #1 near "Download": http://d-h.st/H4x

Downloaded 17,002 times now, once every 26.68 minutes on average, LOL.

Spirit1 still supports OEM FM APIs and can sometimes run at same time as stock apps. I'd think Samsung would have switched to Broadcom FM API though, from their former flagship self built API for Silicon Labs chips.

Yes, it's quite possible it would work alongside; you might set Audio-> Method to None, and disable some other stuff too probably.
[Spirit FM] mustasusi:
Yes, I'm missing Silabs chips so badly, I wish they've never changed to BCM.

For the comforting part - it worked! I turned on Nextradio then turned on Spirit, there was silence and "can't access FM" message appeared (audio set to "none" prior to this dual operation). I switched chip to "emulator" then operated Spirit, switched chip back to "auto" then turned off and on. I had sound, I was able to move manually between stations, including even frequencies but when I pressed frequency window to send you another log - it got stuck and I had to "kill" it. Radio kept playing in background for a few more seconds and got silent. Relaunched Spirit and saw "-128" as reception, again no sound. closed Spirit, relaunched and again - "No FM accessible" while Nextradio still operates fine. This is not a stock kernel as it gave "No FM accessible" ever since. This is a nice advancement but I'm not sure if I can recall this state.

I need to figure out how to make it permanent...

Edit: Just sent you another debug log while making it work the 2nd time now.

I just noticed it plays MONO on earphones (Nextradio is stereo\blend). Perhaps you can dig something out of it?

Edit2: Silly me - I forgot I was on free version and Mono playback is a core feature for free version. Luckily I'm a proud customer for more than 2 years now (and counting:cool:)
[Spirit FM] Devhux:
Just wanting to confirm; this will not work at all on the LG G2 D803 Canadian model right? Only the Sprint and International ones?
[Spirit FM] mikereidis:
I'd like to confirm/deny too.

My notes for D803 say: "? Similar to D802 International ?"

So, I don't know yet. Email me mikereidis@gmail.com and/or send me a debug log from Spirit1.

Which carrier ? Stock, stock rooted or ROM'd ? No stock FM app I presume ?
[Spirit FM] Devhux:
For anyone who stumbles upon my inquiry above, it appears we can now add the D803 (Canadian G2) to the list of devices that won't work with FM. Sprint users are lucky !
[Spirit FM] stadros83:
Hello !

I would like to know if there is any chance to use SPIRIT FM with an external FM receiver ?

For example there is an app called SDR Touch that can work with RTL2832U receivers.

It works but the GUI is absolutely not user friendly.