yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
On some devices/audio methods the unmute is delayed by 5 seconds to fix this same issue.

I've just added code to do this for device "smi" also.

I guess I should make it configurable at some point.
[Spirit FM] :
What is the unmute delay for s2g? Is it congifurable?
[Spirit FM] mikereidis:
There's a bug only on devices using the Broadcom Proprietary OEM API, including many stock HTCs. A result of trying to fix a low volume issue on some device.

I'll get a new version on Play ASAP.
[Spirit FM] mikereidis:
Thanks. :)

I haven't felt a need to promote Spirit because my income is sufficient, and I already spend too much time fixing bugs and providing support, and so have little time for new development.

IMO US carriers tell Samsung "No FM hardware" and since the carriers are the customer, Samsung obliges them.

In most cases, HTC FM hardware is still active, but disabled due to no software support. The only Nexus that was ever capable of FM was HTC's Nexus One (Desire+-) and that requires a custom kernel at least to enable the audio.

I'll continue to keep an eye on the market for popular phones I can support; I don't have any blind OEM allegiances. It would be interesting to find the new LG Nexus was FM capable and I'm sure I'll get queries about it.
[Spirit FM] mikereidis:
Nov 1 is now on Google Play.

- Fix for no audio/volume controls w/ Broadcom OEM API on stock unrooted devices.

- Razr I mods.

- Stock GS2/3/Note speaker automatic.

I'm not posting corresponding free versions at this time, but links to older versions will remain in post 1 and I'll try to help people who use them.
[Spirit FM] :
The last time I check you can do this once for the same app, the second time, no refund allowed. So, keep updating!
[Spirit FM] mikereidis:
If so that's new.

I once cancelled a paid app twice. It was the Motorola stock FM app someone was trying to pass off as his own, so no guilt for me there.

And I refunded someone on their third purchase of my app, after they cancelled the first 2 on different dates and couldn't cancel the 3rd time fast enough. Told him I wouldn't do that again, so I guess that's an exception to my cancel any order at any time on request promise.

I've heard just about every story in the book too, LOL.

And I'm happy to have turned a few pirates into customers, although I note they tend to be more demanding. So I might just go back to ignoring pirate debug logs, which are usually detectable as unlicensed, and the only current reason I keep the licensing code in there. Software is sometimes free, but my time is valuable.
[Spirit FM] man76:
I tried to install spirit fm cm in S5830 with flash 9 but gives is giving error.
[Spirit FM] :
do we have a setting where we set the pause duration? I mean, if the radio got paused, it will auto resume say in 5 seconds.
[Spirit FM] mikereidis:
I'll need more information than that. Trouble-shooting tips are here: http://xdaforums.com/showpost.php?p=31983151&postcount=4465

You can send me a debug log with Menu-> Test-> Email-> Logs and after 20 seconds press Send.
[Spirit FM] mikereidis:
No, there is no configuration for this. Maybe in future.
[Spirit FM] :
I really hope you will get your hands on GT-i9100g someday.
[Spirit FM] illtown:
Dear Mike, please read my notes, regarding your app:

1. The BT. Would be great if your app could remember the BT state before it starts and restore this state after it closes. There should be the setting for that behavior, I suppose. Every time I close the app my BT remains "on", don't know if this correct or not.

2. Headset Media button. Please consider implementing more media button gestures, e.g. 1, 2, 3, 4, 5 clicks or other combinations. And it would be great to see long volume button presses corfigurable too. You can have a look at the Mort Player for a hint.

3. User Interface. This section is somewhat dependent on the previous. I, personally, lack the feature of cycling through the remembered stations inside the current preset. You could include this actions (cycle up/down) in the button actions menu.

4. User Interface: The preset. Now the preset has 6 visible configurable positions, when I configure them all the arrow buttons become active. When I press one of the arrows another group of 6 empty positions appear, and when I configure them too, this last group becomes the upmost in the list of all stations in the preset, which I find weird. I think the first group of remembered stations should stay upmost all the time and all other groups should go beneath it. Convince me if I'm wrong :)

5. Record. I know this is the new feature, and I haven't tested it yet, but I would like to say about the filename. Would be great if the filename could gain the RDS value and/or timestamp. You could implement the filename format with the help of so-called "modification keys", like the UNIX "date" utility formats its output.

