yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Just need the "right" phone. If it's popular there are more ROMs and other options. The Blade was pretty popular, but has that "special" FM driver and the phone wasn't TOO popular with developers.

My least expensive phone was $80 and has better sensitivity than any of the other 10, despite the higher to much higher prices. It does have other issues though.

Samsung Galaxy 5 series: GT-i5500 specifically for me.
[Spirit FM] mikereidis:
"Files" under /dev are not real files, they are "pseudo files". You won't see them in a ROM. You need to look at a running device.

I'll look at your logs when I get to my email.
[Spirit FM] lrbpereira:
Email was sent in the afternoon.

And yes I saw in my running htc, that folder doesn't exist mike.
[Spirit FM] mikereidis:
No to both.

This is likely a hardware issue. I've heard "rumors" that it's because the left channel input is used for a microphone.

Motorola devices have a really "old school" OSS driver at /dev/snd/mixer. I've been planning to examine it to see if stereo is possible. I'll try to schedule some time.

At least the FM chip can be set to mono, and that is best since it reduces RF noise.
[Spirit FM] mikereidis:
I've also looked at Android_Revolution_HD-One_X_5.2.0.zip .

Yours and it both have FM drivers for TI chips, but no FM driver for the Qualcomm chip.

And once I get it running I expect many ROMs to have signal and RDS but no audio.

I will have to support stock and stock derived ROMs first, then we can examine other ROMs.

But some patience is advised. :)

I'm looking at EBay now for an International One X. Shoot, the one I wanted is now sold at $600... :(
[Spirit FM] jb789:
Thanks for the info. So is selecting mono under Audio in Spirit's settings different than "setting the FM chip to mono"? Just wondering if some mono tweak/setting is a path to D2 audio in both ears. Regardless, even just enabling the speaker mode would be a big step forward for us if you can find the time for it. :)
[Spirit FM] mikereidis:
No, they are the same thing.

I should make this automatic for the Droid2, but hopefully I'll find the other channel somewhere.
[Spirit FM] mikereidis:
Did a bunch of reading and confirmed the International One X is the one to get, thanks for your vote. :D

Pulled the trigger and bought here: http://www.ebay.com/itm/New-Unlock-...0974552668?pt=Cell_Phones&hash=item3f17578a5c

Hopefully I'll have it early next week.

I'm looking forward to see if FM transmit might finally be possible on a readily available (and desirable & popular) phone. Last I looked Qualcomm chips appeared to use the same antenna pins for transmit and receive. :)

The thread title will get updated to re-include the fourth FM chip supported, when ready for testing.
[Spirit FM] lrbpereira:
Don't forget that the stock rom, sense, has a great fm app. So I think that your work should be on the CM9 branch...

Don't see why anyone should be interested in having two apps for the same thing. The original has rds too...

Talk to me if you need directions...
[Spirit FM] mikereidis:
May 24 Free: http://www.mediafire.com/?q67papppog09yll

Might be on Play within 12-16 hours if no problems.

- Adjustments for non-English characters on OEM Proprietary APIs.

It appears as if the Broadcom, Motorola and Samsung APIs turn those characters into asterisks or inverted color question marks or similar. Newer TI might be OK, but haven't determined yet.

Has anyone ever seen non-English characters working on a stock, or any Android FM app besides this one of course ?

- Adjustments for "Galaxy S ICS". The former 3 options are now just one, and my battery of tests appears to indicate no audio problems with notifications or phone calls.

There is a slight "audio defect" though in that you can sometimes hear an extra, quick speaker/headphone switch when switching or unmuting..

- New Debug option "Mute Kill mediaserver" can be set to auto, enable or disable. The default auto switches to enable when using the qdsp5v2 analog method (for Huawei u8800pro) or the qdsp5v2 Plus/ICS method (for Desire HD etc.)

This is a "nasty brute-force" method to resolve audio problems after using the app, or during a notification or phone call. But it tends to work, when there are no other options. The mediaserver will restart itself, and because of this notification sounds or ringing might not be heard, or may be delayed.

But the automatic pause of FM audio provides a clue that a notification or ringing are in progress.
[Spirit FM] mikereidis:
Just read that the One XL will be sold in Europe in June. LOL, not sure if that changes the equations going forward.

What do you like about the stock HTC FM app ? Is it much better than previous HTC FM apps ?

