yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
I'll buy any Nexus device that is FM capable, as soon as I can:

#1 - Nexus are extremely popular among devs and enthusiasts, the primary market for Spirit.

#2 - Google won't provide an FM app, so there will be LOTS of demand.

#3 - I think it's very unlikely the LG FM app, or any OEM FM app will work on most Nexus ROMs; they won't have the proprietary bits every OEM FM app uses. The only "competition" might be the CM FM app, if/when they get around to making a CM10 version. That said, someone may be able to get the Code Aurora Qualcomm FM app running without too much work; but I haven't seen any such effort yet.
[Spirit FM] mikereidis:
Thanks for your offer. :)

Right now I can only say "stay tuned". I'm in a code documentation and cleanup phase. Once I eliminate all the unused strings I'll be able to ask for translations, hopefully before end of 2012. But dates can slip, who knows...
[Spirit FM] :
Working for Malaysia at least for G version. Use Singapore. Not sure about non-G version
[Spirit FM] mikereidis:
It works fine for me on my GT-i9100 running the latest Slim-GT-I9100-2.9.0-OFFICIAL.zip.

Yes. Most countries use the available 87.5 - 108 MHz. Japan uses 76 - 90 MHz. RDS also changes slightly outside of North America.
[Spirit FM] Lagkage:
Your are welcome

I am happy to be one of them!

I hope it won't be to hard to find a solutuon.

Thanks for your great work!
[Spirit FM] mikereidis:
November 15 Spirit FM Radio Free: http://d-h.st/5JK

- GT-i9100G speaker/headset and hopeful volume fixes.

Was volume previously changing on Pause/Play for 9100g ?

- GT-i9300 internal headset volume raised from the default (50 it seems) to 60. 63 is the max but 55-58 might be better. Let me know.

Someone requested this, but I don't know if it might cause some distortion.
[Spirit FM] :
update : toggle between speaker & headset now works perfectly without needing to pause! well done

volume control working perfectly now

but system sound putting radio on pause is very annoying. any update for UL for testing?

latest free version volume works fine with some settings. but still can't beat key press sound and notification sound

many times also phone got stuck, need force reboot when switching off radio... waiting (not responding) - ul and free

so, 2 problems left to solve

1. radio pause when others sounding

2. Rds not working for UL only
[Spirit FM] mikereidis:
Something is definitely wrong if button presses are killing FM sound. I don't see this on any other phone/ROM. Does the music player do the same ?

Only "fix" is to disable Audio Focus in debug settings.

I don't know what's going on with phone getting stuck. Anyone else seeing that ? All I can think of right now is that the FM driver might have problems; again we see weird differences with no RSSI and no RDS.
[Spirit FM] Carson_ls:
Thanks ibnmurad.

My device is non G version! Will try to install again & feedback to this thread:)
[Spirit FM] :
let me explain,

