yashsingh1/xdaforums huggingface dataset:
[Spirit FM] JimDandy68:
Thanks, Mike

I tried out some random builds in there, including the first an last, and no luck. Folks on the Amaze 4G thread say it just doesn't work these days, even if they've properly implemented the radio within the ROM.

I believe that old thread was referencing a build from January of 2012 (yes, a long way back). It also mentions a "TI Proprietary" setting, if that helps narrow it down. Very much appreciate your help.

Regards,

Josh
[Spirit FM] mustasusi:
There you go. Check your email please.

I'm eager for this to work, as for now I can only listen to radio in mono. Is Qualcomm better than Broadcom?
[Spirit FM] zoli0312:
Spirit FM Galaxy s2

Hi everybody!

I have a galaxy i9100. The spirit ul is working, but no sound. It has search the chanels and found it, (the rds is working, every chanels found it) but no sound. Why?

please help me!

(soory for my english)

thanks
[Spirit FM] Lagkage:
Strange, Spirit on I9100 should work out of the box.

What ROM do you use? In Spirit go into settings and try to set Audio->Method to "Samsung Galaxy S2/Note ALSA" or "Digital Auto".

You could also try Spirit2 linked in the first post.
[Spirit FM] mikereidis:
Everything has pros and cons. And things like RF sensitivity very much depend on the generation of chip.

Broadcom is still the most common/popular FM/combo chip.

But the combination of Qualcomm FM/combo with Qualcomm audio, Spirit already supports on any phone with those.

Qualcomm has a cleaner interface to the FM hardware. Broadcom requires Spirit to jump through hoops to access an interface that's shared between FM and Bluetooth.
[Spirit FM] mikereidis:
Galaxy S GT-I9000.

In case anyone missed it, I've reversed my decision to not support Galaxy S in Spirit2, at least for now, and likely until it disappears from my sales stats.

So, GT-I9000 is now supported in Spirit2, on rooted AOSP ROMs only. I just posted a new Nov 26 version, which also adds first HTC One support: http://d-h.st/lhb

Speaker damage is still a risk for a small minority of phones.

Voodoo sound support is still required in the kernel, but almost every AOSP GS1 kernel has that now.

There is still likely a high pitched sound and mono issue in some cases where the microphone was used for non-telephony.

CPU consumption is high on this older, single core CPU.
[Spirit FM] mustasusi:
Can Spirit work on HTC Max in its current stage? Do you have a (temp) workaround for me?
[Spirit FM] ashutoshgoyal:
I am using OmniRom (android 4.4) on Samsung Note N7000 and both Spirit and Spirit2 are not working.It seems it can detection stations but there is no sound coming.
[Spirit FM] mikereidis:
As I emailed:

Thanks for the log.

The Qualcomm FM chip API seems to partly work, but fails for some reason. Hopefully I can identify the problem and fix that at some point.

The phone uses Qualcomm FM and Qualcomm audio, so I think it should work when the phone is rooted, and if so I'll try to support it in Spirit2.

Unlocking is not needed, unless it's a necessary step to rooting.

If you can wait, sooner or later someone else will let me know if it works while rooted.
[Spirit FM] mikereidis:
I'll look at the OmniRom.
[Spirit FM] mustasusi:
As I replied:

Thank you for the reply!

If I can have a working spirit HTC Max by January 2014, the time I'm planning a trip to U.S.A., I'd be so grateful on one hand, but I feel uncomfortable to press you on the other hand. AFAIK, unlocking the bootloader is a necessary step for rooting and a new post from today reveals there is a possibility to save the F\P sensor alongside with ROOT. Gonna look into it and attempt following the next few days, if simple enough.

