yashsingh1/xdaforums huggingface dataset:
[Spirit FM] pogi1100:
Hey Mike, latest version of Spirit2 (Feb 21) is confirmed working fine on stock Samsung ROM. However, when I press the Settings button, it only brings up your alpha release message and no settings appear. Is that intended?
[Spirit FM] darka9:
Any chance LG Optimus 2x CM10/10.1 ROMS get added?
[Spirit FM] goran.zokovic:
+1
[Spirit FM] Lagkage:
Probably not. The common answer by Mike regarding LG ICS/JB custom ROM's has been: "The key to enable FM audio is a mystery" or similar.

But we can hope that the mystery is solved, but I doubt it.
[Spirit FM] dexterdre:
Re: [APP 4.0+] Nova Launcher - 2.0.1beta5 Feb 16 2013

:thumbup::thumbup::thumbup:

Enviado desde mi LG-GT540 usando Tapatalk 2
[Spirit FM] Flitskikker:
Spirit 2 Alpha works great on my S2 @ CM10.1 Feb 16. :D

I use FM a lot, so I'm happy Spirit is out there since I'm on CM instead of stock.

By the way, Mike, I've sent you an email regarding purchasing Spirit UL. Would you mind taking a look?
[Spirit FM] mikereidis:
Yes. It's not a Settings or Menu button at this time. It's a "whatever" button.

The only "setting" at this time that is saved is current frequency. To go much further, I need new settings code that needs to be designed well enough to enable easy additions and modifications.

I didn't take the existing Spirit1 code and start modifying it. I started fresh, pulling in and improving what is appropriate from Spirit1. At present, Spirit1 source code and code comments are about 2.7 Megabytes in size. Spirit2 is about 0.4 Megabytes so far, and will likely easily hit 1 megabyte or so before official release.

- Alpha means not all features for first official release are there yet.

- Beta will mean all features are at least "roughed in", but will have some "major" bugs and the UI is subject to improvement.

- Official release, on Play as a paid app, should mean it's bug free enough and featured enough for regular usage. Beyond that, bugs and feature deficiencies will always exist and be addressed as I go.
[Spirit FM] mikereidis:
HTC OneX International is capable of FM record, and Spirit1 supports that. AFAICT though, it's not capable of general digital audio. I tried and found I couldn't read/record digital audio at the same time as playing back that digital audio.

There might be some way, but I have doubts, and the extremely closed nature of the audio system makes it very difficult to impossible. Nobody even seems to know what audio chip it has. Possibly some obscure cheap Realtek chip, which also is of low quality.

Combine all this with the facts that only 2% of my income is from this phone, the NVidia SOC, obscure Realtek and TI FM chip combination is unique to OneX Int (different than OneXL or OneX+), TI is getting out of mobile, and both NVidia and HTC are continuing to sink, AND the locked bootloader stuff is a pain and custom ROM development is on the low side......

I'm sad about this because I actually have this phone. But facts are facts and I'm concentrating on more popular and easier devices to develop for.
[Spirit FM] mikereidis:
Thanks, correct.

Even IF the "little audio mystery" is solved, that's only 10% of the "battle". The other 90% is making it work well under real world circumstances, when headset cables are pulled and audio notifications or phone calls etc. interrupt.

For all such similar cases, I can only recommend:

- Finding and/or paying some dev to do the needed work, or

- Getting a phone, even perhaps a 2-3 year old model that's inexpensive used, that is better supported by devs or at least has known good solutions for FM.
[Spirit FM] NoLimit64:
Thank you for your clear answer. Sorry to hear the OneX is not one your list of phones worth developing for.
[Spirit FM] mikereidis:
So it was YOU who sent the mystery Paypal payment. :)

I presumed that was what it was for and emailed you a license file and instructions yesterday. I'll resend and PM in case you didn't get.

Thanks !
[Spirit FM] beehaapxl:
hi Mike, which versions is compatible with SGW I8150??

last try for Spirit2 Feb 16 alpha 4 is Error , Problem parsing the Package when Installing.
[Spirit FM] mikereidis:
None.

I can't support that phone with Spirit1 or Spirit2.

