yashsingh1/xdaforums huggingface dataset:
[Spirit FM] selemine:
I have a Galaxy S2, I9100 which is currently running Samsungs Stock ROM 4.1.2.

System is rooted.
[Spirit FM] mikereidis:
Maybe Spirit doesn't have SU/root ?

If you're a customer, you can send me a debug log. Run Spirit, 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:
Stock ROMs often delete un-needed binaries. Insmod is fine instead of modprobe, you just need the full path and file name.

If other stuff is broken, then all bets are off. Strange though that stock FM works. Xperia E seems rare, maybe it doesn't use Qualcomm FM ??

Yes, I think that module should be there, but again if stock FM app works then apparently not.

Kernels are VERY picky and usually only work with modules that were compiled at the same time as the kernel. They use a "signature" for this.

Beyond this, I'm going to have to leave you to figure out further yourself.
[Spirit FM] kristalic:
Hi, this problem on the latest versions Spirit FM on LG GT540 CyanMod 4.1.2 does not work through loud sound of the speaker on older versions Spirit FM all was well.

Sorry my bad English i am of Russia
[Spirit FM] mikereidis:
GT540 was long ago and I haven't supported it in a while. Things may have changed in later Android versions.

If anything will work, it's trying the different Audio-> Method settings with "msm7x30" in their name.

If you're a customer, send me an email and debug log.
[Spirit FM] kristalic:
Method settings with "msm7x30 HTC" plays through the headphones, Method "msm7x30 LG" only plays through the loudspeaker.
[Spirit FM] carabao72:
No sound after use sprit fm

Hello,

User of the first version of spirit fm, I naturally bought the second version despite its beta status. A very big thank you to developer for this application.

but I have problems with the beta version of sprit fm 2, including one today.

When I use it, I intend to sound in the headphones, but back on the phone, no sound comes out of the speaker. I have to restart the notes to find the sound.

What do you think?
[Spirit FM] nikouro:
Which version to install in Galax mini s5570 with ROM - MiniCM9 V2 - 4.0.4 ?
[Spirit FM] mikereidis:
Then we can combine the best of the magic numbers with msm7x30 custom. :)
[Spirit FM] mikereidis:
Thanks for your support. :)

Email me mikereidis@gmail.com and I can send the generally more stable and mature Spirit1 Unlocked.

There are links for earlier Feb versions of Spirit2 here: http://xdaforums.com/showpost.php?p=50740743&postcount=494

In general, Spirit2 issues should go on that Spirit2 thread, so I responded here: http://xdaforums.com/showpost.php?p=50741039&postcount=496
[Spirit FM] mikereidis:
Only Spirit1 has a chance to work.

Sept Free version linked in post #1, or the latest Spirit1 Unlocked on Play.
[Spirit FM] nirajvashi:
FM on Note 3

Hello, is it possible to have FM Radio on Note 3 N9005 by rooting or any other method? Will be grateful if you kindly respond. Thank you
[Spirit FM] LenAsh:
Note 3 has no FM Radio hardware, so there is no possibility.
[Spirit FM] nirajvashi:
Thank you very much for your response. The Sprint Version of the Note 3 also has the Snapdragon 800 and it supports FM Radio. Then why not the other versions? The developer of SpiritFM also says in his first post on the thread that if the device is rooted, there will be an FM chip burried inside.

Here is the link which has developer's comments on the Note 3 -

http://xdaforums.com/showthread.php?t=1059296&page=673

Kindly clarify.

Thank you
[Spirit FM] LenAsh:
My brother's Note 3 has no FM capability, but he knew that when he bought it. We've tried too.

I suppose it is confirmed here;

http://www.gsmarena.com/samsung_galaxy_note_3-5665.php
[Spirit FM] antonio89drop:
NOT RADIO FM!!! Galaxy S5 NOT !!!

!

Hi all I have a thought that I want to share with you on alternatives to FM radio.

Here are the reasons why I WILL

NOT

RECOMMEND TO USE THE "INTERNET RADIO" :

1) HIGH CONSUMPTION OF DATA !

With 90 minutes of the "Internet Radio" on average consumes about 100MB ( 128Kbps 44.1KHz and the same quality of FM Radio) .

So if you listen to 1 hour "Internet Radio" a day every day in a month is about 2GB that are subtracted from your data plan.

2) THREAT TO OUR HEALTH !

The "Internet Radio " requires active use of the antenna ( the FM radio has a passive use of the antenna that is only receptive FM signal ) .