when radio is On, button press sound is silent (SwiftKey is an app, so sound not disable when radio is on, so key press sound is still on, and notification sound too. so, both will pause / stop radio. apps like music player or tunein still can handle keyboard press and notification sound while playing (no sound pause or anything, both keyboard press sound and tunein radio can produce sound simultaneously )

your radio cannot handle both sounds simultaneous

update : disable Audio focus won't fix
[Spirit FM] Carson_ls:
Hi Mike,

I'm using the latest Slim-GT-I9100-2.9.0-OFFICIAL.zip with latest siyah kernel 5.0.1! I download the app from play store ( https://play.google.com/store/apps/...sMSwxLDIxMiwiY29tLm1pa2Vyc21pY3Jvcy5mbV94bCJd ) and i'm not sure what's wrong to my device and its doesn't work!

Appreciate if some one can help me for this!

Thanks in advance!
[Spirit FM] mikereidis:
I think what you're explaining is something that probably can't be changed or fixed in an app. The audio library needs to be modified to properly handle FM. Or maybe there is some workaround I can't think of right now; if I had a device it'd be easier.

I posted on the CM thread about the FM driver: http://xdaforums.com/showpost.php?p=34154419&postcount=3163

Probably just a kernel config option that's needed. If there is an alternative kernel for 9100g it may work better.
[Spirit FM] :
i suggest you try the free version first. as attached link just now or other versions check OP
[Spirit FM] mikereidis:
Send me a debug log. Use Menu-> Email Logs and after 20 seconds or so, press Send.

I used the stock Slim kernel. Some kernels don't have the FM driver, or there is a kernel config app you can use to enable it.
[Spirit FM] :
sorry, why is that play store link for Xl app?
[Spirit FM] Metallico:
The last update its already on market?

Because I'm on 14november version and i don't have the update to download.

Btw: i had some freezes and had to reboot the phone on the first version when I tried to stop the FM radio.

I don't try it with the last version
[Spirit FM] Carson_ls:
Was thinking it's the free version that's why i'm downloaded! :confused:
[Spirit FM] mikereidis:
I should add:

FM audio is different than other audio on most phones. It's mixed in analog, with a special dedicated audio path,

Software can mix a LOT of digital streams together, digitally. The Android system takes care of mixing notifications and streaming apps etc.

You usually cant do that with FM. FM is special. That's why FM audio is my biggest task for quite a while now.
[Spirit FM] mikereidis:
That's a secret app for a secret purpose. Nothing to see there, move along. :)
[Spirit FM] mikereidis:
No, not on Play yet. Email me if you need.

I'd like some feedback on GS3 audio first.
[Spirit FM] Carson_ls:
Hi Mike,

Sorry for giving you a trouble!

Now i downloaded the .apk file and installed it & it's work now!

Free version work in latest slim bean v2.9 with andriod 4.1.2! :good:

---------- Post added at 07:05 PM ---------- Previous post was at 06:53 PM ----------

Because of installing this xl app and causing me to report the wrong thread to mike! :o

:rolleyes::rolleyes::rolleyes:
[Spirit FM] kalimannidk:
Spirit UL - SGS2 I9100G - only noise if Regional Band set to Germany

Hello,

i am new on this forum.

I have a Samsung Galaxy S2 I9100G with cyanogenmod 10 from latest nightly build.

I have bought for the Spirit UL app.

After the first tests this application works properly on my phone.

But if also found any problems with his app:

1. If i set the regional band to Germany then i can't find any station. I hear only noise.

2. If i set the regional band to North America or Europe i can find stations but i cannot see any RDS informations.

3. After the screen unlock the audio output will switched off. I can listen only silence. I must press the headphone/loudspeaker button to hear

audio again.

Nevertheless good application development. Thanks.

regards

kalimannidk
[Spirit FM] :
I'm a S2 I9100G user for UL version too.. Probably you need to wait very soon mike will update on Play Store. So don't refund yet.

1. Try another country near to Germany

2. RDS may not work for S2 I9100G. I'm sure mike will figure this out soon. He manage to fix some issues now.

3. There are some tweaks in order to get this working better. My setting may not work for you but you can try,

- Setting>Audio>Method> i9100G/LG/TWL

- Setting>Alternate Frequency>AF Mode>RDS+Region

- Setting>Debug>Audio Focus>Enable

- Setting>Debug>Suppress System Sound>Enable

-

If you have a task killer that kills apps running automatically after screen is Off, maybe you can avoid Spirit UL from getting killed.
[Spirit FM] kalimannidk:
Hello ibnmurad,

thank you for your quick answer.

I don't want a refund. If possible for me i will help to improve this app for the I9100G.

Your settings for 3.) will also work for me. Thank you.
[Spirit FM] :
do you hear that Mike. You are a genius! Keep updating :thumbup:
[Spirit FM] borich:
http://xdaforums.com/showpost.php?p=34162192&postcount=94