Parsing problem is likely due to needing JB. Spirit2 doesn't support ICS or lower.
[Spirit FM] mikereidis:
The last Spirit2 alpha, and likely others, tends to take over the media buttons, even when off.

If this is a problem, it might be easiest to uninstall Spirit2.

I'll fix it next chance.
[Spirit FM] mikereidis:
Spirit1 Free Feb 22: http://d-h.st/W0x

If any customer wants the Light or Unlocked equivalent, email me, or use a license file as always. I may put this on Play within 1-2 days but further testing is required.

- Backport of digital audio improvements from Spirit2. Audio quality should improve, glitches are reduced, GS3 mic capture is gone, stock GS2/GS3 and Note/Note2 should work, and Unlocked can work with equalizers.

There may be some issues with recording in digital mode on GS2.

- "Digital GS1" is Audio-> Method default now on the Galaxy S GT-I9000 running ICS or JB custom ROMs.

I hope this will eliminate or massively reduce speaker damage problems, at the cost of some battery/CPU. (Still 1 damage report every 3-4 weeks now.) I can't be sure though until it's widely used and a few months go by with no further reports. And even in digital mode I've seen a few cases where audio cut out and ominous crackling noises were heard.

Normally, digital audio only works for 5 minutes, unless you have Unlocked. This is the single exception, for the Galaxy S, in the hopes that speaker breakage stops. Visualizations work, but equalizers don't, except with Unlocked.
[Spirit FM] Belzebuth.:
Sorry to be back with my problem, but I don't understand why your Spirit UL doesn't work on my HTC OneX+, running a ViperX V1.04 ROM with an "FM radio" (HTC Sense) and this little one runs flawlessly...:eek:

I tried each setting for OneX+ in your app, but nothing...:silly:
[Spirit FM] mikereidis:
I don't know. From debug logs the ALSA controls seem the same.

I had my first success report on a stock OneX+ the other day. I asked for a debug log but haven't gotten it. Nobody else had reported success or not until then, despite my seeing several OneX+ sales by end of December I think. This leads me to believe stock phones are working OK. But it can be surprising how often an app won't work for someone and they don't even bother to email me for help or a refund. Maybe more so with expensive phones.

If you've given root/SU to Spirit, try denying it; it should work pretty much just like the stock app. Disabling audio focus is also often needed on stock ROMs, but is usually automatic.

If this is a stock derived ROM, did you try Audio-> Method = "HTC" and Debug->HTC = "Intent 2" ?

As I write/edit this, I'm recalling that there seems to be some weird audio volume feedback loop I faced on my OneX. It's as if something intercepts the low level call to the FM chip to change volume, and treats it as if someone changed volume with the hardware volume buttons.

This feedback loop would result in volume raised to maximum. The problem only happened on stock ROMs when using the "HTC One X/X+ Int" audio method (& ALSA variant ?). It was "fixed" by changing the stock ROM default to use the "HTC" method usable on pretty much every stock HTC device since Android 2 (Though modifiable via Debug-> HTC.)

This problem could be related.
[Spirit FM] mikereidis:
Spirit1 Free Feb 23: http://d-h.st/vKK

Summary: Spirit2 visualizer and phone call handling.

As a reminder, the latest Spirit2 releases can mess media buttons up and it may be best to un-install it, especially if you run Spirit1 also.

- BIG change for phone call handling. The handler there since the beginning (& from the original Code Aurora code) is now disabled.

The audio focus handler that's been there at least 6 months seems sufficient to handle phone calls and ringing. Having both enabled has likely led to many problems, due to double-muting and double-unmuting.

So please test with phone calls if you can and let me know. Audio focus isn't usually used on stock ROMs using the OEM proprietary APIs, and I haven't tested this yet, but I'd guess this aspect of focus is likely taken care of by the OEM APIs too.

- Several further enhancements for digital audio and recording.

Spirit1 was looking awfully boring after the latest Spirit2 releases. So the visualizer from Spirit2 has been integrated and is activated on the Unlocked version, but only when a digital audio method is selected.

The speaker/headset button becomes a record button as in Spirit2. And various glitches were cleaned up.

All of this applies only for Spirit Unlocked, or the free version activated with a license file available to customers.

With these additions, Spirit1 pretty much has every user visible feature that Spirit2 does. So, no rush for me on Spirit2 and I think it's time for a much needed vacation from software development very soon...