I've seen some of the code, but haven't seen this FM app in action yet. But I've had the impression from reading that the stock FM app is a bit buggy. But that's to be expected with a new chip and the One X in general has a lot of software bugs still.

Among the major players I think the Samsung FM apps are the best, in terms of functionality. But none of the OEM apps has more than a few configuration options. Spirit has a bunch, to modify the UI or media button behaviour or AF functionality etc.

And now I'm seeing that the OEM FM apps don't support West European characters too, AFAICT so far.

I know that in general Spirit isn't very attractive to the vast majority of people with stock un-rooted phones that have free OEM apps. Most people just want some basic functions, if they want FM at all.

I've had relatively few emails from people with stock phones, and those I do have are often using devices with no manufacturer app included. So my OEM API support still has a number of limitations, and my primary focus is on custom ROMs.

Fortunately, the size of the custom ROM userbase has expanded quite significantly in the last year. Many people want ICS on their 6-24 month old devices. And there are still relatively few alternative options for FM on ICS ROMs that don't have the OEM APIs and Sense/TouchWiz/Motoblur etc. :)
[Spirit FM] lrbpereira:
Yes Mike, the XL is going to be sold in a small scale in some European countries. With cell operator contracts because of 4G.

But I don´t think that the XL is going to be the top leader in One´s series...

As I was saying to you before, for those who keep stock sense, touchwizzz, etc... Spirit FM is not a great option. Those roms, stock or custom almost stock... have a fmradio built in app for free that do the same thing that paid Spirit offer... RDS, etc...

Guys like me that love having AOSP, pure Android OS, on their phones... is the market that you want to explore.

CM9 in HTC One X is still in beta tester, some users already on it... there is build in MoDaCo forum that runnes great, soone it´s going to be uge, open to all to try.

The sense fmradio is great, has a really good design and it has RDS...

Hope you sort out what will be your target for firts, but for me, in my opinion, spending time with a stock rom, or even sense based for the HTC One X is a bad deal... Am I right?
[Spirit FM] mikereidis:
In general my primary target is custom ROMs because that's what most of my current customers have.

But in this case I will start with the stock ROM because that is the best and fastest route to good support on custom ROMs.

I KNOW the stock ROM FM app works, and I can examine it and compare it with Spirit as development progresses. Once it works OK on stock, then I can try custom ROMs.

Note that almost every custom ROM has problems with enabling FM audio and I suspect the One X will be no different, especially the One X with the NVidia Tegra3.

NVidia has been keeping a lot of information secret and that makes it hard to support FM audio. This is why there was never an official CM7 release for the Galaxy S2 that enabled FM. Even now Spirit can't work on GS2 CM7 and likely never will, unless/until I stumble upon the secret.

Then, there's the question of target API. I already have minimal and buggy support for the Qualcomm V4L driver, and that might be the only option on custom ROMs. So V4L is important and might come first.

But for stock unrooted devices there is an "android.hardware.fmradio" API I would need to target. This API will I think be easy to put on custom ROMs, as seen on some Huawei X5/X6 ROMs with a Qualcomm FM chip.

So I will likely support that API also, and I don't think it will be too difficult since I believe the source code for it is open.

In the end, my primary goal is to FM enable custom ROMs as well and as soon as possible. But to get there I think it's best to start with the stock ROM.

And one important consideration for me is that Qualcomm has an open source FM app out there that somebody will port to the One S/X sooner or later. It has RDS and is free and open.

So I'll have to provide compelling exclusive features to compete with a free app. I'll have the same effective situation with custom ROMs as well as stock: competing with a free app.
[Spirit FM] k4t5u:
good job, but you could improve the interface to your application?

thanks!
[Spirit FM] Nexxusel:
is solved the problem with the rom ics galaxy with the speaker ?
[Spirit FM] willie1001:
hi mike,

I'm having a problem with the volume.

a while before i was using the teamhacksung build of cm9 and i had a problem then too, but that was fixed by using volume scale.

I have now updated to the nightlies of cm9 and for some reason the volume scale doesn't work anymore.

is there a fix for this?
[Spirit FM] mikereidis:
:)

Yes.
[Spirit FM] mikereidis:
Summary: Looking good. :)

I think so, but I'm being superstitious about not calling it prematurely fixed, for fear someone will report one more.

I think there's only been one report in the last 6 weeks, and that was due to a short period where the old method was used again.