The most important thing I need to shed some light on is the Mono playback by stock. Is it software fault or hardware (means that HTC didn't really care and just for the proof of concept)?

Your thoughts?
[Spirit FM] mikereidis:
Could be either.

Weak signals switch all FM chips to Mono. Are the signals strong ? A hardware problem could result in weak signals due to a bad antenna connection to the wired headset. You could try different wired headsets.

I'd think software is the more likely culprit though, and presumably HTC will fix this in an update.

Are other One Max users having the same problem and has anyone asked HTC about it ?
[Spirit FM] mustasusi:
It's not a reception problem, if you wondered the reason I asked from the beginning. for overcoming any doubt, I placed a personal FM transmitter connected to an external mp3 player next to phone, reception bar showed maximum and still mono while my Note 2 beside it did perfectly fine.

To compare with someone else is nearly impossible putting aside the chance anyone with HTC max would read this thread AND care about FM AND is skilled to notice the differences between Stereo and Mono outputs. Looks like the XDA section dedicated to this device goes as slow as hell, assuming in advance the relatively small users community who also know how to develop. Having mono radio for me is as much as not having at all. I could either go for cheaper Note 3 and enjoy the S-pen benefits. I don't wanna feel any sense of regret for my precious 720$ since I like anything else in this device.
[Spirit FM] mikereidis:
It's working for me, with Spirit1 and with a Spirit2 update.

For Spirit1, set Audio->Method to "Samsung Galaxy S2/Note ALSA" or "Digital Auto" for Unlocked.

OmniROM does not come with SuperUser or SuperSU app. I installed UPDATE-SuperSU-v1.65.zip from recovery.

Even then, I saw SuperSU issues, and just set default to "grant" for now.

The next release of Spirit2 will add device recognition for OmniROM. It annoys me that they are using non-official device names in many of their ROMs since Spirit2 is currently using the ro.product.device values to identify devices.
[Spirit FM] tigourubu:
Tks, i'm use Htc settings and now ok

Regards
[Spirit FM] mustasusi:
Hey Mike,

Check this stunning news out:

I took a brave decision and rooted my device. Spirit is now running and working!!! Reception is not bad at all - now I can compare by numbers and is also a negative value reachable for poor reception. Stereo is there too, with slightly better threshold, starting from 22 unlike the Galaxies that turned open wide from 32. So it is a software fault indeed!

Recording is there too with MediaRecord and default\Mike but result is mono. Any idea with this? (Please tell me its possible)

No sound on digital mode and speaker doesn't work either.

All in all I can still breathe in relief. Awesome device, really!

Just for a side note: The original stock radio doesn't turn on and it messes with the output in Spirit too. I need to force stop "RadioService" process to fix it. Not that I'll ever want to launch the stock radio again.
[Spirit FM] mikereidis:
Good... :)

Qualcomm has a "new" OEM API for unrooted devices; I see this on my MotoG (which I now have working, stock and rooted) and LG G2 may have it too. It seems mostly a change from the name "android.hardware.fmradio" to "qcom.fmradio". But even with this HTC is fond of adding their proprietary phone specific stuff, so there's a good chance I would at least have to examine their FM app for the latest secrets.

Wow, MediaRecord is a crap-shoot, I'm surprised you got it working at all. HTC may have enabled this for using SoundHound or similar to identify FM music, and all they'd need is mono for that. And mike's are almost always mono so there may be no way around it. I assume you tried the other device settings.

I'll guess your Audio-> Method is defaulting to "HTC" which is the standard set of methods on stock HTC devices. Maybe setting Debug-> HTC to "Intent JB" would give speaker. Another trick is to remove the headset plug enough to trigger audio-> speaker, but still in enough for an antenna connection.

My MotoG is "half rooted" now, so I can't see if digital audio works on it yet. If it doesn't, the One Max may need the same trick.
[Spirit FM] mustasusi:
FM on Motorola device? Long time no see...

I assume "default" option directs to "mike" anyway - can't you tweak this like you did for Samsung? HTC integrated a soundhound button and it records the system source since it recognizes a song playing without me to grab the earpiece closer to the mic. It looks similar to the "record" button Samsung integrated in their devices and they too "thought mono would be enough for that". You found out eventually how to address it and take over. Maybe you can track the sound hound process and play with it?

What about digital? Soon as it works wouldn't it allow a fine recording anyway, as it allows 3rd party EQs and DSP managers to work with.

No luck, no speaker!
[Spirit FM] mikereidis:
The new Google Motorola seems to be improving. We'll see...

The biggest problem is that the One Max doesn't seem destined for large sales, many custom ROMs, nor too much interest among the citizens of XDA.

So I don't expect to get one, and it's support may be largely limited to how similar it is to devices I DO have.
[Spirit FM] babyporch:
Nexus 5

Hi, i'm testing the franco kernel r15 for nexus 5. He enabled the radio on latest kernel, but i'm unable to test spirit2 (device not supported).

Can you enable support for this device to test it?

Thanks.
[Spirit FM] mustasusi:
Recent updates from last night trials:

Digital playback + recording are now working using "OneXL/S/Sony" method!

Speaker is working too! (digital only).

Obviously "digital Auto" redirects to "HTC one" because logically we all used to think that all HTC one family is the same.

The only problem now is the too high volume output which distorts the sound. Check out this record sample for more clue...