@mike: there is a devoloper version of spirit fm? only for try on nexus 4;)
[Spirit FM] CR5N:
Free version in OP ;)
[Spirit FM] mikereidis:
As CR5N said.

http://d-h.st/5JK
[Spirit FM] mikereidis:
Hi, thanks. :)

1. Strange problem. I think something else fixed it. Germany and Europe are almost identical.

2. You aren't saying you saw RDS with Germany selected, right ? RDS is a kernel driver problem I'm trying to resolve with the CM folk.

3. As ibnmurad said: Setting>Debug>Suppress System Sound>Enable

Or you can just manually turn off screen lock sounds in the ROM system settings.

Problems like this arise because the FM audio enable code should be in the ROM audio libraries. Inside Spirit is convenient, since most custom ROMs don't have FM enabled audio libraries, but it belongs in the ROM.

I may be able to find workaround for such issues, but regardless, proper place is always in the ROM libraries. Maybe/hopefully CM will support FM at some point, or at least the audio libraries can be modified.
[Spirit FM] mikereidis:
This should never be needed. Spirit does the same as media players running in the background do. And Android will only kill media players as a last resort to accommodate the needs of a foreground app.

For example, I'd guess that a phone call has highest priority and under severe lack of memory conditions, any background media player would be killed to allow a phone call.

- Audio-> Method setting is automatic, unless the ROM misidentifies the device.

- Alternate Frequency-> AF Mode: Yes, if you need and want AF. I wonder if I should make it automatic if Regional Band is set to anything but North America, where it's rarely used. Only "downside" is the AF #s shown at top right that will annoy some people; but the display could be optional or fade after X seconds, like PI does.

- Debug-> Audio Focus is always enabled by default when using low level FM chip access methods used on custom ROMs. On stock ROMs, the OEM Proprietary FM APIs take care of this and if Spirit does it too, there are strange results on audio notifications.

- Debug->Suppress System Sound. Perhaps I should make this the default for GT-i9100G. It's only on by default on devices like Desire HD, where the audio system gets really messed up otherwise.

At least on 9100G it just requires a Pause/Play, but that's annoying. Or is it more than annoying ? Or will more people be annoyed the system sounds were turned off ?

Spirit was changed so that none of it's buttons make noise, on any device, so at least Spirit buttons won't mess up audio. If they did, even Pause/Play wouldn't fix because they would make noise too.
[Spirit FM] kalimannidk:
Hello Mike,

to 2. with Germany selected i have found nothing with exception of noise.

I further tested Spirit UL. Here I fond the following problems:

4. If i start Spirit UL with the headphones - the headphones are on and the loudspeaker is off. If i toggle with the

headphone/loudspeaker button then i can switch the headphones off/on but the loudspeaker is always on.

5. I think the audio output is always only in mono.

6. If i play around a lot with Spirit UL the phone hangs. After that only helps remove battery and reinsert it.
[Spirit FM] Rusty!:
Tried the latest version from the OP on my Nexus 4, got this:
[Spirit FM] mikereidis:
That's pretty much as expected.

Somebody with SU should send me a debug log with Menu-> Test-> Email-> Logs. Without SU/root, don't bother (no offense).
[Spirit FM] mikereidis:
AFAIK, this problem was fixed in November 15 and 16 releases. Nov 16 is on Play now.

Limitation of the Free version.

I think it's the FM driver that's defective. I'm asking the CM folk to switch to the better driver, and that will fix RSSI and RDS and I suspect it will stop the driver from crashing the phone.
[Spirit FM] Rusty!:
Done.
[Spirit FM] kalimannidk:
Thanks, the new release works fine at this point.

I have paid for Spirit UL and have also installed Spirit UL.

O.k., this seems to be a driver problem with the si470x driver for the si4709.
[Spirit FM] mikereidis:
:)

If you still have mono problems email me with Menu-> Email Logs.

Ensure wired headset is plugged in and RSSI at top left should be 20 or higher.
[Spirit FM] mikereidis:
Thanks !