The latest test releases don't have a specific Galaxy S ICS warning anymore, and the May 25 I'm about to upload to Play has only one method: "Galaxy S ICS".

And that method is now automatically selected. And I think I may finally have it in a very usable state with regard to phone calls and notifications now.

So if nothing else, reducing the number of reports from 1 every 6 days to 1 every 6 weeks (6 weeks ago) means that any risk present appears reduced by a factor of at least 7.

At a certain low level, you probably have to assume any failures would have happened anyway. Time goes on, things break.
[Spirit FM] mikereidis:
Yes. CM9 nightlies for Galaxy S moved the location of their FM normalize bug from wm8994 to voodoo.

So I had to add new code to my workaround for that bug.

The recent test releases have this fix and I'm about to upload May 25 to Play.
[Spirit FM] mikereidis:
May 25 updated on Play. Free package link at top of post 1.

Virtually identical to yesterday's May 24.

Changes relative to previous Play May 11 release:

- RDS PS & RT in Notifications Screen. Settings -> Notification Display.

- RDS West European characters.

- Galaxy S ICS fixed.

- Minimizes SU requests.

- Galaxy S voodoo normalize.

- ICS Bluetooth.

- Automatic Audio Method.

- Settings->Debug->Audio Focus Off fixes some audio problems.

- Debug -> Mute Kill mediaserver fixes some audio problems.

- Galaxy S test altern to battery eating Silent Loop: Debug->ALSA PCM Open.

- Enable some Motorola devices.
[Spirit FM] Nexxusel:
so is safe on aokp rom right ?
[Spirit FM] mikereidis:
All the custom ICS ROMs pretty much use the same ALSA driver and that driver has been pretty stable for a while.

So results should be the same. AOKP ROMs are popular enough I would likely have heard a report recently, and it's been quiet, other than "cosmetic" audio issues that also seem resolved now.
[Spirit FM] willie1001:
I might be doing it wrong but i cant get it to work.

i did update to the latest "useless" version and volume scale still doesn't work
[Spirit FM] mikereidis:
Volume Scale is useless on Galaxy S/S2/S3/Player/Note, all with the si4709 FM chip.

Make sure you have it set to the default of 100.

Now, make sure that Debug->GalZ Normalize is DISABLED. IE, make sure there is NO check mark next to it. Enabling it disables the fix. One of these days (not yet I presume ?) CM9 will be fixed and you'll have to enable this setting. AFAICT their bug makes normalize backwards.

If in doubt about settings, clear the app data and reboot.

If the volume is still too loud please send me a debug log immediately after starting the app in headphone mode. Use Menu->Test->EMail Logs and put something in the email so I know it's yours.

Thanks...
[Spirit FM] pikachukaki:
Im using is with miui v4 and its working great also there was some minor graphical bugs...i will post a ss when i can...but after closing the radio the music from music.apk for example didn't hear!!also if you please and its easy a widget will be great addision to your app!!

I change also the volume control to something else but still when im trying to play some music i can't hear anything!!! :/ if you fix this then i don't thing there is anything else to fix!

p.s i also post this at ideos x5 pro forum...but you look here more often! :P
[Spirit FM] mikereidis:
qdsp5v2 analog should now automatically set the May 25 version setting for Debug->Mute Kill mediaserver.

But you can try manually setting Debug->Mute Kill mediaserver to "Enable".

Do that, press Mute, then do Menu->EMail Logs to send me the logs and I'll see if mediaserver is getting properly killed and restarted.
[Spirit FM] pikachukaki:
Mediaserver is by default enabled...but there was a bug with the specific version of miui that by itself dosn't enable the speakers after unpluging the headphones..so maybe this was a false alarm..i will make some more tests tommorow to see if it the rom or the radio...and i will test all the sounds to see if there is any sound that can't be heard after closing the radio...also...consider the widget thing! :P and also the dots at volume and freq didn't shown it just show a white square..like missing the png or something...theme ics holo the dark version!

Edit: ok it works but with one minor problem..when you close the radio and unplug the headphones volume+ gives you an FC so i plug/unplug the headphones 4-5times and no sound from speakers....then i go and open volume+ close it and press again play...and vouala...sound from speaker without restart! :P and also...as im checking now ringtone when receive a call works normal!!!
[Spirit FM] mikereidis:
The frequency and volume "slider grabbing" things are called "thumbs" in the Android documents. They are part of the Android Theme and my app doesn't set them. I tried to change them at one point but wasn't successful.

