yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Wait 'til you see Spirit2 Feb 16 alpha 4: http://d-h.st/Bhh :)

It's 2013. Many of us have $500-$1000 "super-ultra phones" packed with so many radios, cores and other technology it's not funny.

And yet the FM apps don't work over Bluetooth, usually don't record, don't provide visualizations & equalizers etc., while all other forms of audio/media DO support those things.

Spirit2 alpha 4 is the first FM app to provide bluetooth, record, visualizations & equalizers.

The 20 test buttons were disabled to make way for a spectrum analyzer, in red, and above it in green the waveform / oscilloscope display. Visualizations may not work, or may stop, if a visualization wallpaper (such as CM spectrum), or some other visualization app is active.

Also, I tweaked the various gain settings, and hope to hear that audio quality is improved, or at least not any worse. Please report your audio quality observations and for reference, how much of an audiophile you are.

And I added support for equalizer. It works on my GS3 with recent JB stock ROM (as does a 3rd party app), but doesn't work on CM10.1 (nor does that app). Press the wrench button to change to the next eq preset and see it at top in the "Quality" box used for Stereo/Mono indication. Yes, there will be many more controls, but not today.

Also, record works, putting WAV files in /sdcard/Music/fm. To start recording, press the Speaker button. To stop, press the same button, but now with a headset image. Speaker mode is not available.

If audio doesn't work at start, just press Pause/Play. Bluetooth issues are possible. Pause/play, or starting BT while Spirit2 is running may help. SU is now only needed at first start. As before, power on is manual and only JB 4.1/4.2 and GS/GS2/GS3/Note/Note2 are supported. As before RDS stops working after 5 minutes unless you're an Unlocked customer and have a license file from me. Band/de-emphasis defaults to North America this time so frequency response outside of North America will be different.

Notification window shows some controls now, but I see CM can be configured to show controls for all media apps, and this works for Spirit1 Unlocked or Spirit2 also.

Note that I'm not concerned about the UI at present. So don't report UI issues, like speaker/headset for record, or "wrong" layouts.

I'm happy now to hear reports about audio quality, app stability or any major problems, like audio cutouts. But don't report "cosmetic" or medium to relatively minor issues.
[Spirit FM] tbalden:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Thanks a lot for your quick answer, problem resolved now in latest boot.IMG released. :) I'm enjoying the app again on cm one x t3.
[Spirit FM] mikereidis:
The CM ROM dev found some bugs it appears. See post above for "latest boot.IMG".
[Spirit FM] aini12aian:
Is it okay to install Spirit2 while the Spirit1 is installed? :confused:
[Spirit FM] tbalden:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Mediaserver process gets stuck after starting the app, have to manually kill it to resume audio. Did this happen on ICJ ROM for you?
[Spirit FM] PhrostB:
I heard that the new cm kernels support fm tuner for the us variants of the gs3.is that right?
[Spirit FM] rucxy:
Hi Mike,

Here are some observations of the NEW Spirit FM2 on GSII running Dorimanx Kernel 7.47 and CM10.1 13-2-13 nightly.

True that.

However Spirit FM always worked nicely on the Stock GB rom for the GSII, all the features worked, ie Audio to Bluetooth A2DP, etc

, obviously as the ROMS were upgraded, things started to get broken, Samsung not releasing proprierty source codes, requiring big amounts of reverse engineering.

Screenshot of Latest Spirit2 FM.

https://www.dropbox.com/s/6a2ul3bcn2xbtuy/2013-02-17%2007.32.27.png

Screenshot of Lockscreen Maximised

https://www.dropbox.com/s/jcvewsbe1y8vw46/2013-02-17%2007.17.32.png

Screenshot of Lockscreen Minimised

https://www.dropbox.com/s/9w813tz6r9irllf/2013-02-17%2007.17.46.png

