yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
I've updated post 2 in this thread with compatibility information:

http://xdaforums.com/showpost.php?p=13380058&postcount=2

Regarding devices that show unusual RSSI values, jumping rapidly between values such as: -128, 0, 16, and 55.

I think these devices are unsupportable. None of these devices have a stock FM app, nor will any other FM app function. My theory is that these devices lack the hardware connections to operate, and may be deliberately disabled.

These devices include:

- Motorola Atrix 4G

- HTC Google Nexus S

- Samsung Galaxy Tab

- Samsung Galaxy Spica i5700

The "RSSI" values seem to act like status registers. In binary, the decimal values -128, 0, 16, and 55 are:

1000 0000

0000 0000

0001 0000

0011 0111

Sorry... Complain to your carrier/manufacturer and buy devices with proven FM in future...
[Spirit FM] mikereidis:
OK. I found the service manual and the kernel code.

The P990 uses a wolfson wm8994 chip for audio.

It appears this device uses digital I2S audio. It's not clear if the analog will work.

So it probably won't be as easy as just enabling the analog audio.
[Spirit FM] flipper44:
What do u think I should set Audio method to in order to test the Thrive.

Spec Are:

Broadcom BCM4329 Low-Power 802.11n with Bluetooth 2.1 + EDR and FM (Tx and Rx)

AzureWave AW-NH931 802.11 b/g/n Wireless LAN, Bluetooth and FM Rx Combo Half Mini Card

PS using sfu_sdcs_bt and sfu_sdcs I get Fm:BC Sh:1 Su:1 Bt:1 Ht:0 Mo:BCH SD Hv:4 Ma:15 BC Approx -8 as high as 128 in left corner saw bars bounce up once or twice to 3 bars...then steady low neg nums and no bars
[Spirit FM] sfortier:
I think this modified audiolib can do the trick. A changed the setfmvolume code to the extamp ioctl...

http://www.multiupload.com/NKL1WASEF4

http://www.multiupload.com/DM8RSDYA17

http://www.multiupload.com/68KU6RFUIV

I hardcoded the speaker volume to 29....

Maybe with the correct audio routing (maybe using the kill mediaserver... trick) and correct volume set we can get radio...

Maybe we need to change the extamp value on rounting...

:)
[Spirit FM] mikereidis:
http://xdaforums.com/showthread.php?p=16499312

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

Originally Posted by aremcee:

If you try an FM app, it works fine. There's one in the Market that even shows you RDS for the stations; but you can't hear anything.

It's basically the same problem as A2DP. FM needs specific audio routing, and the audio layer is mostly opaque to me.

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

The schematic shows P990 uses a Wolfson WM8994 chip for audio and it appears P990 uses digital I2S audio. It's not clear if the analog will work.

Supercurio, the author of Voodoo Control (Plus) seems to be the expert on WM8994.

At present I have no idea how hard it would be to enable FM audio, or if it could even be practically done without ROM support. If libaudio doesn't know about the FM routing, things like audio notifications could kill it.

EDIT: The number of definitions in this file is pretty intimidating: https://github.com/project-voodoo/l...5837ce9039998973ed86b31/drivers/star/wm8994.h

When I get a Samsung Galaxy S device I'll have the opportunity to work with a WM8994.
[Spirit FM] psyke83:
Here's a hotfix including your libaudio changes (and my change in which the ear_mute flag is not enabled for FM playback, which is the behaviour in Froyo).

http://www.multiupload.com/72GKU4DAF3

It still doesn't work :). But maybe you'll have more luck.

P.S. With the new additions to libaudio, I don't think we need to use the mediaserver kill trick. The endpoint 27 is selected when running Spirit or the native radio app, which you can see from the dmesg log...
[Spirit FM] denzel09:
Subpsyke can be that the problem for no audio with spirit on mini s5570?

And for mic bug problem? Any news?