So the "Internet Radio" with active use of the built-in antenna continuously exchanges data send them to antenna GSM / UMTS / LTE nearest (which is not required by the FM radio ) what means that those who use the "Internet Radio " takes a good dose of electromagnetic waves during its use due to the sending of data to the antennas GSM / UMTS / LTE.

I think it should be noted that recent studies it seems that prolonged use electromagnetic waves can cause cancer .

So the "Internet Radio" can be Carcinogenic .

This aspect you can also see from step 3.

3) LIMITED BATTERY LIFE !

This continuously sending data to the GSM / UMTS / LTE entails a considerable sending electromagnetic waves ( rather than in the FM radio is only read/received those already present around us without sending electromagnetic waves from our device).

This sending of electromagnetic waves GSM / UMTS / LTE "Internet Radio" causes quick unloading of the battery as sending electromagnetic waves requires a lot of energy.

On average, we observe that a 1-hour "Internet Radio" consumes over 300 % more battery the "FM Radio "

4) RECEPTION PROBLEM IN MANY CASES !

Last point, the "Internet Radio" requires a sufficient speed of data exchange that implies that virtually unusable in areas covered by only GPRS or UMTS in areas with poor signal .

In addition to the continuous change of cell GSM / UMTS / LTE in movement that has propped up the our phone creates moments of emptiness in the exchange of information with the network with an audio of the "Internet Radio " that can jump continuously, or in some cases stop at all ( unlike the FM radio in areas that cover the lower hear a rustling stronger or weaker depending on the case ) .

So the "Internet Radio" presents problems of coverage and greater sensitivity to the FM radio and species moving into areas where coverage is not very good signal UMTS / LTE.

My advice is to boycott the "Internet Radio" by buying products with " FM Radio " making it clear to companies that the buyer is not stupid as the "Internet Radio " takes electromagnetic waves in addition to those that already takes having plus coverage more limited and more sensitive to everything , we have a huge demand on battery power and data ( GB ) that you typically pay !

Now the choice is yours to be savvy consumers and not as many sheep as there would global giants .

Thank you for reading this my thoughts.
[Spirit FM] nirajvashi:
Thank you once again for the reply. Can you tell me whether this Spirit FM software supports FM Radio on supported phones like the Note 2 to play FM without inserting the headphone jack? Thank you
[Spirit FM] landroidapp:
nice app. i like it.

thanks
[Spirit FM] LenAsh:
The headphone LEAD (or any lead connected to the Jack ground) is required by ALL OTA FM Radios to act as the antenna. Unless you live literally under the transmitter mast...
[Spirit FM] nirajvashi:
There are many Chinese (non-Android) phones which can play FM without inserting the Jack or anything.

My question is whether there is an App that can by-pass the requirement of the 3.5 MM Jack being plugged in with something i.e to make the Radio think that the Jack is plugged in while it is physically not? There are some people who say that SpiritFM can do so.

http://www.pinoyxtreme.com/showthread.php?t=57767

Kindly throw some light on the above.

Thank you once again.
[Spirit FM] Rinoceros:
Those Chinese phones are probably using the Bluetooth antenne.

As mentioned above the most phones are using the headphone lead as antenna. That is a hardware limitation which cannot be solved by just an app. If you want to have it solved by an app, replace your phone by a Chinese one or buy a phone from that company in Cupertino; they seem to be able to solve all hardware problems by just modifications in the software (remember antennagate?)
[Spirit FM] kristalic:
How to combine? Now that's so terribly inconvenient, every time go into settings audio and change the method there, used to be convenient to on main screen when the mode switching button choose sound headphones or speaker.

P.S

I very would like that this bug fix in the next update Spirit FM ;)
[Spirit FM] landroidapp:
Very nice app, works like charm.:o
[Spirit FM] mikereidis:
Sorry to anyone waiting for an email or a response here.

I needed some concentration time to attack some nasty Spirit2 issues.
[Spirit FM] mikereidis:
The others I'm aware of, of course, and they are listed on some NAB website, along with the usefulness of OTA radio for emergencies such as natural disasters.

But I've never given much thought to all the extra powerful cell radio waves that travel through our bodies. That's an interesting point.
[Spirit FM] mikereidis:
Phone spec sites are notorious for getting FM information wrong. That's somewhat understandable since often only SOME variants of a phone have FM. And carrier websites often say nothing about FM, and manufacturer websites may not list FM due to the variant issue. They say to ask your vendor, it's up to them.