From what I've seen, the dots are part of the ICS Holo theme, and the squares/rectangles are Gingerbread. Personally I prefer the older shiny rectangles but I wish I could make them configurable.

If Spirit is off and closed, you shouldn't be getting any FCs from it directly. What app or component is identified as the source of the FC ?
[Spirit FM] pikachukaki:
Volume+ (Volume booster app) and after re-open it we can have sound from speaker!
[Spirit FM] Mohanned85:
i cant seem to get it to get sound when i downloaded it :(

i have Spirit FM Unlocked istalled :(
[Spirit FM] mikereidis:
HTC Sensation with CM9 ?

You probably need to set Audio -> Method, perhaps to "qdsp5v2 Plus/ICS", although that should be automatic in the latest releases.

Please send me a debug log with Menu -> EMail Logs and put "Sensation CM9" in the email text.
[Spirit FM] lrbpereira:
Mike,

Did you recieved your HTC ONE X? When can you see the magic on it?
[Spirit FM] Mohanned85:
Will do indeed and ya HTC sensation
[Spirit FM] mikereidis:
:)

http://wwwapps.ups.com/etracking/tr...track=Track&InquiryNumber1=1z99e9a70498283992

Hong Kong to nearby in 3 days. As usual though, he last 30 km has taken over 15 hours so far. Hopefully tonight or tomorrow.

I've been doing some coding on this for the last few days. So hopefully once I get the OneX I just have some minor adjustments and testing to do.

I'm targetting the "high level" android.hardware.fmradio Java API. But that should turn into the same as a low level API when the needed shared library is there. So custom ROMs should be no problem pretty soon.

:D
[Spirit FM] lrbpereira:
Will be waiting to try it on :)
[Spirit FM] beint:
I'm also having this problem. It worked like a charm with earlier versions.

I'm on Elite ROM RC1.2 and Semaphore 1.2.0.
[Spirit FM] mikereidis:
If you have a Galaxy S then it's likely for completely different reasons than his HTC.

EDIT: I see your PM and it's this first problem:

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

There's been a big problem lately with kernels that don't have the Samsung FM driver loaded, at least by default.

If Spirit starts and says "FM:BC" then it's not seeing the driver. When OK it says "FM:SL".

I tried Semaphore 1.2.0 last night on AOKP build 37. I saw there was a Semaphore app loaded.

Go into that app if it's there and enable "Radio FM".

If you installed the Semaphore Tar file, you may have to install the ZIP instead.

With a fresh AOKP install, FM was fine, but there were no kernel external loadable drivers.

Then I installed the Semaphore ZIP and the kernel doesn't start with FM enabled, but the app, or a command I embedded in Spirit can load the driver if it's there.

Strange thing is, I couldn't see the driver in the Semaphore ZIP, but it installed somehow and must be hidden somehow. It's easily visible in the 1.0.0 and 1.1.1 Semaphore ZIPs.

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

If it's not the above., try manually setting Audio->Method to "Galaxy S ICS".

You could also enable Debug->Audio Focus Off and restart the app.

If all else fails send me a debug log with Menu->Test->EMail->Logs or Menu->EMail Logs.
[Spirit FM] beint:
Hi Mike

I've tried all of the above, so I've sent you an email with logs. Hope you can figure it out.
[Spirit FM] ultraviolet74:
It seems doesn't work on SAGA Desire S, I'm on cyanogenmod 9

which setting I have to try?

I tried default, auto but I can listen to nothing!!!

RDS works...
[Spirit FM] mikereidis:
Can you tell me if any of these exist ? ;

/dev/msm_snd

/dev/msm_audio_ctl

/dev/msm_audio_dev_ctrl

The last is most common and may work with one of the 4 Audio-Method settings named "qdsp5v2". The "Plus/ICS" variant is most likely.

Send me a debug log with Menu->EMail Logs.
[Spirit FM] mikereidis:
I got lucky, walked in the door and there was the UPS guy with my new International HTC One X. :)

First/only app tried after setup was FM Radio of course. Looks like the same old feature sparse HTC OEM FM app to me. Options are Presets, Add, Mute, Mono, Speaker and Scan & Save.

The only feature I find particularly interesting is "Sound Hound". It identified Tom Cochrane w/ no problem. AND this means that digitization is possible, for record, or Bluetooth or DSP processing perhaps. :)