This seems to bee a common issue for either "popular" devices and "unpopular" newer-than-Note1-devices. I'm familiar with this from the Note2 and I think S3 too. Any idea?
[Spirit FM] JimDandy68:
It looks like the build referenced in that old post was 120104 (Jan 4th, 2012). Don't know whether you archive that far back, but if there were any way to get a copy of that one to try out, that would be great.

Thanks.
[Spirit FM] mikereidis:
Actually Digital Auto defaults to GS2 if the device isn't recognized. One Max names seem to start with "t6" which I don't have any code for at present.

So, since "OneXL/S/Sony" works, we know that the One Max uses a standard Qualcomm combo: SOC, FM/combo chip and audio.

So I can try supporting it in the next release of Spirit2, within 12-24 hours maybe. I've made some changes that I think will improve this Qualcomm support on newer devices.

For the older HTC OneXL/OneS/Evo 4G LTE devices, I had to make buffer size super small, which leads to dropouts, and had to lower sample rate from 44 to 22 KHz. My Moto G works much better now with larger buffers and 44 KHz and I think/hope this will improve things on many other Qualcomm loaded devices, including Sony Z and other 2013 Sony's at least.

The Audio->Volume Scale setting can be set to values lower than the default 100 when volume is too loud, but that mostly applies just to non-digital modes. But you can try this, especially when using the non-digital with Audio-> Method set to "HTC OneS/X LTE ALSA".

But this won't help if an input is over-driven and requires input gain to be reduced.
[Spirit FM] mikereidis:
I meant it when I said I have pretty much every version ever released.

I still have each image of the source code too, but I should do some deleting of that by now.

Here you go, a blast from the past: http://d-h.st/J1S
[Spirit FM] mustasusi:
Yes, the international variant (what I have) is "t6_ul", the Verzion variant is "t6_vzw" and the Sprint is "t6_spr" AFAIK. All of the have FM I believe.

That will be just awesome! I feel like I made so much progress with this device in less than a week since I got it. starting with mono audio only to Stereo Analog\digital + record + speaker. I remember you mentioned some place that Qualcomm chips tend to be more friendly and flexible. You can't even imagine how much relief I felt to know the HTC max has it...

I didn't actually notice the difference in sample rate. Maybe because the sound is too distorted to determine. The volume scale has no effect on this unfortunately.

On analog it sounds OK anyway, minus the ability to record at all...
[Spirit FM] cajunflavoredbob:
In reference to a post in the Spirit2 thread about digital audio forcing a reboot on the Xperia Z1.

I tried the Digital Auto mode and the Digital OneXL/S/Sony mode. I've included a logcat v long for each for better readability. I've also included a last_kmsg for each. Auto mode and Sony mode are labeled separately. Hope it helps.

I'm loading up a new ROM in a few minutes, so I'll give it a go with that one as well just in case it's ROM-related. The ROM I'm currently using and the one I'm about to load are based on stock, not AOSP.

EDIT: Just for fun, I tried all the other Digital Audio modes, such as One and Note and so on. They all have the same forced reboot effect when applied. Analogue audio works perfectly fine as always.
[Spirit FM] miskolci:
Samsung Galaxy S Advanced I9070

Hello,

pls, do you have support in Spirit or Spirit 2 for my I9070 - Galaxy S Advance? I tried I9000 setting, but i don't get signal

THX
[Spirit FM] mikereidis:
No.

Spirit1 might have worked at one time, at least on stock ROMs.

I had 5 customers with this phone over 2.5 years, and almost no info, so I removed it from the supported list.

I think it uses a BCM4330 FM/combo chip and SOC is DualCore/STE U8500.
[Spirit FM] JimDandy68:
Thanks so much. Couldn't get it to work with Evervolv 3.3.1, but I'll try with some other JB ROMs.
[Spirit FM] saumar:
Having said that I do not use spirit because I never use the FM radio,but someone asked me a way to listen FM on their phones,so I've tried many version of spirit 1 some months ago on my sis S Advance and on a Samsung ace 2 I8160 of a friend of mine,both on cyanogen 10.1 based ROM,and it works just fine with some specific settings...

The only settings I changed to operate spirit are these:

I admit that at the time I knew next to nothing about Android and the various apps, so I did a simple search on google and came out your app Spirit, so I apologize to you Mike if somehow, I used your app without license ... then I became aware of this thread and how much work you do for the community, so I tried to convince my sister and my friend to buy the unlocked version of the spirit since they regularly use it... I sincerely hope that they will support your work. In the meantime, I'm trying the various releases of version 2 of spirit and I can say that it does not work on cyanogen 10.1 S Advance, I hope that Spirit 2 will work in near future just like the previous app .. I will continue to spread the knowledge of your app to the community, really deserve to be supported for the work you do.