That's all for now. Thank you Mike for your great app, I really appreciate your work.
[Spirit FM] mikereidis:
This is what Spirit does. The only current exception is for the stock/OEM Proprietary TI stack on older devices.

What phone and ROM do you see this on, and is the starting state Bluetooth on or off ?

I've thought of this. My primary thought is that a long press, followed by some other button presses, would allow selection of the function(s) of the media button(s).

Maybe next year.

Spirit supports this now via User Interface-> Media Button*-> Preset. I don't recall if it's Unlocked specific.

The idea is that they are a 6 preset block.

As it is now, I'd call the Spirit UI "fixed button centric". It's a simple/basic UI.

I've been looking at moving to a more modern smartphone flick and fling etc. gesture oriented UI. My guess is that more people would prefer this model.

In this model, flinging the "preset bar" of 6 presets from right to left would show the higher numbered presets, until they wrapped to the beginning.

In such a model, it might be good to reduce rows from 2 to 1, to allow graphics for each station, or more words etc.

Just thoughts, but I welcome all feedback.

I have little experience in UIs, and most people use Spirit on custom ROMs where there are no alternatives, so I haven't paid too much attention in this area. Heck, I've given absolutely no thought to button placement with regards to one handed phone operation; I'm a dev, but I'm rarely a smartphone user, LOL.

And these are some of the reasons I may favor publishing an API over doing a lot of UI work myself. Maybe 10 different people could create different UIs that run over a Spirit FM service base. I would likely favor a solution that can easily work with Android App Inventor, so that even non-developers could do this.

Record is still very much an "unsupported test feature" and much will change. But the current record settings support setting directory, filename (start) and file extension. Other parts of the filename, mostly date/time to distinguish recordings with no user action, could be configurable.

In a perfect world, Spirit could determine start and end of a song, chop appropriately, and use RDS song and artist info in the filename and MP3 or similar tags.

RIAA won't like that though, despite all the superior digital quality rips out there, LOL. Those rips make me wonder why so many want FM record anyway, unless it's to record DJ banter, a related set of music, rare music or news/discussion/talk radio.
[Spirit FM] mikereidis:
Email:

I was pleasantly surprised to see that Spirit worked on Razr I, and I added some enhancements in the Nov 1 release.