BTW, I'd like to see an Optimus G debug log when I can, to compare.

So the Nexus 4 uses the Qualcomm WCN3660 combo chip for BT/WiFi/Maybe FM ?

That's a good start, and I even see the /sys/bus/platform/drivers/APPS_FM directory I don't see on some other devices. I'm hoping this means a kernel compiled to include the FM driver will "work".

And by "work" I mean that the only potential problem will be if the FM antenna pin is not connected to the wired headset circuitry.
[Spirit FM] :
he's on G version. Rssi zero

i didn't look into mono/stereo that much. will give feedback
[Spirit FM] borich:
maybe you saw it yet but here: http://xdaforums.com/showpost.php?p=33484621&postcount=1 said:

Wireless RF Module - Atheros WCN3660

Quote:

Manufacturer: Qualcomm

Bluetooth: BT 3.0/4.0 Low Energy

Wi-Fi: 802.11 a/b/g/n (2.4/5 GHz)

FM: Hardware supported

it helps?
[Spirit FM] bsd350:
spirit fm UL

issue with presets (arrows are always inactive). I have the paid version. See screens.

gt-i9100g after 15.11 update: sound in speaker/headset switch, different sound after pause/play - issues are fixed. Thanks.
[Spirit FM] mfenetre:
Hi Mike,

One lucky Nexus 4 owner tested your app on the Nexus 4.

We asked him to use the "Email logs" function to send you some data, and he did, see http://xdaforums.com/showpost.php?p=34217515&postcount=100

Could you please let us know what you find in there once you'll have some time to go through the logs ? Most importantly, is there hope or not for Spirit FM on the Nexus 4, is the hardware there ;)

Thank you in advance !
[Spirit FM] mikereidis:
Just confirms what I saw in the log.
[Spirit FM] mikereidis:
Rusty! already sent one; I don't think I'll learn more from a 2nd. See my response above in post 4843.

Now what we need is for someone to run an Optimus G ROM (with FM app) on the Nexus 4 and see if that works. I have no idea if that can be done successfully, without bricking the phone, BTW.

Alternatively, someone could build a kernel that includes the WCN3660 V4L FM driver(s) for "radio-iris".

When somebody does one of the above, and if we see RSSI go up when tuned, and down when not, I'll get a Nexus4 ASAP.

If we get that far, audio will likely be working already if Audio-> Method is set to "HTC OneS/X/LTE ALSA". But even if not, the audio should be crackable; it's digital and uses the same paths as Bluetooth I think.

EDIT: I should add that the audio seems to be the same WCD9310 (or 9304 ?) as in the HTC OneXL and most other Qualcomm S4 SOC based devices. Or at least it's rather similar; the ALSA control names match up. But there seem to be 424 controls there, as opposed to a mere 283. So maybe this is a compatible chip that does more.
[Spirit FM] mikereidis:
Arrows only activate once you have 6 presets set.

Otherwise, great ! :)
[Spirit FM] :
Mike, why not put the cm fm link on all G version roms available so that more can star the issue

there are some other cm10 based roms hybrid aokp
[Spirit FM] mikereidis:
Not exactly sure what you mean.

But I've done enough for now; feel free to spread the word somehow.

But don't antagonize or push the CM folk too hard on this; give them time.

Some of them aren't too happy with accommodating what they see as "closed source, commercial software", despite the free version.

Some have even been openly hostile and threatened banning if FM is mentioned in their threads; their position is that CM doesn't support FM (yet ?) and they get tired of hearing requests since some of their FAQs say they don't support FM, and "that is that".

There is an alternative. Ask the dev building the only JB kernel for 9100g to make the changes in his kernel. But I think he gets his upstream from CM10, so we could just be patient and give the CM devs a week or so to make the requested changes before asking him.