The screen will be squeezed on some devices due to this. There are various UI components that can be disabled to get more space. For a Spirit2 like display, disable all these under UI:

Display Frequency

Display Volume

Preset Buttons 1

Preset Buttons 2

Preset Buttons 3

I usually also disable this (except on 2012+ HTCs with no Menu button):

Frequency Buttons 2

And I enable this so that I can use the "seek up/down" buttons to select the next preset:

Freq Btns = Media

Alternatively, re-enable this to get 3 preset buttons:

Preset Buttons 2
[Spirit FM] Captain_Throwback:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

So the possibility does exist for a version of Spirit2 Alpha that works with the EVO 4G LTE? I would absolutely love to test :).
[Spirit FM] tbalden:
Reporting that finally One X tegra 3 international - CM-10.1 issues regarding mediaserver getting stuck are resolved now in Beta 5.1 boot.img :)

Now it works perfectly! (credit to TripNRaveR for his audio patch)
[Spirit FM] lrbpereira:
Re: [ROM] [15FEB] [AOKP] IceColdJelly421 - 2.1 - JellyBean 4.2.2_r1

Finally! Thanks for that
[Spirit FM] mikereidis:
Yes. At 4% of current Spirit1 sales, with the promise of more, perhaps even from US/world versions of the Galaxy S4, the Qualcomm S4/WCN3660/WDC9310 type architecture is my 2nd priority, after the Galaxy Sx/Notex.

I have a pre-built Android FM API plugin for this chip that works very well. And there is support for the audio in Spirit2.

In theory this architecture is the best; FM is designed as digital, so that's one fewer D->A->D conversion. Quality should be as good, or better than "normal".

At present though, like the existing digital audio (and record ?) support for these devices in Spirit1 Unlocked, the sample rate is limited to 22.05 KHz instead of the usual CD quality 44.1K. For some crazy reason, 320 bytes is the only buffer size that works without strange audio effects. And that small buffersize combined with system latencies results in audio dropouts and errors at higher rates. For all I know, 96 KHz w/ 24 bits resolution might be possible.

The architecture is capable of much fancier things than what Spirit2 is forced to do now on Samsungs. Spirit2 reads every bit of audio data from the ADCs and writes every bit back to audio output. Then the Android system decides if it should go to BT, wired headset, speaker or whatever.

But these chips should allow this to be done in hardware, with only setup commands being sent.

It's a pretty cool architecture, and helps explain why Qualcomm's S4+ SOCs and their related chips are so hot for the last year and look hot for all 2013 at least. It's a shame that so many though, like the Nexus 4, have no (known) capability for FM.

I think it's possible Qualcomm FM can be "locked out" like a cryptographically locked boot-loader, but I've seen no proof yet. Though there's a small mountain of leaked Qualcomm docs I haven't read much yet. I've wondered if the US "radio industry" negotiations with carriers will result in FM unlocks.
[Spirit FM] mikereidis:
Unless it's truly private, please post instead of PM'ing. Even if it seems relatively off topic to FM.

The Amaze was the first TI chip based device I saw that used a better way to access FM: via /dev/tifm . In fact the old methods via BT HCI won't work with these newer BT/FM stacks.

As long as /dev/tifm is in use, the BT chip communications (which are also used for FM) need to be kept alive. That might not guarantee the RF part of Bluetooth is kept powered, but you seem to indicate it does.

I'm not sure this would require activating FM via /dev/tifm, but it's possible that just opening it and keeping it open would work for you.

That said, there are "wakelocks" that might help, but I'm not too familiar.
[Spirit FM] chevycowboyusa:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Thank you mike!

How would I go about activating the tifm? I tried to open it to see what's inside it, but I don't know what to look at it with. I tried a text editor and there's nothing visible.

I have received a message from my computer through a BT rocket fish adapter that popped up on the phone and it wanted to make sure the code displayed was correct.

It's so close to a functioning BT that it's driving me nuts!

Thanks again.
[Spirit FM] mikereidis:
It's not a real file. It's a "pseudo file" representing a way to access the FM chip.

Basically you likely need an app, or at least a command line utility. The "ioctl" utility might work, if you know some parameters.

I can't help you any further on this.