Thank you sir Mike,have a good day from Italy

Inviato dal mio GT-I9070 utilizzando Tapatalk
[Spirit FM] andmail:
I9000 is there speaker damage risk on 4.3.1? There is no digital button in Spirit FM 1.
[Spirit FM] mikereidis:
Thanks. There's always been free versions of Spirit, but with reduced capability of course.

The most important setting there was Audio-> Method, set to "Galaxy S3/Note/S2_ICS" and that likely works only on stock ROMs, or ROMs using the stock audio libraries.

To be honest, as always, there is 0.0% chance of support for Galaxy S Advance in Spirit2. In theory someone could write tuner and audio plugins for it, but there are few users of this device, and it's getting dated now.
[Spirit FM] mikereidis:
The only ways to avoid speaker damage risk on I9000 is to run a GB 2.3 or earlier stock ROM, or CM7.

The warning and dialog to use digital only pops up when a GT-I9000 is detected.

If it's not detected, then Audio-> Method will not be set, and there should be no risk unless and until you set it manually. And you should get a warning when you set it manually.
[Spirit FM] mikereidis:
Thanks.

The crashing is the well known Qualcomm V4L FM driver crash that happens when you try to access it before it's kernel module (and the firmware) has been loaded.

This should be independent of the audio mode/method though. But maybe there is some connection between tuner API and audio API.

If you're on a stock Sony ROM, or closely stock derived, you should be able to run the Sony FM app, close it, and SpiritX shouldn't crash the phone.

Since you are rooted, you should set Debug-> FM Chip to "QC V4L (HTC)". Otherwise Spirit uses the Sony OEM API, which has pros and cons. It may also help to set Debug-> FM API to "Low Level".

On stock 2012+ Sony's, you should be able to use stock Sony Methods: Set Audio-> Method to "Sony Z..." (required for Z or later) or "Sony/QC Intent" (for before Z). Stock Sony audio is pretty much already digital, with no help from Spirit.

But Sony audio has been changing a lot the last year so I won't be surprised if a method that worked in August on the Z may no longer work, especially on later devices.

The ALSA method and the digital method both require root, and they bypass Sony's audio libraries.
[Spirit FM] mikereidis:
HTC One KitKat Android 4.4 update:

DAMN You HTC !!

See post #7171
[Spirit FM] mikereidis:
HTC One KitKat Android 4.4 update:

DAMN You HTC !!*

You are among the last major bastions of FM on Android, and now this.

You now require a system level permission (com.htc.permission.ACCESS_FM_RECEIVER) to access the Broadcom OEM FM Radio API support needed on stock, unrooted devices.

I saw this permission on 4.3 but it wasn't yet required.

I don't have the system key (of course), so I can't support the One stock unrooted anymore. And I imagine other HTC devices will soon follow.

Sony did this on 2011 devices, and it's one reason I couldn't support them. Even now, despite Sony releasing all source code for the 2011 FM app, nobody can actually use any resulting 3rd party app due to permission.

Why a need to "protect" the API ?

Are carriers and phone OEMs getting tired of a 3rd party app (Spirit) working on phones they don't want FM on ?

Is Emmis/NextRadio or some similar 3rd party asking for this, so they have exclusivity ?

Expect email from me asking why. Guess I should get with the times and twitter, Google+ or whatever too, so it's public.

I imagine you will point out that these APIs are un-supported, but I don't care. The fact is there are people using Spirit on stock. This creates no related problems for HTC (other than perhaps complaints from carriers or other 3rd parties), and it's a simple matter to switch the permission check back off.

I guess from customer emails I'll get an idea soon how many people use Spirit on stock unrooted HTC One's. Probably not many really, but I'll see.

I'll update this post with further information as it develops.

*I'm trying not to jump to conclusions too fast, but I'm kinda ticked off right now and want to get this out there.

The reality is that most of my customers are rooted and most of those are on AOSP ROMs, so this will affect few people and not impact me too much.

But it makes me more skeptical about supporting stock APIs on Spirit2 or some variant. I actually have 3 OEM APIs (in addition to Sony's) "roughed in" at the moment, but unsupported.

AND it makes me less likely to continue to recommend HTC devices. Go Moto G ! :)
[Spirit FM] cajunflavoredbob:
If it's already digital audio on the Z1 without changing anything then I'm set. I was just commenting that if I go to Settings > Audio > Method and select Digital, it forces a reboot. I thought that had to be done in order to get digital audio.