Mikereidis, what you think? Is it fixable the radio problem?
[Spirit FM] mikereidis:
I didn't realise until now how similar the "Samsung Galaxy 5 / GT-i5500 / Europa" is to your "s5570 mini / GT-S5570".

Service manuals indicate both have BCM20780 for BT/WF/FM, and MSM7227 SOC, and MAX8899 for PM/Amp.

So I suspect we will have similar audio routing issues on both devices.

BUT, you seem to have at least one more problem on your device. When the "special commands" are sent on your device, HCI communications stop working.

I've been busy updating the first 3 posts in this thread. Post 3 shows the 7 Ongoing Investigations I've needed to document and my personal notes are much more extensive.

Now I can spend some time on the code and will add the options I mentioned to disable the "special commands" and see if that helps on your device. But since the Galaxy 5 doesn't have these issues I wonder if the HCD file from the Galaxy 5 might help.
[Spirit FM] mikereidis:
I just looked quickly at the code, and at first glance it seems OK. Again, I assume you are running a Samsung or Samsung derived kernel that supports these Ioctls to msm_snd.

If dmesg shows the same output as stock, more or less, I hope it would work. Specifically:

snd_set_extamp 27 29 0

snd_set_device 27 0 1

snd_set_volume 34 0 6

The order might be an issue. But I also noted it was sometimes followed by:

snd_set_extamp 17 0 21

snd_set_device 17 0 1

snd_set_volume 34 0 6

And 17 = IN_S_SADC_OUT_HEADSET

I'm not sure exactly what this second set does, or if it's required, or perhaps this just happened after the stock FM app audio was switched off ?

Does it set an input from a headset mic to an ADC Analog->Digital converter ?

As for "kill mediaserver" I'd like to see more ROMs where this isn't required. Either some mediaserver's open /dev/msm_snd in a non-exclusive mode, or they open and close as needed. If nothing else it allows easier experimentation.

My HTC Legend CM7 allows access while my LG P500 CM7 requires the kill mediaserver trick. And the kill trick is useful only for testing.
[Spirit FM] xmguy:
Hey Mike,

I got Spirit FM running on my CM7 Droid X. But every so often the audio refuses to pass through the speaker or headphones. The radio is working and the RDS decoding but no audio.

xmguy/Nathaniel Newman
[Spirit FM] mikereidis:
Enough for now.

Can you run adb shell from a connected PC ?

If yes, try this:

adb shell
mkdir -p /mnt/sdcard/sf/
cd /mnt/sdcard/sf/
echo 1 > rec_src

Then press Pause/Play twice, or start Spirit2 Free if not running.

(Anyone trying this with Spirit2 paid should use "/mnt/sdcard/s2/". December versions use aud_src instead of rec_src.)

You can also try these, restarting audio with Pause and Play after each:
[Spirit FM] :
While echo 1 > rec_src already reduced the mic input to a minimum, mic noise was still hearable. echo 10 > rec_src completely removes the mic noise. Thank you very much. I'll donate for that. One last thing. As I understand the command reduces the mic sensitivity, doesn't it? Is it possible to disable the mic at all, maybe it is not a good idea that it is activated for the whole time when listening to the radio.
[Spirit FM] mikereidis:
Great ! :)

I don't worry about the microphone, there are other things that suck much more power.

And in your case, "10" is a BIG bonus. It means Spirit is reading directly from a HAL supported FM audio input; the microphone plays no role. That's the best it gets.

I will try to make this automatic for GS4 mini.

Be warned however that some ROMs might not support FM input "10". It may be that "10" works because a stock audio binary blob HAL is in use. If an AOSP source code built HAL is ever used, it may not have the FM functionality.

That said, so far, it appears that GS3 mini and GS4 mini Kitkat ROMs DO use the stock HALs I think.
[Spirit FM] lonenol:
Hello mikereidis,