Lockscreen: When you adjust the tuning or pause buttons, nothing seems to happen, however when you unlock phone and go to Spirit2 there is a delay of 10 - 15 seconds then Spirit2 will adjust or pause the app (obviously depends on what you touched on lock screen)

Whilst in the App itself these buttons work fine.. :)

Yes, audio output is definatly better with this release, i do however still receive some static ( will try different wired headsets to test this ) whilst listening to fm.

My Audiophile rating is not as it should be, some industrial deafness, some tinnitus, mostly tone deaf around average peoples voice tones other than that my hearing is reasonably good enough to enjoy music 'albeit louder than average person' :)

Pressing the wrench button does nothing for me, buttons that work are the scan buttons, tuning buttons, pause/play, power on/off and the manual input of station freq.

Will try this out later on today and report back.

RDS has never worked for me here in NZ, maybe our stations do not utilise this...

Will have to have a look and check for myself..

The UI of this release is much 'nicer' than original UI and i do understand that it is a work in progress... :)

No complaints from over this way mate, keep up the good work....

I will test some more during the day and report back again...

NB: I will be flashing the NEW CM10.1 16-2-13 4.2.2 nightly rom later on today as well, will also place a report in this forum once having done some testing..

Any questions or queries Mike, do not hesitate to hit me up mate.
[Spirit FM] mikereidis:
Relying on memory from last night, but I think so.

Debug-> Power Restart Media is a possible work-around hack.
[Spirit FM] mikereidis:
Yes, but things will often stop working well if you accidentally run them at the same time. Sometimes a reboot will be needed.

In my experience it's REALLY easy to get confused and run more than one at once.

The "framework" is there for Spirit1, Spirit2 and other FM apps using the Android FM API to co-operatively share and not interfere with each other. I'll eventually make sure it works this way, but other FM apps might have to be friendly to a sharing scheme.
[Spirit FM] mikereidis:
No, it's wrong.

US variants are not physically capable of FM.
[Spirit FM] mikereidis:
Thanks. :)

Something to look at for those without the better Galaxies.

On the minimized lock-screen I like how the previous and next buttons just magically ended up in the speaker centres.
[Spirit FM] rucxy:
Or you could claim credo's for it and say it was by design... :)

In relation to my post #5447.

Within 10 mins of posting that , i had downloaded and flashed CM 10.1 16-2-13 nightly which is now ver 4.2.2..

Maybe need rehab for my Flashaholism.... :silly:

SpiritFM 2 works just great.....

Screenshots of Spirit2 FM running, lockscreens with CM Spectrum LWP enabled...

https://www.dropbox.com/s/kg7m4iq45n3jrre/2013-02-17%2010.03.25.png

Lockscreen Maximised & Minimised with CM Spectrum LWP running

https://www.dropbox.com/s/j04krj90jdltcwd/2013-02-17%2010.03.53.png

https://www.dropbox.com/s/x0pn42pquyi66nj/2013-02-17%2010.04.04.png

And default Lockscreen running CM Spectrum LWP and Spirit2 playing

https://www.dropbox.com/s/r777f60gwqd3nsv/2013-02-17%2010.04.39.png

Unable to test on the homescreen as the CM Spectrum LWP is only working for lockscreen atm.

[EDIT] It was a launcher setting in Apex that i had forgotten setting...

https://www.dropbox.com/s/qv5bpd0g0mxlhxt/2013-02-17%2011.03.39.png

[/EDIT]

Bluetooth Audio works for me now, tested it on my car HF(A2DP) Kit.

Method: Start Spirit2 FM, plug in headphones(aerial), 'phone recognises headphones plugged in' , connect to BT device, phone recognises BT device and connects as a media device, audio comes forth from HF spkr :) :) :) .

Although there are issues when BT is disconnected. May need to restart media server to get Spirit2 to be able to output audio again..