AFAIK right now, the only problems are with RSSI and RDS. But there might be stability problems with the other 470x driver too; can't say for sure until we get the 4709 driver and try it.
[Spirit FM] :
Some roms are not purely CM. Some are AOKPs, and some are hybrids. I have no understanding about them. But if CM won't do it, can AOKP do it? :confused:

For G version Kernel, maybe Fuss132 can help it. For AOKP rom, Bajee11 is very good
[Spirit FM] bsd350:
OK! :good:
[Spirit FM] Lagkage:
Is FM recording on the SGS2 possible?
[Spirit FM] mikereidis:
I think so, but I haven't proven it yet by making a successful recording. The last few days I've gotten deeper into the low level GS2 audio drivers and found a way to enable FM audio when CM etc move to open source audio libraries.

My FAQ on recording, bluetooth and other digital audio features is here and says: http://xdaforums.com/showpost.php?p=31983199&postcount=4468
[Spirit FM] wcoast:
How do I get my signal to activate, No sound and Signal, Running JB ROM on galaxy S 3
[Spirit FM] mikereidis:
AFAICT you can't because there is no usable FM chip in US / LTE variants of the GS/GS2/GS3/Note/Note2.
[Spirit FM] wcoast:
Thanks mate,
[Spirit FM] mikereidis:
November 19 Spirit FM Radio Free: http://d-h.st/yEc

Also on Google Play.

- GS2/Note open source audio method "Galaxy S2/Note ALSA".

This method should continue to allow CM9/10 to be supported on GS2 GT-i9100 and Note GT-N7000 when the CM folk change to open source audio libraries, a process apparently in progress.

For now, "Galaxy S3/Note/S2_ICS" continues to be the default audio method so that the bugs in the new method can be worked out before it becomes essential for probably some 3000 customers, LOL.

At this time it requires an initial Pause/Play to get working, and the volume is a bit lower.

This method will automatically be enabled on CM9/10 (and those detected as CM) ROMs when the /system/lib/hw/audio.primary.exynos4.so file is removed or when it changes from the longstanding size of 102,988 bytes. The CM folk consider this a "binary blob" from Samsung that they have no source for and that they wish to remove as soon as they can.

- Partial Sony 2012 (un-supported).

One of my long-standing Sony/Ericsson users shared some code with me that helps enable audio on his Xperia Sola MT27i. (Thanks ! :))

I integrated functions in this code into Spirit, and it may work for many Sony 2012 devices using the ST-Ericsson CG2900 FM chip, at least. The V4L support intended for Qualcomm chips works, with some limitations, such as no RDS.

At this time however, running the stock Sony FM app first is required, perhaps to load firmware. Once I figure that out I may be able to incorporate that.

This is unsupported and I'll see how well it works from reports. No Sony devices are currently enabled on Play.
[Spirit FM] minidou-77:
About galaxy S2 and in the JB leak FM recording is included

Look on the rop left corner, the red button. And it's working fine ;)
[Spirit FM] mikereidis:
Standardized Google/AOSP FM Radio API activity ?

It appears there is new activity with the ST-Ericsson proposed standard Android FM API: https://android-review.googlesource.com/#/c/46100/

This was on hold, for whatever reasons, for quite a while, especially in "smartphone time".

I don't know if any other chip OEMs, like Broadcom, TI, Silicon Labs, or Qualcomm are going to get on board, or when.

And the audio portions, embedded into the Android platform code, will need to be supported by phone OEMs such as Samsung and HTC etc.

But since Qualcomm seems open source friendly, and their combination of S4(+) SOCs, WCN3660 BT/WiFi/FM chips, and WCD9310 audio chips are popular, hopefully, perhaps they'll support this.

Support of this API, and perhaps open sourcing of some parts at least, may be a useful direction for Spirit phase2.

I'd rather use an open, documented API such as this, than my own API, to allow people to write extensions, GUIs etc for Spirit.

Hopefully, maybe, eventually, ROMs such as CM and AOKP etc. will support this API as the first blessed AOSP FM API. Hope so...