I have a moto G 1st gen (xt1032 falcon) running lollipop 5.0. I tried different spirit 2 Free/open versions. 1204 and november versions have broken sound for me, 1001 version is working for me, but the problem is that after using it, during a call, I can only hear voice from the headset. There's no sound from the speaker on top of the phone when I unplug the headset.

Any idea why it happens?

thanks,
[Spirit FM] mikereidis:
Hi,

I have the same xt1032, running the latest official CM12 nightly: cm-12-20150108-NIGHTLY-falcon .

I'm not seeing the same problem, but it's SIM locked and I've never made a call with it.

Can you reproduce the problem without a phone call ?

My son has the same phone, SIM unlocked, running stock Android 4.4 at present.

I'll try to run some tests and we'll see.
[Spirit FM] lonenol:
I'm using GPE 5.0.1 version.

I can't reproduce the problem without a phone call, because only the speaker on the top of the phone (beside the front camera, maybe it's not called “speaker”???) do not work. If I play a music, the speaker on the back of the phone works well.
[Spirit FM] mikereidis:
I haven't tried GPE yet, because there were some issues reported.

Yes, the part that puts sound in your ear during a call is usually called the "receiver", but there is often confusion.

I presume you tried unplugging and replugging the wired headset a few times.

In this state, does Speaker mode still work in Spirit2 ? Swipe right to left if you haven't seen the option before.

Toggling headset and speaker in Spirit2 might help. Also try setting speaker mode then turning Spirit/FM off.
[Spirit FM] lonenol:
I tested many times and find a way to make it work. Speaker mode is not working, but it helps by tick / untick speaker option.