EDIT: Except...

This command from an adb shell with root may keep it open for you. It times out and restarts every 2.5 seconds or so:

tail -f /dev/tifm
[Spirit FM] tejadakenneth:
i've been using spirit fm for a very long time but not a single time i've use recording. how to enable recording anyone? :)
[Spirit FM] mikereidis:
On most phones you can't. The needed hardware isn't there.

With Unlocked, on supported phones the Menu key shows a record option.
[Spirit FM] mikereidis:
I may have to abandon ongoing support for many devices. Comments are welcome. I know this may sadden some people, but please consider that I badly need some vacation and household time, and I get a stream of email messages every day not seen here.

It's becoming unfeasible for me to support so many devices, while trying to move Spirit2 forward, and anticipating the Galaxy S4, Note 8, perhaps the HTC One etc.

There are 3-4 year old devices getting eg JB ROMs and some create new problems for FM and I don't have some of these phones. Just finding, figuring out and loading new ROMs can take much of a day's work. These old phones are SLOW now.

And newer devices like OneX International and Razr I are producing their own share of problems that seem unresolvable.

Basically, I think I'll have to concentrate on the Spirit2 supported devices: Galaxy Sx class and Qualcomm S4+ based, and the new devices that have similar architectures and are popular with custom ROM users.

5-6-8 modern/fast/popular phones seems feasible. Trying to support 60+ phones with 18 test phones has become a nightmare and is not feasible.

As always, I'd be happy to see CM make some inroads into FM. But despite recent events I doubt more than a few Sony devices will be supported anytime soon.

As always, anyone who has supported me is welcome to a refund if this impacts them enough. I will still offer ideas and advice, but I don't want to install ROMs on older devices or get into any lengthy technical trouble-shooting. Less often I will say "I'll see what I can do" and more often I'll say "I don't have any solution".
[Spirit FM] tejadakenneth:
im running samsung galaxy sl and i see record button but i dont know how to start this.
[Spirit FM] vrwmiaris1:
Απ: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Can I use this app in Greece?

Στάλθηκε από το GT-i9100 μου χρησιμοποιώντας Tapatalk 2
[Spirit FM] 0kti:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Sure

Sent from SGS+ CM10 with Tapatalk Blue
[Spirit FM] vrwmiaris1:
Απ: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

First should I uninstall spirit fm?

Στάλθηκε από το GT-i9100 μου χρησιμοποιώντας Tapatalk 2

---------- Post added at 12:06 PM ---------- Previous post was at 12:01 PM ----------

I'm referring for spirit 2, also bt works?tnx

Στάλθηκε από το GT-i9100 μου χρησιμοποιώντας Tapatalk 2
[Spirit FM] chevycowboyusa:
Thank you!

I'll try it, and thanks again!
[Spirit FM] mikereidis:
If you see a "Record start" option when you press the Menu key, then you likely have Audio-> Method set to "Galaxy S ICS". Setting it to "Auto" or "Galaxy SL/i9003" should be better.
[Spirit FM] mikereidis:
Spirit1 Feb 24 is now on Google Play. No free version; use Feb 23 free.

- Support for the ancient Android 2.1 Eclair is now disabled. Minimum now is Android 2.2 Froyo. Trying to run Feb 24 and later on Eclair would result in FM not pausing during phone calls.

- It's now possible to disable all UI components, in portrait or landscape modes. Among other things, this makes it possible for a full screen visualizer only display.

To accommodate that, I've added a "Display Weight" setting to UI with a default of 3. This means the "Display Area" height defaults to 3 times the height of any button. Set it to "0" (zero) and the display area disappears. "Display Area" includes everything from RSSI at top to Radiotext, underneath the volume slider. Under it is the visualization and under that are all the buttons.

As a reminder, visualizer only works when audio->method is set to a valid digital audio mode.

Since many things can be done via hardware buttons, and there is info on lockscreen and notification window, the only essential added function when using visualizer full screen is an FM off function. Menu-> Sleep with 0 minutes entered works, but has some side effects. So it may be best to leave the "Mode Buttons" enabled.

Full screen visualizer is best in Landscape mode. So set UI-> Orientation to Automatic or Landscape.