The Sprint Note3 does indeed have FM. It's a very, VERY special case of the Note3, the only Note3 available anywhere with usable FM. All other Note3's have the FM antenna pin grounded and no amount of rooting, kernel hacking or praying will help.

The Sprint Note3 is rare enough that I've never heard from somebody who had one. So I've ignored it. It doesn't even have a Samsung FM app though. It requires downloading the NextRadio app on Play. NextRadio and Sprints' $30 million ransom deal with US FM broadcasters is the only reason Sprint has such an extra special Note3.

Sprint might even come out with a very special FM enabled GS5. And again I'd likely ignore it just because Sprint is small and sells so few phones. And since the Emmis / NextRadio thing isn't happening with ATT or Verizon, I have this funny feeling that even the Sprint deal could end up dying.
[Spirit FM] mikereidis:
:)

Hi, GT-N7000 ? I've had another report or 2 about interference issues with phone calls, and I'm afraid I haven't had time yet to take a good look at it. I'll try to do this week. Email me mikereidis@gmail.com and I can send you Unlocked if you want to try that.
[Spirit FM] mikereidis:
Yes, Spirit can operate without a wired headset plugged in, and it seems to be about the only app (that I've seen) that allows this.

One exception is unrooted Samsung Galaxy S class devices. The Samsung FM API enforces this, so Spirit can't work around it, unless the phone is rooted.

With no wired headset antenna, metal phones like the HTC One are useless. Other phones are dependent on the FM chip, it's generation, and how much useful PCB trace there is to act as an ad-hoc antenna.

Some of my phones can pick up RDS with no antenna, and that's hard with a weak signal. But most of them don't get much usable signal without the wired headset. So, it depends.
[Spirit FM] mikereidis:
Set Audio-> Method to "msm7x30 Custom".

Set Debug-> msm_snd speaker to 9 (or 10 or 11)

Set Debug-> msm_snd headset to 10 (or 9 or 10)

:)
[Spirit FM] mikereidis:
If you're waiting on email, sorry but I haven't got to my 4 days of email yet. Will do after 7+ hours of sleep.
[Spirit FM] mikereidis:
Yes, thanks ! AFAICT this chip is compatible with BCM4325/4329.

Actually this violates my theory that there are no Samsung devices that use Broadcom FM.

Reading up on the Spica I found a reference to what appears to be a Samsung specific function that may help enable audio on some Samsung devices running stock ROMs or libraries at least:

android.media.AudioManager.setRadioSpeakerOn

So there IS some hope for other Samsung Broadcom devices. Yay ! :)

The thread/page: http://forum.samdroid.net/f28/who-can-tell-me-how-make-fmradio-work-1511/index4.html

Also contains another GEM for Samsung by Alks at post 35:

"When you type this code : *#*#197328640#*#*

You've acces to a Service Menu

then go to

[9] common

[7] factory test

[9] FM radio test"

This MIGHT help us determine if Samsung devices have the needed antenna and audio connections.

Bell Canada is supposed to be releasing their Galaxy S2 this week and I may buy one.
[Spirit FM] Kusa123:
works fine w/ htc aria cm7.1rc1 and JP region.

But i have to set back to US region then set JP region again everytime start APP so i can tune 76.0-90.0 band range.

also, auto-scan sticks at 76.1/89.9 and doesn't auto-wrap.