If interest is high enough (it's off to a good start) I may get a Razr I, but I don't have one now and I think our options are limited.

You could try setting Menu-> Settings-> Audio-> Volume Scale to 50 (half) or 25 (one quarter) and restart Spirit. But this will reduce the volume steps to 8 or 4 from the original 15 or so, and won't help with minimum volume.

If your phone was "rooted", I think we'd have better options. But I don't recommend rooting to average people.

I used to see some wired headsets with volume control built in, but not lately, and for phones.

Bluetooth headsets generally don't work with FM, but if you had some, you could try.

Beyond that, moving them outside of the ear, or stuffing them with tissue paper are preferrable to damaging your hearing, IMO.

Since you mention it, I prefer public discussion here on my XDA thread, for the benefit of us all.

Most phones, especially recent models, have one or more "FM audio gain" controls somewhere, besides the separate volume control on most FM chips and in FM APIs.

Most often these controls require a rooted device to access. There MIGHT be an non-root accessible control somewhere, but it might take a long time to find. AFAIK, nobody has ever seen a stock Razr I(ntel) with a stock Motorola FM app, so we have no idea how well we'll be able to make it work going forward. Motorola or a carrier could even disable FM in a future update.

Do the noises happen about once every 30 seconds ? The "Silent Loop" hack to keep the audio going repeats that often. There might be a better solution doing this:

- Enable/check Debug-> Silent Loop Off (Note the "...Off"; it's the 2nd "Silent Loop..." option).

- Set Debug-> Play AudioTrack to "Enable".

- Restart Spirit.
[Spirit FM] spunker88:
Knowing how ridiculous the RIAA is, I see your point on that. They would never take into consideration that fact that much older technology did the same thing and was deemed legal in the US court case Sony Corp. of America v. Universal City Studios, Inc which said recording content for purposes of time shifting does not constitute copyright infringement, but is fair use.. But I can understand you not wanted to get involved in legal issues, and since the internet is a global medium, laws in the US may be different in other countries.
[Spirit FM] mikereidis:
Galaxy S3/SIII LTE GT-i9305 with ro.product.device = "m3":

I've disabled this device on Google Play due to too many sales on stock un-rooted devices that can't support FM. Of course, since most 9305s do not ship with an FM app, there is much interest and many installs.

Unfortunately, this will cause update and re-install problems for anyone who may have Spirit working on their 9305. As of Oct 31, there were 13 such sales, but I don't know how many worked, if any. Amazingly, some people just move on and don't bother asking for a refund I've seen. But then some of those review Spirit badly.

If Google supported FM, we'd have an FM permission, and this would all be automatic.

If you have a 9305 and Spirit works for you, and this causes problems, email me and we'll figure something out for updates.

Unfortunately most (but not all) GT-i9305s do not ship with the needed low level software for FM. We think the hardware is there, but rooting and installing a "custom ROM or kernel" will be required.
[Spirit FM] xmguy:
Any word with Spirit working with the RAZR HD? I wanted to get the latest version but it isn't shown in the play store anymore.
[Spirit FM] mikereidis:
No. We know the Australian Razr M has FM, and nothing more at this time. No FM threads for HD yet, but here's the one for M: http://xdaforums.com/showthread.php?t=1952836&page=2

Don't expect much movement unless somebody with more time than I, and perhaps an actual phone, makes a breakthrough with a custom kernel or ROM, IMO.

Razr I is working reasonably well, which really surprises me for an Intel based phone. Verizon doesn't seem to carry it though. I would avoid Intel at this point, but reviews seem good, the phone seems popular, and I'd guess it must be high end given the $600 or so price.

As explained in my stats post: http://xdaforums.com/showpost.php?p=33751133&postcount=4761

I've cleaned up the Play compatibility list to limit the over 2000 device names to the most popular 150 names; about 80 phones.

Now I will get a lot fewer "it doesn't work" emails, and have more time to do needed cleanups and further development.
[Spirit FM] mikereidis:
November 8 Spirit FM Radio Free: http://d-h.st/Um7

Hopeful solutions for LG Optimus Black P970/Marquee LS855 and LG Optimus 3D/Thrill 4G/Handy P920 / P925.

- The GT-i9100G Audio-> Method looks like it may work on LG P92x and has thus been renamed "i9100G/LGP92x/TWL6040"

- The LG3 Audio-> Method has been changed to "LG3 / TWL4030". It may work on LG P970 / LS855.

If setting the above Audio-> Methods don't work (and they should be automatic anyway), try enabling Debug-> Silent Loop and restart Spirit.

- I looked at Optimus 2x P990 also. The tegra-wm8994 ALSA driver setup needed looks a bit too complicated for me to attempt now, at least without having the phone to test.

Intriguingly, the P990 seems to have a very rare digital connection straight from the BCM4329 FM/combo chip to the Tegra2 SOC. This is in addition to an analog path into the wm8994.

-----

I'm not intending to do much development right now, but while documenting and analyzing I came across this possibility of easily re-enabling some devices that were working OK on GB/CM7 but not ICS/JB.

I've spent some time cleaning up the first 3 posts of this thread and the FAQ also.
[Spirit FM] mikereidis:
:)

I may be able to use the existing Galaxy S3 ALSA audio method as a guide. It might be best to avoid this method though, since I hardcoded numbers, and the P990 driver has 272 ALSA controls, compared to the GS3 with only 257.

But there's a good match up in control names, like "IN1L PGA IN1LN Switch". GS3 and P990 use different pins though.

The GS3 WM1811 chip is supposed to be pretty similar to the GS and P990 WM8994 chip. GS driver is simplified and has just about 10 controls.

Gimme a day or 3 and we'll see if I can cook something. I can never guarantee early test code is safe to speakers and audio chips though.

I see new P990s on Ebay from $270-$600 shipped, ignoring the $1k place-holders. And I see a local one used for $160. P990 claims 89 sales of Spirit, so might be worth a test phone if we can make it squawk.
[Spirit FM] illtown:
Well, I use HTC Desire GSM with JB/CM10 Elk759's v0.37 ROM, based on Nikez Lente, I guess. The ROM is dead now, but it is pretty fast and stable. So I start Spirit with BT off, then close it with the bottom right button, and the BT stays on. Persistent behavior.

The Media button's long press is used for "Google Now/Voice search" globally by default.

Yep, found it, called "Preset UP", but where is the "Preset DOWN" then :D as long as "Seek DOWN"

If you ask me, I use one web site service, which records, crops, names and organizes radio music for me, all I need to do is to remember the time and the radio station. So, the Record feature shoudn't be too sophisticated, just a basic functionality, imho.
[Spirit FM] borich:
as far as you know...will it works on nexus 4 and\or Optimus G?

thanks;)
[Spirit FM] Steppenwolfie:
.