Sony is the only phone OEM currently supporting something like this API. And there is an "experiment" underway with adding AOSP support for at least one Sony device. So, this might be a gateway to Sony support, we'll see...
[Spirit FM] mikereidis:
Wonderful. Thanks for your report. :)

EDIT: Yes, Spirit's Menu-> Test-> Record-> Start and Stop work fine on the JB leak. :)

I'm running I9100_Omega_v16_XXLSJ_JB_4.1.2.zip.

Output files are like this, with random numbers: /sdcard/Music/FMRecording85277679.3ga

There are also settings in Menu-> Settings-> Record for anyone wanting to experiment.

Not so easy on CM ROMs, but we'll see.
[Spirit FM] Lagkage:
You should update your FAQ with this news.
[Spirit FM] ardianz:
Is this app running on samsung epic touch 4g?

Thx
[Spirit FM] Lagkage:
US/LTE Samsung devices do not have hardware there is capable of FM.
[Spirit FM] mikereidis:
Done, but most people don't read FAQs etc, LOL.
[Spirit FM] mikereidis:
As Lagkage replied...

It's not about the app, it's about the lack of a usable FM chip.

You can thanks US carriers that don't want to be "burdened" with a few cents extra in costs (and the loss of some data plan revenue).
[Spirit FM] mfenetre:
Mike, that's very cool, thanks. As a Galaxy S2 owner running CM9 and using your app, I'm really pleased to see that I'll be able to continue using your app even when CM9 or CM10 evolves. It's great to have this kind of support from you on the app, and that doesn't make me regret at all to have paid for the app, quite the contrary! Thanks!:good:
[Spirit FM] vetusa2:
(((Exclusive))) "Spirit FM Radio" app from Google market is 100% working in Egypt!

good news for all people living in Egypt who are using Samsung Galaxy Wonder mobile with CM9/CM10 firmwares

(((Exclusive))) "Spirit FM Radio" app from Google market is 100% working in Egypt!

https://play.google.com/store/apps/details?id=com.mikersmicros.fm_li

Working Settings are:

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

Regional Band : World

Audio/Method :qdsp5v2 Altern

Audio/Output Mode :Switch Auto

Alernate Frequency/AF Mode:

RDS+Region

16

500

4

65535

500

4000

89100

93100

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

best working FM channels are:

88.0

88.2

90.1 ------>Quran Channel

92.7 -------> Radio Online/Mega FM channel

94.3 ------->Europe program/Classical Channel

97.6

98.3

101.1------>Alexandria Channel

104.7

Knowing bug : phone reboots when shutting down the fm radio application while listening on external speaker.

Solution: is to turn to headphone before shutting down the fm radio application.
[Spirit FM] mikereidis:
:)

That reboot seems strange.

Does the phone reboot when you mute/pause from speaker mode ? Mute is what happens at power off.
[Spirit FM] :
I think for G version, if you remember I mentioned about phone getting stuck no respond need to force reboot occasionally when turn off
[Spirit FM] mikereidis:
The audio is VERY different between the GT-i8150 and GT-I9100G. So I think it's an audio driver issue when he says:

It doesn't happen to him when on headset. And the FM chip and driver have no idea where it's output is going to.

In the case of the 9100g, I suspect the problem is the wonky FM driver.

You could verify the FM driver being the problem by setting Debug-> FM Chip to "Emulator" and restarting Spirit several times to see if it stops crashing.

If the audio driver was doing it, setting Audio-> Method to None and restarting Spirit several times would stop the crashing.

Android drivers have a VERY bad habit of crashing the kernel, doing a double fault and rebooting the phone when fed bad data, like device numbers higher than they expect. Rushed developers don't worry about "out of bounds" testing as long as nothing crashes in their tests and apps.

I have a few such problems in my own code, but it doesn't matter since I don't support any API for external apps, yet.