Sent from my Liberty
[Spirit FM] SaurusX:
I'm not receiving any RDS data at this time. I put the phone into airplane mode, though it made little to no difference to my ears. It almost sounds like there's more than one station being played at one time (if that's even possible). Definitely overlapping voices and the same pulsating static bursts. The signal strength is not consistent and I don't know if it's being read correctly. One time I was getting in the range of 9-17 and another instance of the app was getting 128. Both sounded the same.

See my dropbox link: http://dl.dropbox.com/u/11825446/res.txt

It looks like there's a lot of extra crap in there, but I'm sure what you're looking for is also in there.
[Spirit FM] mikereidis:
Great, thanks !

You are the first person to report using the "unusual" Japan band; It's great to have some feedback on that.

Due to no reports I've neglected testing the Japan bands much, but I'll look at it much more closely tonight when I get back home.

You might note that the frequency graphic at top is hardcoded for 87.5 - 108 MHz.

Have you tried "Japan Wide" ? That should cover the range from 76 - 108 and might work better.
[Spirit FM] mikereidis:
OK, thanks.

This is sounding more like an antenna/radio frequency issue.

If you remove the headset and if the signal strength seems to act the same, then I'd guess the issue is antenna related. In other words, it likely won't get much worse with no headset wire antenna connected.
[Spirit FM] sfortier:
Results:

>adb shell /data/data/com.mikersmicros.fm/files/ssd 1 0

FM analog audio enable utility vJuly 16

Copyright (c) 2011 Michael A. Reid. All rights reserved.

Mode: "1" (1)

Func: "0" (0)

Opening device /dev/msm_snd

Error opening device errno: Device or resource busy (16)

>adb shell /data/data/com.mikersmicros.fm/files/ssd 4 0

FM analog audio enable utility vJuly 16

Copyright (c) 2011 Michael A. Reid. All rights reserved.

Mode: "4" (4)

Func: "0" (0)

Opening device /dev/snd/controlC0

snd_fd: 3

m4_do info

Version: 0x20006

card card: 0

card pad: 0

card id: msmaudio

card driver: MSM-CARD

card name: msm-audio

card longname: msm-audio (MSM-CARD)

card reserved_:

card mixername: MSM Mixer

card components:

ctll count: 2

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

cei count: 1

elid numid: 1

elid name: PCM Playback Volume

cei iface: 2 Virtual Mixer

cei access: 0x13 rd,wr,tr

cei owner: -1

cei type: 2 Integer

cei min: -50

cei max: 16

cei step: 0

Values: 0

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

cei count: 1

elid numid: 2

elid name: device

elid index: 1

cei iface: 2 Virtual Mixer

cei access: 0x3 rd,wr

cei owner: -1

cei type: 2 Integer

cei min: 0

cei max: 25

cei step: 0

Values: 0

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

m4_do ioctl success func_num: 0

Any idea?
[Spirit FM] psyke83:
Mike,

I'm pasting my reply from the I5500 thread, since I figured it would be more appropriate here anyway:

Hey, I'd be happy to add the code, if you can give me a little advice.

My phone is using the regular msm7k qdsp5 libaudio code (the same as e.g. Commtiva Z71), with some custom patches for the microphone/latency. I'm not sure what routing code needs to be added?

I've looked as some other ports' libaudio such as the Blade ZTE - they have code for si470x radio chips, but the Galaxy 5's FM radio uses the BCM2049B0 chip.

I've checked the strings of the proprietary "btld" daemon from my official ROM and all the I2C calls seem to match the BCM432X calls that you can see in CyanogenMod's broadcom radio code. My port is compiled to try and use this same Broadcom FM radio code, but it doesn't seem to work.

Source: https://github.com/psyke83/android_device_samsung_galaxy5
[Spirit FM] Kess78:
Hi,

adb says : echo 1 > /data/data/com.mikersmicros.fm/files/opt/aud/custom: not found :(

Yes I tried to reboot :(

Another strange thing is that since today your app doen't want to turn on withour turning on bluetooth anymore, even if I uninstall and reboot... Maybe you can add an option where we can force the app to stop using BT?

There is also a bug about the display in 320x240. Some elements are cut on the screen. I took a screenshot so you can see... (But please try to not change the size of the text:(

Finally I think you should add a default value for the volume scale, cause it's very loud when the app is start for the first time. 5 give me the same volume as the stock app.
[Spirit FM] Kusa123:
tried wide, but freq sticks at 108.0 even if I entered different number.

auto-scan wrapping seems working (couldn't detect any stations though).

Sent from my Liberty
[Spirit FM] mikereidis:
If you are using adb shell you have to use quotes (""), otherwise it will try to write the file on your local PC:

adb shell "echo 1 > /data/data/com.mikersmicros.fm/files/opt/aud/custom"

For the above or for the "Compatible FM chip not found" issue I PM'd you about ? I'm REALLY hoping that issue is resolved now, otherwise the app isn't working at all for you ?

You have a Texas Instruments (TI) device and it has always required Bluetooth to be on. Bluetooth off operation has only been available for Broadcom devices.

If you start the app with BT on, it will start faster. With BT off, the app has to wait while BT is switched on, usually about 6 seconds.

OK, thanks, I haven't tested lower resolutions in the last few versions, and I DID make some layout adjustments.

The default is 100% and this has worked well on the vast majority of devices. I think there is something different with your device (and some others) that adds extra amplification.

Unless and until I can learn how to turn down that extra amplification, I can probably add a feature that auto-sets volume scale for specific devices.
[Spirit FM] mikereidis:
That's not good unfortunately. I see the same error on one of my devices.

I think we will need subpsyke to add support, but we'll need some information about what device numbers to use.

I think the problem is that the mediaserver process holds the audio device open exclusively so that we can't control it.

For testing purposes I run a command that kills the mediaserver, and then immediately runs the ssd command. Mediaserver is automatically restarted in 5 seconds or so. This is the command I run:

adb shell "killall mediaserver;/data/data/com.mikersmicros.fm/files/ssd 1 0"

Hopefully this will produce many lines of output including a few named FM_Headset, FM_Speaker or similar. Take the number on such a line and use it in the following command (same as above, except using <NUMBER> instead of 0 / zero):

adb shell "killall mediaserver;/data/data/com.mikersmicros.fm/files/ssd 1 <NUMBER>"

For example:

adb shell "killall mediaserver;/data/data/com.mikersmicros.fm/files/ssd 1 9"

if you saw the number 9. If you didn't get any numbers you can try common ones like 9 or 11 or any number from 1 to perhaps 70 or so.

IF you ran the above when the app was running, a station was tuned, mute off and volume set decently, you will hopefully hear a burst of sound at least until mediaserver restarts.

This isn't a proper solution of course. It verifies the audio path and provides numbers that may be useful to subpsyke.
[Spirit FM] sfortier:
Results:

>adb shell "killall mediaserver;/data/data/com.mikersmicros.fm/files/ssd 1 0"

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

FM analog audio enable utility vJuly 16

Copyright (c) 2011 Michael A. Reid. All rights reserved.

Mode: "1" (1)

Func: "0" (0)

Opening device /dev/msm_snd

snd_fd: 3

m1_do SND_GET_NUM_ENDPOINTS ioctl num_endpoints: 19

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 0 name: HANDSET

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 2 name: MONO_HEADSET

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 3 name: HEADSET

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 6 name: SPEAKER

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 8 name: TTY_HEADSET

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 9 name: TTY_VCO

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 10 name: TTY_HCO

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 12 name: BT

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 16 name: IN_S_SADC_OUT_HANDSET

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 17 name: IN_S_SADC_OUT_HEADSET

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 24 name: BT_CONFERENCE

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 25 name: IN_S_SADC_OUT_SPEAKER_P

HONE

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 26 name: FORCE_SPEAKER

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 27 name: FM_SPEAKER

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 29 name: NO_MIC_HEADSET

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 30 name: MEDIA_SPEAKER

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 31 name: MEDIA_STEREO_HEADSET

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 32 name: BT_NSEC_OFF

m1_do SND_GET_ENDPOINT ioctl snd_endpoint.id: 34 name: CURRENT

>adb shell "killall mediaserver;/data/dat

a/com.mikersmicros.fm/files/ssd 1 27"

FM analog audio enable utility vJuly 16

Copyright (c) 2011 Michael A. Reid. All rights reserved.

Mode: "1" (1)

Func: "27" (27)

Opening device /dev/msm_snd

snd_fd: 3

m1_do SND_SET_DEVICE ioctl ret: 0

Tested with spirit app running, get no audio... :(
[Spirit FM] neonoafs:
Hey mike, can you teach me how to get a louder volume in your app (changing inside app, not on volume button)...is incredible how the volume of your Radio app is louder than the stock ones (including the new FM RADIO app of new MIUI 1.7.15). Is there a way to make it louder? I saw and used many apps to boost the volume of my phone (Volume+ for example) but they just worked on default and non-default music/video players, not on FM RADIO apps (neither stock ones). I'll appreciate your help.

Thanks

PS: Sorry for my bad english :(
[Spirit FM] mikereidis:
You want it louder ? But then you say my app is ALREADY louder than the stock FM app ?

At this time the only possible way to make it louder with software would be using some phone specific amplification.

That's because the app uses analog audio. When the Android volume is set to maximum, my app sets the volume register on the chip to maximum.

If/when I support digital audio it might be possible to "amplify" that, but on most devices I think it would result in very bad distortion unless the device volume was abnormally low for some reason.

Because the audio is analog I'd think that apps like Volume+, equalisers and VU meters won't work, unless they use phone specific controls.
[Spirit FM] mikereidis:
OK, thanks, I'll presume you had the volume up. Unfortunately sometimes those numbers are wrong. I wonder why you have FM_SPEAKER but nothing for headset.

If I had your phone on my test-bench I might run the command with every number from 0 - 257 at least, using the keyboard up arrow to edit so it's not too much work.

But then again, I might create a shell script to automate this. I'll try to add this feature to my app for testing. But even if we find the "trick" we'll still need support in the ROM.

I'll let you know when I have something further to test, thanks...