I'm very surprised that HTC's current flagship and the 2nd most anticipated phone of 2012 has only one media button on the earphone cable. Recent high end devices like the Desire HD have 3 of course.

BIG SURPRISE: It turns out the FM is from TI ! Why oh why did that teardown claim it has Qualcomm BT/WiFi/FM ? I saw TI on some ROMs and just assumed it was a mistake.

It's a relatively new device driver though: /dev/tifm, and I've been wanting to support this. And thankfully the default permissions are good for use without root.

Now I wonder. Is the One S Qualcomm ? Or the One XL ? Can't be the One XL if people have used the One X FM app on the AT&T One XL, but I'm not positive anyone has done that successfully. And the One V seems to be Broadcom.
[Spirit FM] mikereidis:
As you know the May 28 test release I sent you solved the problem on your Galaxy S.

This test release includes the Semaphore FM drivers and loads them if needed.

I don't know why some Semaphore kernels include the driver and some don't, but I guess I need to find out. I don't want to keep adding new driver versions every time a new version of Semaphore comes out.
[Spirit FM] lrbpereira:
Come on Mike give us FM support to ur CM9 HOX builds :)
[Spirit FM] beint:
PM'd you about it..
[Spirit FM] mikereidis:
Galaxy S speaker warning:

I just had a report of possible damage.

This is the first report in 6-7 weeks. Previously reports were about every 6 days so it appeared the problem was solved.

It might be that the changes for a better Galaxy S ICS method are related, or it could be some other subtle change.

Or it could be related to ROM or kernel or hardware revision or unrelated or mis-reported or who knows ?

I'll post more info when I get or learn any.
[Spirit FM] mikereidis:
Thank you very much ! I LOVE schematics... It's always possible that they "lie" but internal engineering documents like this usually have a high degree of accuracy.

Most interesting are the block diagram on page 1, the WM8994 Wolfson codec chip connections on page 13, and the BCM4329 Broadcom FM/Combo chip on page 17.

I didn't see any evidence of a Silicon Labs FM chip like on the Galaxy S, but if this PCB is shared with any other Samsung devices, it's possible there's a place on the PCB for it. But I'm not going to look into that.

There is good news and bad news: :)

Bad news: the Broadcom chip shows no connections for FM analog audio or antenna.

The Good news:

(1) The FM antenna pins aren't grounded, so some strong signals might be received at low levels. Beyond that it might be possible for someone with hardware skills to attach an antenna.

(2) BT PCM is connected to the Wolfson chip, which absolutely makes sense as BT audio would not otherwise work.

So, for Idkidk: The next version will show RSSI signal strength in the logs and we can see how strong your signals are. I'd guess they are relatively weak because we see no sign of RDS data or even RDS errors in the logs.

Unfortunately, beyond checking signal strength, I don't think I'll have any potential solution for digital audio over HCI/SCO or PCM for at least another month. I have other things to attend to with my app.

But if/when I get HCI/SCO or PCM audio working on Broadcom devices, we can re-visit this and see if FM is possible on the Galaxy Tab,

I have intentions of getting a Samsung Galaxy device in the next month or two, to add support for Silicon Labs chips. Possibly a Galaxy S or the newer Galaxy S 2, or a newer version of the Tab. After some work I will have better knowledge of the Samsung devices etc.
[Spirit FM] mikereidis:
I'm afraid not. In that block diagram, the "FM Receiver/Transmitter" block shows a dashed line from right side, going right to an FM specific antenna.

BT and WiFi are usually 2.4 GHz which only requires a short antenna, about 6.25 centimetres for half-wave.

FM around 100 MHz half-wave antenna is about 1.5 metres, which is better suited to using a headset wire as antenna.

At least one positive with the Broadcom chip is, unlike the TI chip, it uses the same pins for transmit as for receive. So if you can receive FM via good antenna connection, you can also transmit. TI transmit antenna pins are likely never connected.
[Spirit FM] mikereidis:
CR5N and now david-olivier have it working on hd2. As they did you might need to make some low level modifications via the developer "adb shell".

Hopefully in future I can automate or app internalize these modifications, and provide better trouble-shooting ability.

What ROM are you running ? Do you get ANY indication the FM is working without audio ? Like bars on signal strength meter, or seek works to strong stations or some RDS data ?
[Spirit FM] alphaori:
2.0.17 works superbly in a HTC Desire with Oxygen 2.1.3.

Thanks so much.