To apply UI settings, hit the Back key until you get to your homescreen, then return to Spirit.
[Spirit FM] mikereidis:
No need to uninstall Spirit1 to try Spirit2. Just don't run them at the same time. In some cases a reboot may be needed to clear the problem this causes. It's easy to forget which one your running and start the other one while one is already on.

Bluetooth audio should work with Spirit2. You may need to Pause/Play sometimes.

But note there's an issue with the latest Spirit2 that can mess up media button handling when Spirit2 is not running.
[Spirit FM] tejadakenneth:
cannot find the "record start" button i only see in setting is the record then the directory,filename,file extension etc.
[Spirit FM] Zirias:
Thinking about buying this app (it's nice to have radio available on the way to work even when taking the bicycle ;)) -- I was searching this thread for infos but didn't find answers to the following questions:

- I'm using "AwesomeBeats" on my Sensation, a modified version of DSP Manager. Is it possible to enhance the radio sound using this? I assume it's done through ALSA plugins, so this would require an audio method using libasound? All the "qdsp5v2" methods work on my device, but none of them is influenced by DSP manager settings ... is the radio chip directly wired to the sound hardware? :o

- Is there a setting in the full version to reduce volume when signal strength is falling below some threshold? Really annoying to have full-volume noise when you enter the garage and need to get off the bike first to stop it ;)

Thanks!
[Spirit FM] Lagkage:
I would also like this for AF. The FM app from Samsung muted the sound when searching for a better signal. Could this be implemented in Spirit, so you don't hear the noise when it's searching?
[Spirit FM] mikereidis:
No. On most devices FM audio is injected late in the audio processing chain, as analog.

Spirit2/Unlocked are the ONLY Android FM apps that can do digital FM audio, for Bluetooth, equalizers/effects, recording and visualizations. But that requires hardware support that is mostly confined to Galaxy S class and recent Qualcomm based devices.

Most FM chips already do this. The static noise is, surprisingly, usually much higher without this feature.

There's a Squelch feature on Unlocked that can reduce volume to 0. Set AF-> AF Mode to Squelch, and you can adjust the 3 following parameters to suit you.

Some people have had "burst of noise" concerns with speaker when the headset was unplugged. For that I created the "Monitor & Mute" setting for UI-> Antenna / Headset/
[Spirit FM] mikereidis:
I guess.

I've never been able to test AF in real world use. So for testing I wanted to hear the audio throughout. Same for seek, though that's been easy to test.
[Spirit FM] vrwmiaris1:
Απ: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

M8 I've tried spirit 2 but I can't get into settings, only visualisations works

Στάλθηκε από το GT-i9100 μου χρησιμοποιώντας Tapatalk 2
[Spirit FM] rucxy:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Spirit2 is still in alpha testing, the dev is working on it. Spirit2 is a whole new recoded app and as such will need to be tested by the dev and us users.

Pretty sure if you searched this thread you will find plenty of comments about Spirit2.
[Spirit FM] mikereidis:
Thanks.

It's just part of the "game" that people drop by without reading much, due to language issues or time. Gives me an opportunity to show I answer pretty much any question I can, unlike MANY app or ROM threads, and justify my paid apps.

One surprising thing though is the number of people who complain about complex problems here, I ask for debug logs, and they turn out to be pirating. LOL.

----

Spirit2 next alpha has support for HTC OneS/OneXL LTE/Evo 4G LTE.

And Spirit1 Unlocked digital mode is now working on stock derived ViperXL 3.2.4 JB Rom for OneXL.
[Spirit FM] mikereidis:
10 inch / 25 centimetre First World tablet with FM ??

Sony Xperia Tablet Z video seems to show an FM app. If so, it will be the first major OEM tablet over 5 inches with FM, at least since the ancient Archos days.

I'm liking Sony more and more lately. HTC has a challenger now for 2nd place after Samsung in Android IMO.

Qualcomm architecture; likely WCN3660/3680 like the OneXL, OneS, Evo 4G LTE.

Might even support transmit; the chip "internal antenna" pin is also usable for transmit; still haven't confirmed if the Xperia T can transmit with the same connections.

The US won't get the "phone and data" capability though; just a WiFi model. Presumably the US carriers don't want to deal with it much. Perhaps the US model will have no FM, or no official FM.