[OT] My car HF kit has a fm transmitter built in on 88.1-88.9Mhz for relaying to fm radios... When i got music coming from the HF kit, i enabled the fm transmit tuned car stereo in to correct freq, lo and behold i was listening to FM broadcast from Spirit2 Fm via BT A2DP HF Carkit and out the cars stereo system... [/OT]

I think we maybe making some headway now... :good::good::good::good::good:
[Spirit FM] PhrostB:
This makes me sad. :(

Hopefully the galaxy s4 will have it.
[Spirit FM] Tscherno Bill:
Hi guys, is there a way to use this app as a radio clock to wake me up with music? it`s really sad that this feature has not yet been inplemented. But maybe i can use a combination of apps, maybe with tasker?

And what do you think, should there be a radio clock feature? At the moment i have no reason to buy this app, as i have the stock one. But a radio clock would be really a stand-alone feature.
[Spirit FM] mikereidis:
No such luck maximized though. I presume I can specify a different picture.

I'm keeping my eyes open for 1980s-1990s "ghetto blaster" pics I can use. I settled on that one after looking at a hundred or so. I want something "hi tech" with plenty of controls, meters etc., to reflect the new non-basic FM radio features. but dual cassette tape type units are preferred to some 2010 internet/MP3 "radio".

61+ % CPU, LOL. All that stuff eats up battery & CPU, especially when the screen is on.

OK. :)

Sounds like you could get a big feedback loop tuning to the same FM frequencies.
[Spirit FM] mikereidis:
So far pretty much every US / LTE variant of S/S2/S3/Note/Note2 has been incapable of FM.

The Sprint version of the S4 is rumoured to be Qualcomm SOC; I think International may be Exynos, which means the same situation as with the S3 & Note2. If the US/LTE S4 has a WCN3660 or similar Qualcomm BT/WiFi chip, there is a better chance. On the S3/Note2 a Broadcom chip is used, which is unusual for a recent Qualcomm SOC device.

The bright note in all this is that Sprint has allegedly committed to selling 30 million phones over the next 3 years with FM chips enabled; quite possibly supporting HD digital radio and analog fallback. So maybe the US Sprint S4 will officially support FM. Just so long as enough radio stations cough up $10 grand each...
[Spirit FM] mikereidis:
Where appropriate, I'm trying as much as possible to ensure Spirit is compatible with 3rd party specialty apps. My specialty is FM and I can't let myself get spread too thin re-inventing existing apps.

I might do something basic at some point, like the sleep function; we'll see.

I'd recommend an alarm clock app such as this, or it's paid variant: https://play.google.com/store/apps/details?id=com.alarmclock.xtreme.free

But it will likely only work well with Spirit2, and only after I've tested it out with the needed special parameters/Intents and ensure it works OK.

I tried Spirit1 with this app a few times, and the "quick hacks" used in the frenzied beginning of Spirit make it difficult to get FM running without the User Interface getting in the way.

Spirit2 was designed and built fresh to avoid these problems.
[Spirit FM] kira123:
Tried everything said in here but to no avail. - CM10 current ROM. Reverting back to ICS.
[Spirit FM] mikereidis:
Yes, most LGs are a mystery to me now.
[Spirit FM] aini12aian:
Sorry for asking this but when the Spirit2 button is not responsive in my device, does it mean it is not compatible with it?
[Spirit FM] lrbpereira:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Problem isnt fixed yet. Still a half fix that shoul be adressed. The phone incall sound vanish using Spirit FM. In CM10 all worked nicelly now the phone goes mute...

Please help Tbalden out, you are ta men for that!

Thanks
[Spirit FM] mikereidis:
Probably.

I think I've been clear about which devices are supported, and no others will work.
[Spirit FM] mikereidis:
I see you wrote this on another thread:

And I think you were saying that this didn't happen until the "kernel fix" for the "no headset audio issue".

The "no headset audio issue" was a general issue I easily reproduced with Apollo music player and no FM.

Especially given your comment above, I think this is not directly related to FM or Spirit.

I'd advise just giving the kernel dev(s) time to analyze and likely fix in the kernel.

I'm too busy to get involved in non-FM stuff, and too many cooks spoil the broth anyway.
[Spirit FM] rhysl:
S II I9100G , Recently my 10.1 updates have stopped Spirit 1 , 2 , I can tune but I hear nothing , no speaker or headset audio output.

THoughts?
[Spirit FM] dhiru1602:
We have recently ported the 3.0.8 kernel on Samsung Galaxy SL and during the process of migrating the FM Radio driver, I have used your application to test the FM Radio due to lack of FM Radio support on CM yet.

Galaxy SL is based on TI OMAP3630 with Si4709 FM Radio Chip (Same as that of Galaxy S) and uses TWL4030 Audio SOC.

I have noticed that the application polls for Radio Station Signal RSSI every 1 second, which calls Si4709_IOC_CUR_RSSI_GET IOCTL call (on Galaxy SL) every second. However, sometimes due to very frequent RSSI updates, the audio performance is taking a hit. There are noticeable jitters and breaks in the audio stream. I have disabled the IOCTL call on the kernel level limiting it to allow IOCTL call every 10 seconds (discard the other 9 attempts), which has fixed the issue. I believe you should reduce the RSSI polling frequency to something bigger.. 10 seconds maybe? 1 second IMO is too small.
[Spirit FM] pogi1100:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Does Spirit2 work on other ROMs besides CM (e.g. stock Samsung)? I'm just getting an FC when I try to use it.
[Spirit FM] mikereidis:
I've seen some issues on older stock ROMs.

But it's been working OK on my GT-I9300 with a stock JB ROM I tried recently. Root is required.

If digital audio mode works on Spirit1, then Spirit2 should work, for the supported Samsung Galaxy S class devices.
[Spirit FM] mikereidis:
I've been seeing a lot of general, non FM specific audio breakage in the latest JB 4.2 ROMs recently. Is all of the other audio working OK, like media players etc. ?

Some things to try:

Set Audio-> Method to "i9100G/LGP92x/TWL6040".

Try setting Debug-> Silent Loop Off (note the Off) and restart Spirit.

Or set Debug-> Play Audiotrack to "Enable" and restart Spirit.
[Spirit FM] mikereidis:
Does reducing IOCtl's eliminate or just reduce audio problems ?

I've been doing 1 second updates for the last 2 years, and on si470x for 1.5 years. Despite some devices creating log entries for each call, nobody has yet brought up this issue.

IMO the "REAL" problem is in the si470x driver, and/or the audio system. Did RSSI only start working with recent Spirit releases ? If so, I'd think it's the same 3+ year old ancient driver being used on the GT-I9100G CM kernel, and I think it should be updated to the "2009 Samsung /dev/fmradio API" with many fixes.

I hope to make this configurable at some point. Broadcom uses 3 seconds and that seems OK for many people. I've left it at one second as it can help with antenna orientation and for AF alternate frequency.

At one time, RSSI polling, and RDS, were turned off when Spirit was not on screen. But now RSSI can be used for chip independent AF and some other features, and RDS is used on lockscreen and notification screen.

Even "worse", RDS and volume control are polled 10 times a second. So far, seems a necessary evil this polling.
[Spirit FM] PiotrekStargard:
Hi Mike,

Will Spirit 2 be converted to be operational on Android ICS phones?
[Spirit FM] Lagkage:
In Spirit UL (digital mode) and Spirit 2 RDS wórks, but not audio on my SGS2 with rooted stock JB ROM.
[Spirit FM] mikereidis:
Probably not, though with a little bit of manual effort, I did build an ICS version at one point for testing on Sony's.

Official, non-beta release may be 2-3 months away now, and I'll re-consider then, or at any time.

The primary target is custom ROM users and I think most of my customers are on JB now or will soon. And perhaps Android 5 will be out by then even.

There are ALWAYS some really nice features in the latest Android versions and it's less complicated to always enable those features and to avoid "compatibility libraries".

I'm very seriously considering disabling Android 2.1 and 2.2 support in Spirit1, but I'm sure I have a few customers who won't like that. Similarly, if I support ICS in Spirit2 on official release, I could be stuck with having to support it 2 years from now, when Android 7 is released.

This is especially acute when considering "ancient" devices, like Galaxy S, that are likely to be officially supported. It may be infeasible to run Android 5 on such an old device, so their users may stick with ICS or JB forever. And if I support stock ICS & JB GS2s, users of stock will likely never see Android 5.
[Spirit FM] mikereidis:
That's what I've seen.

I think the stock audio libraries over-write the audio controls used.

Perhaps a component could monitor the controls, and re-change them if needed. I'll look next time I load a stock ROM on my GS2 or Note.
[Spirit FM] rucxy:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Hi Mike,

Some more info for you.

Dorimanx 7.47 & Cm10.1 (4.2.2), Galaxy S2.

Spirit2... with wired headphones connected, it plays music nicely.

Notifications come through whilst listening to music, music continues to play, during the notification event, no stuttering or interruptions...

I use a 3rd party app called full screen caller id from playstore as it reads out the caller id "and reads out the text msg content ( if enabled)"

Am looking forward to trying new beta or alpha as they come along..

:thumbup:

SII GT-I9100T Supercomputer.

Dorimanx kernel 7.47

CM10.1 JB4.2.1 13-2-13nightly.

Modem I9100 DOLP4
[Spirit FM] mikereidis:
FM audio should pause during audio notifications, and restart after. That doesn't happen ? Some noises/sounds aren't technically notifications though. In future, some "duckable" interruptions, like navigation, will allow merely lowering FM volume, instead of muting it completely.

The version under construction is now working well with DSP manager or alternative equalizers/effects apps. And it can co-exist better with lock or home-screen "system wide" visualizations.

Visualizations are also for FM audio only now, doesn't include "system wide" notifications for example. Frequency spectrum is more technically accurate, using vertical scale lines for specific db power values, and horizontal log2 or "octave" frequency lines.

I'm going to backport at least the audio level tweaks and equalizer support to Spirit1 digital audio modes. Galaxy S3 still suffers microphone to left channel problems in Spirit1, which this will fix.
[Spirit FM] rucxy:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Spirit2 doesnt seem to pause and unpause during notification event, not that it worries me (beta app atm).. Turning notification audio down, means no audio from notifications, obviously ;) with vibration still on. Phone vibrates and continues to play fm audio without lag or stutters, no pause/unpause etc.

That is good to hear as Cm rom uses dsp manager for audio, settings for bt, analogue headphones and phone spkr.

Compression, bass boost, equaliser, etc.

Will look out for these changes and will test them on free, light and unlocked.. and then report back.

Question. Spirit2 does not remember last audio station setting.. i live in NZ and the station i listen to is 95.4mhz, upon restarting Spirit2 it is tuned to 95.3 or 95.5, if i manually input 95.4 in it stays tuned to that until next restart. NB: it happens with all tunings even 97.8 will restart with 97.7 or 97.9, will this be resolved at some point in time....

Also i was watching battery drain yesterday. Appears to chew approx 10% per hour when spirit2 is running although i will test this some more from here, will close as many bg apps as possible and retry..

SII GT-I9100T Supercomputer.

Dorimanx kernel 7.47

CM10.1 JB4.2.2 16-2-13nightly.

Modem I9100 DOLP4
[Spirit FM] mikereidis:
Spirit2 "remembers", it's just enforcing North American band rules. The 1st 3 alphas were set for 100 KHz offsets and non-north american bands.

I'll re-consider the band setting for next alpha. But I should make frequency restore independent of the band rules too.
[Spirit FM] franky_z:
Hi! :)

I asked some time before for support for cm10 lg 2x phones, I tried it your great app but it didn´t work.

Now cm10 lg 2x has integrated fm radio support officially.

Can you give it another try? :o

Thanks for your work!!!
[Spirit FM] mikereidis:
A simple fix has it running on XXMS1 NeatROM: http://xdaforums.com/showthread.php?t=1569686

Might have some UI stability issues though.

I might post a new version tonight.
[Spirit FM] mikereidis:
You mean the CM here ? : http://get.cm/?device=p990

Alleged support for FM in CM is much exaggerated, except perhaps on a few Sony devices.

If you can show it working on your phone, I can support it. Otherwise, somebody somewhere has a bunch of work to do.

--------

There's also a new rumor today that the Nexus 7 might get FM enabled in an Asus updated firmware in March. I doubt it, but would be very happy if so. I really have no idea if there's someway to FM enable it with firmware, but just assume impossibility like on the majority of Android phones incapable of FM.
[Spirit FM] mikereidis:
HTC Desire: 2 reports of Spirit1 not working on "CM10.1 VJ Jelly Bean 4.2.2 v5.0". Spirit freezes to an FC on startup.

So far we know that an August 11, 2012 version of Spirit1 works OK, and I'm trying to determine at what point something changed.

Older versions of CM10/10.1 were OK, so it could be a CM bug triggered by something newer in Spirit, like lock-screen support.
[Spirit FM] mikereidis:
Bluetooth changes affecting common Broadcom & TI FM chips:

On recent CM 10.1 ROMs I see new system libraries, such as libbt-hci.so, libbt-utils.so, libbluetooth_jni.so and libbt-vendor.so .

I'd guess these are changes to better support newer Bluetooth features.

At least one person has reported that BT must be on for Spirit to work now and I'm guessing such issues are related to the changes. If needed, to force BT on, Debug-> HCI Access can be set to "BT Socket".

I think for many phones though, this same BT on requirement started with ICS custom ROMs.
[Spirit FM] mikereidis:
You echoed message #4 in this thread.
[Spirit FM] mikereidis:
Spirit2 Feb 21 alpha 5: http://d-h.st/P34

- For JB only, stock rooted or custom ROMs only for:

Galaxy S GT-I9000 / Player

Galaxy S2 GT-I9100 / Note GT-N7000

Galaxy S3 GT-I9300 / Note2 GT-N7100

Galaxy S4 GT-I9500 / Note3 GT-N72000 :)

- Now working on recent stock rooted JB ROMs for GS2/GS3/Note/Note2.

- Now working well with DSP manager or alternative equalizers / effects apps. Co-exists better with lock or home-screen "system wide" visualizations.

- Visualizations are for FM audio only now, doesn't include "system wide" notifications for example.

- Frequency spectrum is more technically accurate, using vertical scale lines for specific db power values (5-45 db), and horizontal log2 or "octave" frequency lines (43 - 22050 Hz.)

- Stock can use Bluetooth, but requires wired headset unplugged. Partial insertion of plug for an antenna works and doesn't switch to headset if not fully pushed in.

- Back to 100 KHz channel offsets. De-emphasis apparently was always set to 75 uS for North America, and remains so for now.

- If audio stops, press Pause/Play.

- If visualisation stops, press Back and return to app.

- Record button goes green when recording.
[Spirit FM] NoLimit64:
Spirit2 for HTC One X

I would love to test Spirit2 on HTC One X, custom or stock rom, I do both.

Been using Spirit1 UL for quite a while on custom roms en still use it even now i've (temporarily) gone back to stock.

Main reason for me would be to be able to listen to fm radio over bluetooth. AFAIK Spirit2 will be the only app able to do it and I would gladly help develop such an app by testing it on my phone.

I'll keep an eye on this thread and hope to see a HTC compatible version soon :)

Keep up the good work! :good: