yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Oct 6: http://www.mediafire.com/file/tudguh28n4lojob/Spirit_FM_Radio_v111006.apk

- I'm seeing more "Universal" ROMs lately that confuse my FM chip detection code because they contain both Broadcom and TI files (or neither!).

So this version has a Debug option at the end that allow forcing a specific FM Chip. Default is Automatic, others are Broadcom, TI, and for Galaxy S etc. Silicon Labs Samsung (/dev/fmradio) and Silicon Labs CM7 (/dev/radio0).

- Above that is another Debug option for Dell Streak: "Use fm_hcitool". When enabled, the fm_hcitool usage is the same as in other recent releases.

The default of disabled will hopefully allow operation with Bluetooth off. It may also help with speaker/headset selection if Audio Method is set to Dell Streak. If Audio Method is set to anything else, especially something benign like HTC, then I think headset is selected.

Changing this option requires restarting the app, and ideally, rebooting the Streak.
[Spirit FM] pistou:
AT&T Samsung Galaxy S II (SGH-I777)

There's been a fair bi of kerfuffle about the radio (or lack thereof?) on the recently released AT&T version of Samsung's Galaxy SII (see http://xdaforums.com/showthread.php?t=1285486). I've just tried the latest build of Spirit FM Radio and this is the error message displayed (automatic chip detection):

Sorry! Compatible FM chip not found... :(

Fm:BC Sh:1 Su:0 Bt:1 Ht:0 H2:0 Mo:BCU

Does this help in trying to figure out what's wrong with the FM tuner in the SGH-I777?

The only difference to this message with the other chip detections that I tried are as follows:

Sil Labs (Samsung Galaxy S) -- Fm:SL && Mo:SLD

Sil Labs (CM7 Galaxy S) -- Fm:SL && Mo:SLR

(looks like this information is just about what chip detection was used)

Emulator (Test) -- no error message (but no radio, of course)
[Spirit FM] mikereidis:
Interesting kerfuffle, thanks. :)

"Su:0" means you don't have root/SU. On some Galaxy S* models that's OK, but not on others.

Forcing the FM chip type with that option will only work if there is a /dev/fmradio device, which that thread indicates it doesn't have.

I'll get to the other thread after I feed my family...
[Spirit FM] maduuto:
I have Nexus S rootet with Muiu Firmware, it knows the FM Receiver : Fm: BC Sh:1 Su:1 Bt:0 Ht:0 H2:0 Mo:BCH UA Hv:4 Ma:15 BC

But there is no sound! I plugged the headset, whatshould i do to get sound? Thank you!
[Spirit FM] idkidk:
Hi Mike,

How are you? :D

Too many time that i don't post here.... :rolleyes: i've buy a used dell streak mini 5, installed your radio and... boom! everything work fiine! your radio is AWESOME!

And wow! with my SGT now i listen some static with "samsung" method.... :p

Good work man!

Bye

Idk
[Spirit FM] gorast358:
Does switch to speaker works ?

Do you have in call volume after you close the app and pick up a call?
[Spirit FM] idkidk:
Hi,

- Does switch to speaker works ?

I haven't try

- Do you have in call volume after you close the app and pick up a call?

NO! :mad: I must reboot for in call volume back....

By

Idk
[Spirit FM] gorast358:
If you switch to speaker during the call volume will be back .
[Spirit FM] mikereidis:
Sorry, I think Nexus S can never work. No antenna, power or audio connections to Broadcom chip and it doesn't have the Silicon Labs FM chip that the Galaxy S has.
[Spirit FM] mikereidis:
:D Fine thanks. Well, we hit a dead end on the Galaxy Tab.

I've since found that several other devices have the "Jumping RSSI" problem. ALL of them have no stock FM app, and nobody has EVER had FM working on them.

I even see this problem on my Galaxy S when I force the use of the Broadcom chip. I think the FM is disabled in hardware by not connecting the FM specific power pins.

Great ! We could very much use your troubleshooting skills for Streak issues I'm working on. They are related to volume control (maximum and not controlable ?), and speaker/headset. I think you can select speaker or headset, but have to reboot to change the setting.

The Streak is the only Android "tablet" (5" is small) I know of that has FM radio possible. So good choice. And there was no stock FM app from Dell.

Static with Samsung method on the Tab ? Are you running a stock ROM or one close to stock, at least in the audio libraries ? I presume there's not even a hint of any FM signal on the strongest channel ?

If my theory about the FM power pins is correct, I'd think there would be no radio static. But it could be audio hiss or "computer static".

We saw ALSA audio controls for FM on your Tab. But I think they were intended for the Silicon Labs FM chip in the Galaxy S. So an audio hiss or "computer static" might be from pins that were intended to connect to the Sil Labs chip, but were unconnected.
[Spirit FM] idkidk:
Hi Mike,

-- If my theory about the FM power pins is correct, I'd think there would be no radio static. But it could be audio hiss or "computer static".

I'm agree with you, i think is computer static, but is however interesting..., i'm on a ROM close to stock, but without any Fmradio library, i suppose.

-- They are related to volume control (maximum and not controlable ?), and speaker/headset. I think you can select speaker or headset, but have to reboot to change the setting.

Ok tomorrow i'll try and post result. Now for streak i'm using a completly custom rom, that have a fmlibrary installed on it (http://xdaforums.com/showthread.php?t=1275239), and have 2 fm app that working:

1) Streak Radio (working, but too simple)

2) FM Radio 1.2 (working, but are in jap language)

Bye

Idk
[Spirit FM] kriskovski:
So, it is final, that gtab doesnd have connected pins or so..

So, it is final, that gtab doesnd have connected pins or so...
[Spirit FM] mikereidis:
In my opinion, yes, it's final, no good, won't work.

I would never say never, but I won't be pursuing any further attempts on devices with the "Jumping RSSI" problem as described in post 2 of this thread.

I offer a $100 bounty to anyone who can find a way around the "Jumping RSSI" problem. I'd make it much higher, but on the off chance it's possible, I can't afford any more.

There will always be people claiming it can work because the Broadcom chip "supports it". These people often also think that FM transmit must be possible too, because "the chip supports it".

Some of these people trash my free app in the market claiming my app is garbage or some such because it won't work on their Atrix or whatever. There are some REALLY sad/ignorant/funny comments. A few are likely put there by the guy trying to re-sell the stolen Motorola app, or his associates. :)
[Spirit FM] mikereidis:
OK, thanks, I'll check it out.

I've never heard of this "FM Radio 1.2". I guess it's FM_radio.apk ?

I just looked at it and it seems all english. But AFAICT it just uses fm_hcitool for power on, off and tune like Streak Radio.
[Spirit FM] idkidk:
Hi Mike,

Yes is a FM_radio.apk, i've notice that the system volums don't change the app volume, 2 ideas (maybe old):

1) when push the button to store the current frequency, store the rds radio name

2) a graphic volume control inside app (so app can set own volume level)

More testing in progress.... :rolleyes:

Bye

Idk
[Spirit FM] mikereidis:
Thanks ! So you can't control volume even with my app ?

1) Should hopefully be done sometime this month.

2) is in the latest Oct 6 test version. Menu -> Volume Graphic turns the graphic frequency indicator/control at top into a volume control. Menu -> Frequency Graphic turns it back. This was a quick hack; I'll make it look a bit better soon.
[Spirit FM] idkidk:
Hi Mike

In your app i can control volume by setting the value in Audio -> Volume scale. In other way (Menu -> Volume Graphic) don't work. The 2 app installed in rom don't have any way to control volume.. (i haven't found the way for now..)

Tia

Idk
[Spirit FM] mikereidis:
OK, that is strange. If one works, the other should too, assuming you can change the volume while the app is running. I'll see what I can find.
[Spirit FM] hungngit:
its not work on my Motoroi XT720 one using CM7
[Spirit FM] mikereidis:
Thanks for your report.

I had some email about an a854 Motoroi running CM7 that we were unable to get working.

The FM chip was misidentified as Broadcom, but even forcing it to use the TI chip support, we were unable to see RSSI signal strength levels over 4 or so.

AFAIK, there is no stock FM app for these devices and no CM FM app. Assuming that's true I think FM is not possible. Unless there is some software switch to turn on the antenna connection...
[Spirit FM] alonsosjumper:
One question, has been solved the problem with the damage speaker on Galaxy S?

Thanks!
[Spirit FM] kenbanks:
Is Samsung ashamed of the SGH-i777 Galaxy S2 for AT&T???

I am a little more than irate about the non-existent FM Radio that's been advertised by every spec sheet that can be found for the AT&T Galaxy SII SGH-i777.

Checked Samsung's own website for their full spec on the i777 and it DOES NOT list the FM Radio. Did it used to?

You can no longer find "FM Radio (check)" in the specs on the AT&T website. only because they flat-out removed that line. This further enrages me.

The proper thing for them to do, would have been to leave it in there as

"FM Radio (disabled)" or better yet, provide an complete explanation.

This is a matter of setting expectations. It wouldn't be so bad, if they hadn't already set them incorrectly the fist time, by advertising the FM radio.

All of this just illustrates that there is no one at AT&T or Samsung who either owns this issues or understands it. It just creates frustration and rumors for us. You gotta know the chip supports it, it would be too expensive for Samsung to maintain a separate BOMs for i777 and I9100. So is there just no pin-out for it? Or is there simply just no driver there yet to use? Possibly coming in a later update? Why do these companies treat us with so little respect, as if they owe no one an explanation.

People always use local sports, etc. as a reason to actually NEED the FM radio.

And we can also use the justification that AT&T may want to increase data usage, by not having the FM radio. No one ever seems to mention (in my opinion anyway) the single most important need for the FM radio is in order to use it for personal/private FM transmitters. I use on on my TV at home so as not to disturb anyone else. Or there are also many health spas that use them for the TV's stationed in front of each workout machine. Not to mention public parks or other local broadcasts to emergency conditions and status information, etc. The are still plenty of reason to NEED/USE a plain old legacy FM radio.

Just for the record, I use TuneIn Radio app for streaming more than any other app on my phone. But not to have the old fashioned FM radio really irritates me when I need it. I don't like carrying multiple devices. Android is supposed to lessen the need to carry multiple devices. AT&T doesn't get it.

:mad:

Ken Banks
[Spirit FM] mikereidis:
No, I'm afraid not. Many people have never experienced this, just a few AFAICT.

3 people besides myself have reported this. One person had it fixed by replacing the speaker.

It only seems to happen on MIUI. The Galaxy S ALSA audio method used to be the method for CM and it never happened on CM AFAIK.

It's never happened to my on me 2nd phone, but did on my first.

I've speculated it could be related to older hardware and/or to bugs in the original Samsung kernels that propagated into CM and MIUI, but those are just guesses.

The risk may be minimized by keeping volume low and only using the headset, but these are just guesses too.

I'm not sure if I'll ever be able to support MIUI on Galaxy S well, unless and until they enable FM audio routing in the audio libraries, and that may only happen if the MIUI FM app is added.
[Spirit FM] mikereidis:
The PCB may have a spot for the Silicon Labs FM chip. It would be easy enough to create a variant that simply does not have that chip installed on the assembly line.

I think no chip is more likely than that the normal FM driver just doesn't work at the normal I2C address.

Big bureaucratic companies focused on profits are like this. Last one I worked for had a not so good support forum I stumbled upon.

My first temptation was to try and help. Then I realised it could end up using much of my own personal time, and that it could very well result in unhappy bosses.

Somebodies somewhere knows the answer. (Probably that there is no FM chip and they made a mistake using a generic spec sheet.) But just about nobody wants to anger their boss or get fired by admitting it publicly.
[Spirit FM] nobbot:
Hello,

I've just installed the 26 Sept version (the market one) on my LG Eve (gw620) with a port of cyanogenmod7.1 installed named OpenEve.

It's working generaly fine but has some strange issues.

- Sounds is OK with cyanogen method (for most of them, actually)

- Volume control is OK after a reinstall (firstly it didn't works, then I deinstall and install the 4 Oct release and it works. For the test I deinstall this one and reinstall the market one and it continue to works)

- Tune and Scan are working well too

- No need to activate BT

So, the important things are good and I thank you, Mike, for that. Great Job!

Now, what's not working

- No RDS information. I only have a PI:0

It seems the phone has a BCM4325 but I don't know the spec of this chip, maybe no RDS.

Also, I understand that the app has full spec during 7 days to test it before buying. Maybe I misunderstood and I simply need to unlock it to get RDS fonctionning...

- The reception stops when the wifi is deactivated (manually or when the phone go to sleep mode. I need then to power cycle the app to get reception back). Apparently the sound has no problem as I get some "scratch" when I mute/unmute.

But I notice now that I got the same with the MIUI fm app(coming with OpenEve). Probably a rough implementation of the wifi in Openeve.

- No speaker out, only headset. When I press the button, the sound stop for 0.5-1 sec but stay in the headset... If I unplug, I just get no sound and it comes back when replug as it never stop.

Maybe you can help for these...

Either way, thank you a lot for RSSI info, no BT and scan, these made already your FM app the best one ;-)

For info:

Fm:BC Sh:1 Su:1 Bt:0 Ht:1 H2:0 Mo:BCH UA Hv:4 Ma:15 BC

There is an native FM app by LG in the original ROM and the MIUI one installed in OpenEve is working (exept for the wifi issue).

I'm not a developper but have some expertise in linux console. I can send you log, dmesg or logcat as you need.

Maybe I can do a french translation too if needed (but got no experiences in how to do that).
[Spirit FM] mikereidis:
Hi nobbot, thanks for your report. This is the first I've heard about the LG Eve so I'll add it to my supported devices list. :)

I think it just appears that most of the Audio Methods work. Your volume control issue seems to be reported by some others. Didn't work at first, then started working.

I haven't updated my help file yet. The app doesn't have a 7 day full trial mode anymore. RDS requires the app to be unlocked. I'll change my help file now for next release.

This is because the drivers shut down the Broadcom chip to save power when WiFi and Bluetooth are both off. The only workaround I know at present is to leave either WiFi or Bluetooth running. I can add investigating this issue for a better solution to my to-do list.

So, OpenEve is somewhat like CM7, but has the MIUI FM app ? And there is no CM FM app for this ROM ?

Does the MIUI FM app work with speaker ? If so and if I can get a copy of the MIUI FM app, I can probably figure out how it does it.

Translations are on hold for now, but thanks.

If you are running the latest test release at http://www.mediafire.com/file/tudguh28n4lojob/Spirit_FM_Radio_v111006.apk

you can send me useful logs via Menu -> Help -> EM Logs. Do this after starting my app and pressing speaker/headset a few times. Wait a few seconds and press Send on your email client.

If that doesn't work, just the logcat and dmesg are good too.

Thanks !
[Spirit FM] alonsosjumper:
Thanks for answering. Another question, on market appears the 2nd august version for buying. If i buy it, i cant enjoy the 5 th october version unlocked?
[Spirit FM] mikereidis:
Yes, the August 2nd Unlocker works with any Radio app version August 2nd or later, whether from the Market or a test version I link from here.
[Spirit FM] HooliganIL:
so far so good on my htc hero cdma running cm7
[Spirit FM] mikereidis:
Great ! Thanks for your report. I've added it to my supported devices list now.

So this is the "HTC Hero / T-Mobile G2 Touch / Era G2 Touch" ?

One of the most popular phones running my app is identified by Google as "HTC G2", and I imagine this is it.
[Spirit FM] deepakbshetty:
Sent u logs for Galaxy S 2 running on CM 7 nightly 84

Please look into it
[Spirit FM] mikereidis:
Thanks...

I've seen several patches to support the CM FM app on Galaxy S2 in the code review system for CyanogenMod. They aren't part of the build yet though.

So I think CM will eventually support it's own FM app. At that time, my app audio should work OK, or I will easily be able to make it work.

I've asked some people to try commands to enable the audio, but they don't work for some reason, and I don't have an S2, and having proper support in the audio libraries is MUCH better anyway.

So for now I'm hoping/waiting for the CM FM app on S2.

If you are able to run adb shell commands, I can post some new commands to test if you like.
[Spirit FM] deepakbshetty:
Yes true those patches still need to come up on CM7 ,

U can gimme few shell commands which i can try to invoke audio :)
[Spirit FM] HooliganIL:
it is a HTC Hero and not a G2... however, loaded it up today to listen to a ballgame while watching my sons game, and it wouldn't work at all. Strange but i'll keep you up to date. CM 7.1 is the exact rom i'm using on my hero.
[Spirit FM] idkidk:
Hi Mike,

Recently i've completely reflashed my streak with latest streakdroid, and now i've this situation:

i've notice that if turn on spiritfm with btoff, the radio start, but sometimes don't find chip, sometimes don't get signal... :confused: but if i start with bton ... bam! app work very very fine... so i suppose that bton is a "prerequisite" or not..?

1) Now Multimedia Volume work fine with app

2) When changing to phone speaker i haven't audio, with headset audio OK.

Tia

Idk
[Spirit FM] mikereidis:
If this happens again, it would be good to know if it's just an audio problem.

If the RSSI signal strength at upper left is 10-20 or more, and seek and RDS work, then I'd guess it's just an audio issue.

For audio issues, try Mute/Unmute and Speaker/Headset a few times, as well as changing volume.

Sending logs may help may find the problem.
[Spirit FM] mikereidis:
I presume you are running the Oct 6 version ? Bluetooth off operation on the Streak has been tricky. Logs could help after you've had the problem.

There's a debug setting "Use fm_hcitool" that will enforce Bluetooth on for the Streak.

Re volume, that's great !

AFAIK, if you switch to speaker or headset, you must reboot for the change to take effect,

I haven't found a solution for this yet. Hypothetically, there might not be a solution, but I find that hard to imagine.
[Spirit FM] PlanDreaM:
We want huawei u8800 support.Ghere might be a chip inside for radio, what should i do to help?How can i dump some logs?

u8800,cm7,franco@1.5GHz
[Spirit FM] mikereidis:
:)