What I need to do is to untick the speaker option when I launch the app, then tick the speaker mode before turn off the FM and unplug the headset before closing the app. Though it sometimes still remain in the notification (I used 'back' button'), it's generally working for me. Thanks.
[Spirit FM] mustasusi:
About the Sprint Note 4...

Not dead since I'm currently listening on the Note3 and did since day 1. I guess he got the logs about half a year ago when I sent him, both Sammy and CM. Unfortunately CM ROMs don't work since Next Radio won't operate with those and is required to operate Spirit at the same time. The Note 3 by the way is, by far, the best radio for mobile since it's the only one that supports "force stereo" mode and the antenna is as strong as the prototype N7000. The operation takes no longer than a minute, you can watch the video I posted, not far from where you quoted *my* conversation with Mike himself. I even shortened this process even more since then.

Any news with Sprint Note 4? Do we even know what type of chip is it?

If Qualcomm then it stands a chance, simply to "hitchhike" any of the already existing systems (Spirit1 of course).

But if it's a Broadcomm, which I tend to assume for the similarity of its predecessor, I'm not willing to take another risk of ending up with unusual routines at best. If you can shed some light on it before I'm leaving another serious hole in my pocket, I wish I was a little richer to figure out myself...

And for some good news for sure - I'd like to report clean success with HTC Desire 510 http://xdaforums.com/desire-510

it has Qualcomm of course and works out-of-the-root. Fully functional including everything. Fell free to add it to your list of supported device.

[IMG="HTC desire 510"][/IMG]
[Spirit FM] vrwmiaris1:
Hey Mike, I'd like to ask you something, I've a g2 int.version running LS 3.2 with blackbird kernel as default it's a 4.4 version Rom and the dev said that he's using KK sources to compile the kernel.spirit ain't working, neither 1 or 2.I'm trying to find a solution for this, is there something the dev must add or something you should add? If you have a version that is working already mind sharing it?tnx m8

Στάλθηκε από το LG-D802 μου χρησιμοποιώντας Tapatalk
[Spirit FM] Hattori_Hanzo:
Spirit Transmit with HW decoder

Sorry if this is already answered. I couldn't find it by search.

I ran Spirit Transmit on my my Xperia SP and it works, but only with SW decoder (eg. youtube or MX player in SW mode). When I use HW decoder I can see the carrier signal (with RTL SDR), but it doesn't broadcast sound.

Does anyone else has this issue?

I'm using 4.3 eXistenZ rom.
[Spirit FM] mikereidis:
I don't get much feedback about Spirit Transmit, and I haven't run it in a while; after concentrating on Spirit2 Lollipop for 4 months. I'm starting this week to look at re-basing it on Spirit2 code to get it working on Lollipop as well.

My first thought is that this HW decoder issue is to be expected. The only solution I found so far was to force SW decoding somehow. I will look closer this week.

Do you have an easy way to configure HW or SW decoding ? Is your desire for HW to reduce power consumption and no other reason ?
[Spirit FM] mikereidis:
Can you be more precise than "ain't working" ? What happens ? Does it "work" but with no audio ?

If Bluetooth is normally off, try Bluetooth on or vice versa. The first time with BT on, the device should reboot after a "shim" is installed.

Which specific versions of Spirit1 and Spirit2 ? Date ? Paid or free ?

Access to the FM chip on rooted G2 is pretty much guaranteed, assuming Bluetooth works.

Access to FM audio has been a problem on some kernels, due to using pure-ish AOSP audio HALs instead of HALs with the LG mod for FM.

You can send me a debug log from Spirit1. Tap the frequency button, enter the number 7 and tap "OK". After 20 seconds or so, press Send from your email client.
[Spirit FM] mikereidis:
I don't recall Sprint Note4 FM/combo chip. My guess is Broadcom, otherwise I think I may have had at least 1 success report by now, though Sprint Note4 is rare-ish and pretty new.

You can send me a debug log from Spirit1. Tap the frequency button, enter the number 7 and tap "OK". After 20 seconds or so, press Send from your email client.
[Spirit FM] Hattori_Hanzo:
Thanks for the replay.

This is not an issue for me, I just wanted to report it. I can easily force SW decoder in MX Player, though It would be more convenient if I could stream from Walkman app which doesn't have this option.

Keep up the good work!
[Spirit FM] Braaainz:
LG G3 D851 T-Mobile / MetroPCS compatible with Spirit 2?

I found via search that the AT&T Version of the LG G3 is incompatible with FM radio because it's missing the hardware.

I'm hoping that the T-Mobile variant (G3 D851) has the hardware and just hadn't activated it.

Does Spirit2 work with the G3 D851?

My fingers are crossed. I haven't bought the phone yet, but it has all the features I want in a phone. Selling my One Plus One to hopefully acquire one.
[Spirit FM] lupavbo:
Compatibility with lenovo s856.

Hello, whether will work spirit1/2 on the lenovo s856? Thanks.
[Spirit FM] mikereidis:
The only "hardware" missing is 1 cent worth of tiny parts to connect the FM antenna pin on the combo chip to the wired headset jack.

Instead, FM is intentionally disabled by grounding/shorting that pin.

G3 is like G2. If you want FM, get an International or Sprint variant.

My guess is that you "love" the G3 and don't want Sprint, and you will buy the phone anyway. That is why carriers and some OEMs like Samsung feel justified in disabling FM. People buy them anyway.
[Spirit FM] mikereidis:
DAMMIT Google ! :( DAMMIT new EU VAT policies ! :(

My income has dropped 18-20% now because Google is collecting and remitting EU VAT.

Vast majority of my customers are in EU.

Instead of getting 70 cents per dollar, now we get 58 cents.

Yeah, It's not Google's fault perhaps, except that Google's share remains at 30% and the devs seem to take the full hit.

Explained here, AFTER you click + on "See an Example" at end of first paragraph : https://support.google.com/googleplay/android-developer/answer/138000?hl=en

Yes, my EU sales were previously skirting EU VAT taxes. No I didn't really care much about following laws of another country, while following those of my own home of Canada.

Was I stealing EU jobs ? Or causing any substantial harm to the EU by not dealing with VAT ? I don't think so, but admit there is some "technical" harm in not following foreign sales tax laws.

In Canada, such taxes (GST, a VAT) are often done by buyers on the honor system, which almost nobody honors. My Canadian sales are low so I don't have to collect GST/VAT here.

Anyway, the end result is that my income has had ANOTHER big drop.

This sucks !

Maybe Paypal would be better. I've heard MANY evil stories about Paypal, so I dunno. But at least 95% or better gets through the seller, instead of the 58% now with Google Play.
[Spirit FM] dink0:
which one for lg l5
[Spirit FM] mikereidis:
Spirit1. Maybe. Not sure & "depends". Try it.

Except for Lollipop+, Spirit1 supports the same phones as Spirit2, plus many more.

So the first one to try is Spirit1, except for Lollipop+.
[Spirit FM] vrwmiaris1:
[MENTION=711091]MikeReid[/MENTION]es I've send you a log, take a look in your inbox,tnx bro
[Spirit FM] mervluk:
It's not that supplies were VAT free, but they were being put through the jurisdictions with the lowest rates, with "sweetheart" deals. The "expensive" Germans (and almost-as-expensive Brits) lost out. Now the rate is that of the country of the recipient. The cost of many software services is going up, accordingly, at least for consumers who can't reclaim the tax for business purposes. Tax harmonisation - on the treatment of taxes if not on the rates- is belatedly on the way, internationally, whether we like it or not. After all, business is global. People (and their politicians) only see one side. Old Europe has to pay for its welfare somehow (it'll soon have more oldies than workers), but it's swings and roundabouts. Canada doesn't benefit, of course - but I'm sure has its own issues with tax avoidance (not least with the good ole US of A, perhaps?); but the real problem is that it's all us consumers who are too mean, and want something-for-nothing all the time. You don't, as my granny used to say, get "sommat for nowt". There's always a downside.

Good news is that Spirit2 beta fully works on latest 5.0.3 soak test stock rom, with Viper audio, on my 2013 Moto G (XT1033). Still doesn't, just hangs when trying to tune with ridiculously negative signal figures on 4.4.4 on my other Moto G XT1039 (4G) though, but as long as one works! That's why you have two phones! Moto have this rainbow line up, with quirks on all of them for the G, as well as the 2013 and 2014 model lines.
[Spirit FM] mikereidis:
;)

Yes, I loaded Soaktest 5.0.2 on my XT1032 MotoG last night and Spirit2 is working fine. Spirit1 even "works" without root when configured for Moto API, but no audio. Yet.

On MotoG 4G can you try Spirit1, setting Menu-> Settings-> Debug-> QCom Antenna to Internal and restarting Spirit1 ? You can email me for a copy or try the free version: http://xdaforums.com/attachment.php?attachmentid=3048429&d=1417737396

If "Internal" works, then Spirit Transmit will work too. :)
[Spirit FM] mikereidis:
Thanks for the clarification; tax matters can be complex.

And I think this change may be "the right thing", and you could argue that I (and my customers) were previously "unjustly enriched". But the result is the same: My income drops about 20%, which is a pretty big percentage for anyone, and difficult for those of us who do not have "yacht income".

I am not sure if EU people were previously seeing some apps sold with VAT added, or included. I am not sure if all or some apps now show the same, added or included.

In Canada and the US, vendors usually advertise prices before taxes, Psychologically, most people only think about pre-tax prices, and they don't blame the vendor if taxes go up.

Yes, virtually all governments have expenses that are forever going up. Canadian EBay buyers see more vendors include import taxes included for things from the US, compared to 1-2 years ago. EBay offers this as a "service" and adds their own hidden fees too. Otherwise, sometimes the delivery/post person asks for the taxes, and sometimes we get lucky.

I have tended to believe the "SomeBody has to pay for the roads etc." philosophy. But seeing large corporations and the wealthy elite using every trick in the book (which many of them created themselves) to avoid paying taxes lead me to believe that the rich take what they want, and leave us little people paying the bills.

I am now favoring the theory of modern civilization as "human farming" of the masses by the elite. They keep us believing we are "free" because we are more productive for them that way.
[Spirit FM] Braaainz:
Thanks for responding Mike.

I have been using an HTC Evo 4g for the past 4.5 years because I couldn't find a phone I liked that had HDMI out, removeable battery and SDcard with FM radio. The phone is definitely showing its age (as in taking forever to load most websites) and Sprint is now shutting down its Wimax network, so I needed to upgrade.

I tried the OnePlus One but it has none of the features I wanted. The LG G3 has everything except the FM radio. I would get it on Sprint, but their service isn't the greatest at my current location and I'm saving $25 a month by going to a different carrier.

I do want a smartphone with FM radio, but I am not willing to spend an extra $100 a year for it with more spotty service. I have sent feedback to some of the phone companies about wanting FM radio in a flagship phone, but there's not much I can do at this point.
[Spirit FM] mikereidis:
LG G3 D855 w/ CM12:

Spirit2 is not working on D855 CM12 at this time because the kernel FM driver is not initializing.

One of these alternative kernels MAY fix the issue: (I don't have G3 and am asking for feedback)

These change "CONFIG_RADIO_IRIS_TRANSPORT=y" to "CONFIG_RADIO_IRIS_TRANSPORT=m" relative to the CM kernel config files: https://github.com/CyanogenMod/andr...0/arch/arm/configs/cyanogenmod_d855_defconfig

http://xdaforums.com/lg-g3/development/kernel-optimized-sm-4-9-3-kernel-t2976049

http://xdaforums.com/lg-g3/development/kernel-rin-kernel-1-6-t3001540

EDIT: Both of these kernels are reported to break root.
[Spirit FM] mikereidis:
Yeah, most of my 4 year old phones haven't been powered up in a year, and may never again, LOL. Painfully slow now.

Yes, there never seems to be a phone that satisfies all of our wants. I'm not blaming you, but it's unfortunate when the lower priority item that gets axed is the FM radio.

But when people buy the phone with no FM, they, and millions of others, are sending the message that FM is not a "must have". And that accelerates the trend of no FM in phones.

I am even seeing that some newer Broadcom combo chips are coming with absolutely no FM capability. OEMs may even save a tiny bit of money with no FM.
[Spirit FM] mervluk:
Prices for consumers in Europe have to be advertised as tax included. They say it's for our benefit. But how convenient that the vendors get the blame when taxes go up, and the prices do too.

As the old Music Hall song had it "it's the same the whole world over, it's the poor what gets the blame, it's the rich what gets the pleasure; ain't it all a bleedin' shame?".
[Spirit FM] tcbr10:
I'm using spirit2 on s2 with cm12 5.0.2 and it's working great! Thank!
[Spirit FM] LazyT:
Hi Mike,

bought Spirit2 a week ago and it was running fine with KitKat on my Sony Xperia Z1 Compact.

Today I installed Lollipop (CM12 nightly) and now it says "unknown device error". :crying:

Any chance to get it working again?

Thank you
[Spirit FM] :
[MENTION=3575078]mikereidis[/MENTION].

Some days ago we talked a problem that the mic is recording while listening to spiritfm free version. I fixed that by your suggestion with adding the file rec_src.

As with the new build from your github source 2015_01_17_beta this does not do the trick anymore. Meaning the mic is sending everything to the headphones while listening to the radio. Did you change something in the sources that could be the cause of that problem?

Regards
[Spirit FM] georgios.evangelidis:
spirit on i9001

Mike, FYI, I have just bought Spirit1 and it operates great on my i9001 (Samsung Galaxy S+), a 3.5 year old phone running CM12! Is there any chance of Spirit2 running on i9001? I tried the free/open versions with no luck.

PS. even my wife and daughter have newer and better phones than me (that's what happens to hackers... ;))