Spirit UL works perfectly right out of the box with no need to change any settings, though. I think this was just confusion on my part about enabling digital audio to try and troubleshoot the problem with Spirit2 not working at all. As always, I'm in no rush. Spirit UL works 100% without needing to tweak a single setting, so I'm perfectly happy.
[Spirit FM] cooudys:
Hey, how do i set the application to lg l7 p700. Thx ;)
[Spirit FM] mikereidis:
Can't.
[Spirit FM] mikereidis:
Well we need to get that crashing fixed, or Spirit2 won't work for you.

Unless I set the Z1 to be "Sony's digital audio", but that's only going to work on stock derived ROMs, or those with the FreeXperia FM app. And I want it to work on pure AOSP ROMs too.
[Spirit FM] cajunflavoredbob:
Most people on the Z1 are using stock-based ROMs, since unlocking the bootloader deletes the DRM keys and kills - well, stabs vigorously with a rusty, sharpened spoon - the camera. There are very few people using AOSP ROMs currently due to this. We're all waiting on the software fix from Sony for it, though a few devs are working on kexec for booting dual kernels to circumvent the problem.

Anyway, just bringing this up so you know that focusing on AOSP for the Z1 may be a lost cause depending on how the next official update changes the game.
[Spirit FM] mustasusi:
OK, I don't know how exactly I did it and how exactly did it happen, but now Spirit is working flawlessly!

Digital, same settings I told you before, clear audio, stereo, no distortion and recorded file is accordingly. Win-win-win-win situation!

In fact I didn't touch the radio for a few days, that time I managed to flash a custom ROM and set that volume scale to 30 but I'm not sure it has anything to do with the sound problem. The best part is: I can carefree tap the "record" button without concerning mono fallback which leads me to double check the result and performing a procedure for stereo triggering.

Now I need to know what I should NOT be doing in order to keep it that way. Afraid to even reboot as such action could result in mono fallback at least with Note 2...

To sum it up: HTC ROCKS!!!:victory:
[Spirit FM] mikereidis:
Accommodating Sony's with Spirit in general is hardly worth it. About $700 this year spread across 14 models. The fact that most are running stock means the stock FM app is always there and it's not too bad.

I've never even rooted or unlocked my only Sony, an Xperia U, LOL.

Anyway, I think/hope I fixed your Z1 crashing issue in Spirit2 Dec 3 on Play.
[Spirit FM] mikereidis:
Good.... If it ain't broke, then don't touch it...

No, no, no... Didn't you see my post above about how much HTC sucks now that they are "protecting" the FM API with system permissions ? LOL. ;)
[Spirit FM] mustasusi:
Yup, I guess I'm not going to upgrade to KitKat until you find the cure...
[Spirit FM] itsmemario:
I come back here, if the Optimus 3D recieves its official 4.4 update by LG itself. (lol) Until then, see ya and keep up the good work. Spirit 2 already looks great man !
[Spirit FM] cajunflavoredbob:
Stock Sony FM app isn't bad, but it's not very good either. You can dial in to a station, set a favorite channel, and nothing else. Settings include switching between US/EU/Asia bands. It's just very limited.I do like the visualizer in the background, though.

To be clear, the reboot thing only affected Spirit UL. Spirit2 simply didn't work at all for me.

I applied the update to Spirit2 from the Market, and after granting root to it, it forced a reboot. I'll move this bug into the Spirit2 thread and see about providing logcat/kmsg.
[Spirit FM] mikereidis:
Right now the only cure is root and the UART mode, which is inferior to the HCI shim mode which can't be done on One's KitKat.

There are some other possibilities, we'll see. But I'm hesitant to do anything HTC can block again, and the number of stock One users of Spirit is pretty small I think.

So, like the Razr I before it, perhaps I should pop up a warning in Spirit. Many people will ignore it, or just click past it, but a few take note.
[Spirit FM] mikereidis:
The so called visualizer seemed to be completely unaffected by the audio, on the Xperia U and the Z I tested.

AFAICT, it's effectively just random eye candy.
[Spirit FM] cajunflavoredbob:
Same thing on the Z1's FM app. It just provides eye candy. Nothing at all to do with the music.
[Spirit FM] alonsosjumper:
It´s compatible with Mediatek MTK6589T?
[Spirit FM] Nitemare_real:
Hola Alonso, since Mediatek doesn't public kernel sources, I'm afraid Mike can't make it work on a Mediatek processor, am I right, Mike?