This device is reputed to have "Qualcomm Tavarua" FM, for which there is a "V4L" driver.

I added some experimental support for V4L several days ago, but haven't released this version yet. I can try to release it in the next 12 hours and we can see.

You need to have a /dev/radio0 or /dev/radio device driver available and usable. I believe I heard this device DOES have this.

Do you have adb shell ? Can you run:

adb shell "ls -l /dev/radio*"

or in a terminal app:

ls -l /dev/radio*

Or a file explorer can see if one of those radio* pseudo-files exists in /dev .
[Spirit FM] snake_boss:
There is no dev/radio on x5, with a quick look i only found one in /data, but there is nothing inside /data/radio folder... Hope it helps someway...

Regards

Posted by my slave using my x5
[Spirit FM] kenbanks:
Yahooooo!!!!!!!! With 4 days left on my 30-day trial period from BestBuy I'm taking my Samsung Galaxy S2 I777 back TODAY in exchange for the new Motorola Atrix II which they just started selling yesterday!! YES IT HAS A WORKING, COMPLETELY FUNCTIONAL FM RADIO WITH RDS!!! (Much unlike the lied-about Galaxy S2 I777)

I hated the first Atrix, because it too had an advertised FM Radio which could not be used, poor button locations, and only a 5M camera. All of these things have been corrected with the Atrix II.

Love it!!
[Spirit FM] mikereidis:
Great !

They advertised the original Atrix with FM ?

AFAICT it was intentionally disabled in hardware and nobody has ever or will ever be able to make it work without impractical hardware mods.
[Spirit FM] mikereidis:
There are earlier posts in this thread about U8800 and logs show there IS a /dev/radio0 device.

This may have been a stock ROM though.

It's essential that the /dev/radio0 device exist and be usable for any kernel to support FM via V4L.

There may be a loadable kernel module that can be loaded with something like:

insmod tavarua_fm

assuming there is a tavarua_fm.so in /system/lib/modules. Do a "ls -l /system/lib/modules" to see if anything useful is there.

Here is my latest Oct 17 test release for anyone wanting to try V4L support or just to test the latest: http://www.mediafire.com/file/p4z0gtuqmcr6nkr/Spirit_FM_Radio_v111017.apk

If the V4L auto detection works, the debug line should start with "FM:V4" and end with "Mo:V4D".

If it doesn't work, especially if it shows "FM:BC" you can force the FM Chip type to V4L in Settings -> Debug.

At this time V4L support is limited to basic tuning, mute and volume control. Audio may not work though.
[Spirit FM] snake_boss:
Well, I'm not very good at it, even so, i run this command ("ls -l /system/lib/modules") on terminal emulator and got this: (1st pic)

The auto mode work as you told, but no sound and the keys to change the sattion (< & >) did't work. (sec pic)

As kernel's and so, i'm not the guy, I only got the basics, not changing things xD

Hope someone can pass over here and help U, maybe talking with franciscofranco u get some usefull info!

EDIT: I'm using MIUI (not official) 2.3 and his kernel
[Spirit FM] mikereidis:
Thanks !

That's good for a first try ! It gave no error so that means the V4L driver is installed and appears to be working.

No sound might be the only real problem. My code is trying to use /dev/mixer for sound, but we may need to use ALSA for FM audio enable.

The code doesn't get RSSI signal strength yet, nor does it support seeking. So there's no way to know if the FM is working except for hearing audio,

I'll add some RSSI code and perhaps seek too, and will try to find out how to enable sound.

Right now I'm working "blind" as I don't have any device with a V4L driver, but I may be able to get V4L working on my Galaxy S with the right kernel.
[Spirit FM] PlanDreaM:
Need something like this compiled for the kernel i think:

https://www.codeaurora.org/git/proj...ry/kernel/drivers/media/radio/radio-tavarua.c

I will try maybe tomorrow if i have enough time and see what happens.
[Spirit FM] kenbanks:
You are correct. But that wasn't clear when I purchased the Atrix.

There were spec sheets all over the place listing the FM radio.

There were even tear downs done and I was able to identify the maker of the tuner chip: "Broadcom BCM4329 802.11 a/b/g/n , FM tuner and BT2.1 with EDR"

I'd post you some links, but they no longer exist, it looks like they've even been sanitized, just like AT&T did with their page on the Galaxy S2 I777.

Anyway, I'm quite happy with my Atrix II now!!

Cheers!
[Spirit FM] PlanDreaM:
IDEOS X5: No sound with test version.Properties: Fm:V4, Sh:1 Su:1 Bt:1 H2:0 Mo:V4D