That's admirable of you, but knowing your usual work ethic is pretty understandable as well. The P990 is at CM10 nightly stage, since ics sources have been released a few weeks ago, and according to the latest changelog we can expect this "updated audio HAL" in a few hours. Don't know if it could be of any use, this is not exactly my field of expertise.

Normally I wouldn't recommend you to buy such a crappy phone for testing purposes, however it could be a valuable idea, considering that you sold 89 licenses on a device with a perfectly working CM7 fm radio. Right now P990 users on JB won't have alternatives but yours. The P990 community is still very active and generous as well, given the amount of spontaneous donations we have made to Ricardo Cerqueira for his hard work.

Besides, I would gladly upgrade to the full version :cool: (is it even possible to discount the light version price from the full one? yeah I'm that stingy :good:)
[Spirit FM] :
- The GT-i9100G Audio-> Method looks like it may work on LG P92x and has thus been renamed "i9100G/LGP92x/TWL6040"

why do i need this. currently set to automatic. do you think better set to i9100G (no work) ?
[Spirit FM] mikereidis:
I'll see what I can find.

One strangeness I've seen in many custom ICS/JB ROMs, that I don't see in stock ICS/JB ROMs (I think; I'll check), is that parts of Bluetooth are running all the time, whether it's configured or not.

This prevents the Spirit UART mode from working, and required some fancy hacks to detect and workaround. The hacks might be responsible.

I've never had a Desire HD or similar Nexus One. I've checked EBay, but the prices always seem close enough to Desire HD prices I couldn't bring myself to buy one.

Stuff like this is one reason not to try and get too fancy with the buttons. On stock Samsung devices, Next and Previous map to volume controls and I can't seem to over-ride that.

Under User Interface-> Media Buttons Prev + Next.

If you only have one button, up makes the most sense to me, whether it's volume up, seek up or preset up.

If you have three buttons, like many modern phones and decent wired headsets, you can map Previous and Next to Preset Down and Up. (Assuming you don't have a ROM, like stock Samsung, that over-rides these.)
[Spirit FM] mikereidis:
Send me a debug log when you get one, or ask some first buyers to do so.

Some variants of the Optimus G are reportedly going to support a stock FM app. Spirit will likely work on those at least, with a stock or custom ROM.

The Nexus 4 might be like the Nexus One (HTC Desire++) and have a hidden FM capability, that requires a new kernel to enable FM audio. I hope so.

Or it might be like every other Nexus and have no way to enable FM in software.

Chances are better if the Qualcomm S4 Pro SOC is used with it's common reference design companion chip, the WCN3660/3680. This is a Qualcomm combination chip for BT/WiFi/FM. Most S4 based devices use this chip, but the US GS3 is a sad exception.

Then the only remaining question becomes: "Is the FM Receive antenna pin of the WCN36x0 connected to the headset ground, or anywhere else useful as an FM antenna ?".
[Spirit FM] genarinho:
P970

Hi Mike!

Debug log of LGP970 attached.

Thanks!
[Spirit FM] mikereidis:
I've done quite a few upgrades and Play description includes:

"Please email me... to upgrade, cancel, or for ANY problems or questions.

I simply cancel the original order, and can do so even years later it appears.

I took a look at the latest CM10 audio libraries last night and there is no trace of FM in them. I'll check again after they change, but probably no FM still.

I'll try to post a new test release within 12 hours with some P990 stuff.

When there is no FM support in the audio libraries, the biggest impact on me is whether or not Spirit can "get along" with the libraries, without interference between Spirit and the libs.

So if there are big changes in the HAL, the new HAL is most important to test, but it can be useful to test with the old too.
[Spirit FM] mikereidis:
Only the method name changed for you.

The default of Automatic is usually best for any setting. Setting manually can stick you with an old method instead of getting automatic improvements.

Only use a manual setting for clear improvements or testing, or strong personal preference.

It's a goal that all needed and phone or ROM specific technical settings will eventually be automatic. If it's clear that some manual setting is best for the majority of phone/ROM users, let me know and I'll try to make it automatic.
[Spirit FM] mikereidis:
I don't see it. Should I presume you got no audio ?

A note to you and anyone who publicly posts logs:

Occasionally there may be some info in there you want kept private. I've seen a few phone numbers of callers for example, but Spirit no longer logs that. I think stuff like this is rare-ish, but you never know.

I personally don't worry about posting my logs publicly though. But if I frequented web sites I wouldn't want the world to know about, I might worry that Firefox would crash and expose a URL in the logs.
[Spirit FM] genarinho:
Oh sorry...i don't know why not attached.

Uploaded in my 4shared:

http://www.4shared.com/office/UtwUPTzW/sprt_debug.html?

Tunning OK. No audio.

Thanks!
[Spirit FM] Goalba:
Will it someday work with Xperia 2011 devices? I have to stay at stock based SE ICS ROM due to the lack of FM Radio on Cyanogenmod 9. Sorry if asked before
[Spirit FM] mikereidis:
Thanks. If you're not the same person emailing me about P970, then the results are the same for another person.

Well the schematic indicates the audio chip is TWL5034 and not TWL4030, but the driver is 4030 so I imagine it's compatible. I also see reference to a WM9093 audio chip in your log and the schematics.

All I can say for now is I don't know.

And again, I'm just taking a quick 3rd-9th look at some of the devices I've had difficulty with. I'm not expecting to buy a P970 or spend further time investigating.

I'll do my best to cover the most popular and recent higher end devices. Support of rarer devices will require some luck or some developer or tinkerer to "champion" the device and do most of the work figuring out the secrets.
[Spirit FM] mikereidis:
EDIT: If any other FM app can be found to work on a device/ROM combination, I can generally figure out what it does and duplicate.

From post 1, here are some alternative apps you can try: See FMCyanogen.apk or FMCyanogenHoloStyle.apk : http://xdaforums.com/showpost.php?p=27560996&postcount=1 links to http://xdaforums.com/showthread.php?t=1829793 and http://xdaforums.com/showthread.php?t=1761549

-------------

Otherwise...

I think not, unless someone somewhere can tell me the magic commands to enable audio. It's sad to see even RDS working, but with no audio, and it's been like that on most SE products since the first Spirit releases early in 2011, and I've made many unsuccessful attempts at various SE phones.

Someone has been sending me logs and trying new things/builds I've thought up, for an Xperia Arc LT15i. I've even looked quickly at some schematics for some SE phones.

And SE has even released their stock FM app source code for 2011 phones, but it doesn't help me with the audio enabling, which is in the (I think) still closed source audio libraries.

I'm under the impression that many or most SE phones with FM support FM recording. True ? Do any support FM over A2DP BT headsets ? If so, someone should try with a BT headset paired.

Even if we found a magic solution, they usually require LOTs of finessing to make work just right. And at this point I don't think I'll be buying or even borrowing any 2011 SE phones.

If I support any Sony products well going forward, they will have to be quite popular, or at least be very similar in audio & FM architecture to other popular devices.

I hold hope in this regards for the Qualcomm S4, S4 Pro and similar SOCs connected to Qualcomm FM/combo chips. HTC OneX LTE and OneS were pretty much the first in this line, which has now been joined by some Motorola and LG products. This architecture appears to be popular among high end devices going forward.
[Spirit FM] mikereidis:
November 9 Spirit FM Radio Free: http://d-h.st/k0C

- Hopeful solutions for LG Optimus 2X P990, but "at your own risk"; see below.

- The LG4 Audio-> Method has been changed to "LG4 / P990". It may work on LG P990.

I get a little nervous about poking ALSA controls I've had little experience with, and when I don't have the phone myself. Anyone trying this needs to accept that there are always risks where hardware and software meet, and the risks are higher in this case.

It's the same WM8994 that has caused grief for many Galaxy S users (though no speaker damage reports for 4 weeks now !).

The way I wrote the code, especially when speaker is selected, there could be many unusual effects on audio, even after Spirit/FM are turned off. A reboot may be needed, or enable Debug-> Power Restart Media.

If setting the LG4 Audio-> Method doesn't work (and it should be automatic anyway), try enabling Debug-> Silent Loop and restart Spirit.

Be sure to press Pause/Play and Speaker/Headset a few times.
[Spirit FM] mikereidis:
November 10 Spirit FM Radio Free: http://d-h.st/P5Y

- Audio fix for Galaxy Note2 3G.

Also on Play.