yashsingh1/xdaforums huggingface dataset:
[Spirit FM] tufeijoe:
1. I haven't installed Email app the last day. I have already sent to you the log now.

2. I think my audio device is qdsp5v1, so I have /dev/:

msm_aac msm_evrc msm_pcm_out msm_wma

msm_amrnb msm_mp3 msm_preproc_ctl msm_wmapro

msm_amrnb_in msm_pcm_ctl msm_qcelp

msm_amrwb msm_pcm_dec msm_snd

msm_camera/ msm_pcm_in msm_voicememo

3. By using CyanogenMod, it's true Speaker/headset not switched. Only CyanogenMod started Audio Method can have sound in Headset. msm7x30 Si5500 can have sound in Speaker but not in Headset. And one of other brand (I remember is sony will reboot my phone).

4. I have tried several other channels. Now I can receive more than 2 channels but big background noise.

BTW, I have read 40 pages of this post, and still cannot find my answer.

I don't want sprtd, ssd and those advanced features. I can accept to turn on BT when using FM. I want to know if just by sending hci command, can I enable FM for BCM4329. Some commands I know until now in android_hardware_fm_bcm4325.cpp still cannot enable FM.
[Spirit FM] tufeijoe:
A proposal:

Mike, you are working on this for several months, and there are still many many devices with many different kinds of hardware not supported. Why cannot use the concept of Android?

For those not supported device, how's about supply a way to build HAL and by using your software to handle the common interface inside the HAL. You can release big load of yourself without loose gain. [You can keep your jni part and interface without publish api and etc.]
[Spirit FM] E:V:A:
I don't think they can sue you for sharing any knowledge you have, as long as it was not obtained in an illegal way. So I wouldn't worry about that.

I have a SGS1 as well, but what is "the Silicon Labs chip"?? Is that a separate FM radio chip, or something else? (Why would they use a separate chip, if it's already included in the 4329?)

I think someone has already ported some AOS to the N900!

But more importantly. I think the reason you see multiple RX/TX pins on the 4329 chip, is because (like in any other transceiver ship), it is used for connecting an external antenna amplifier as options. The FM receiver is using the headphone as the antenna, and the chip should do the switching internally when using transmit/receive functions. Same antenna! Don't worry about the other pins...

I'd love to see the entire path and schematic for the SGS1 from the earphone to the chip.

Also, if you happen to know where I can find a pin-out specification sheet of the BCM4329? (Something similar to this: http://pudeev.livejournal.com/37410.html would be great! This is for the BCM6348.)
[Spirit FM] xTremePower:
Hello all,

I Have a Motorola Razr,

I tryed many debug options and audio options

your apk enable BT on my phone, and headset have some sound, but I can't hear something, and not seem to seek FM...

someone have a solution please ?
[Spirit FM] mikereidis:
There is no stock FM app, and nobody has gotten a Motorola app from another phone working, so I think it is very unlikely that anyone can ever get FM to work on the Razr.
[Spirit FM] erosco:
While I'm first to say this looks like a cool app.. it's expensive for me.. does anyone have experience with RDS in Melb, Australia - do most of the mainstream stations use it? I'd hate to pay the $7.50 to find that it's not broadcast much in Melbourne.

I know some of the DAB+ stations broadcast it but I don't know about analog FM.

Thanks

erosco
[Spirit FM] sharmy3:
Hows the progress with this? I just hope I'm not forgotten. :)

Thanks,

---Sharmy
[Spirit FM] mikereidis:
Yes you can, but I don't think this will solve the issue you have with "big noise". My theory is that is a device specific antenna switch problem, and I have no information on that.

I think all the commands and code you need are in android_hardware_fm_bcm4325.cpp. (Except for the antenna switch issue.)

If you want hcitool commands, here they are:

# Turn on FM

hcitool cmd 3f 15 0 0 1

# Analog audio on

hcitool cmd 3f 15 5 0 5c

# Set frequency to 88.5 MHz

hcitool cmd 3f 15 a 0 b4

hcitool cmd 3f 15 b 0 5f

hcitool cmd 3f 15 9 0 1

Assuming an analog FM audio path is open, perhaps via /dev/msm_snd, I think the above will get the FM playing, at 100% volume at least.
[Spirit FM] tufeijoe:
I'm sure I can understand your suffer. We got 6~7 billion people on earth while we might have only half million people good at programming. That's why we always see people only cares about result and seldom people wants to contribute.

Anyway, I keep my FM as an pending issue and will try to reverse engineer stock FM java part.
[Spirit FM] mikereidis:
I've had 9 of some 300+ sales in Australia, so I think RDS is there. Not every station has it here in Canada's capital, but most do. Exceptions include the University stations.

I think most commercial FM stations in most countries have RDS now, with exceptions for Japan, China, and probably the poorer countries.

---

Feel free to try it for a week. If anyone is unhappy at pretty much any time, I click a button and cancel the order.

If you wait until Jan 1, the price will likely be back to the Christmas level (about $5) for a day, but even at that, anyone unhappy about a price change can get a cancel and re-order (I'd do a partial refund but couldn't get that to work the other day.)
[Spirit FM] mikereidis:
Absolutely not.

(1) I'm trying to spend a few hours with my family this holiday season. :)

(2) Reverse engineering and re-implementing doesn't happen overnight. If it did, the Market and open source archives would be full of real FM apps.

That said, I might have something to test in the next 12-36 hours.

I've been trying to avoid new development over the holidays, but this part is slightly fun and the (re-) design work I'm trying to do will ideally take into account the details of all the APIs I'm trying to support. So I need a crash course in those details.
[Spirit FM] E:V:A:
In the iFixit's teardown of the T-mobile SGS-1, they have this picture. http://guide-images.ifixit.net/igi/qQmVNHFgsuFRgSVo

It clearly shows two (?) antenna type connectors in the bottom right of the PCB. One is not used. I'm interested to know how the ear-plugs are connected to the (FM) antenna... In fact, I am also curious how the earplugs are wired, in order to use them as an antenna. Perhaps you can (when you have time) enlighten me about the various pins used?
[Spirit FM] mikereidis:
Anybody can sue anybody for the flimsiest pretexts. That doesn't mean they'll win though, particularly if the defendant has a team of lawyers. I, however, have and can afford precisely zero lawyers, so a nasty letter might be sufficient for me to "cease and desist".

If some party, such as the FSF, decided to back me, sure I might fight, but I think I'd be a fool to let myself get drawn in with zero resources.

---

Yes, the Galaxy S has a dedicated si4709 Silicon Labs FM chip. I can only guess why their designers decided to use it, instead of the FM part of the 4329. Perhaps the audio quality was better; the Galaxy S is known for having one of the best audio systems in a phone; even better than the S2 it seems.

---

NitDroid ? The ToDo list seems to indicate neither FM receive, nor transmit are working: http://nitdroid.com/index.php?title=Devs:ToDO

I'll try to answer the other issues later.
[Spirit FM] E:V:A:
And I always thought that you Canadians had a more civilized legal system than the US... :( Too bad, but you can always claim you got you info from some friends in (any?) ex-soviet state or Russia for that matter. Then they can set the court date for 2043! :D
[Spirit FM] tufeijoe:
Hi Mike,

Good news, finally I have make my FM works without your app and without big background noise.

Thanks for some of your information.

Of course, I still need to modify many codes to make it finally work well in my phone/ROM.
[Spirit FM] mikereidis:
From email:

Wow, I'm getting LOTS of email. I guess people are off work for the Holidays and I'm "in retail". LOL. :)

I love the "all in one device" nature of Smartphones. Absolutely, if you want FM, insist on it before you buy.

Best bet is a device that is advertised with FM, and actually has a stock FM app. Sometimes the ads lie ! Check it in the store before paying, IMO.

It seems like more and more US market phones are coming out without FM. That includes the Galaxy Nexus and the HTC Rezound. I suspect the carriers hope to increase their data plan revenues.

The Motorola Droid Bionic is one of the rare phones that has no stock FM app, but FM works, either with my app or a Motorola app from a different phone. "XMGuy" has my app running on a Bionic.

For "a different app", usually the best bet is the stock FM app, assuming your phone has one. My app is more useful on devices which don't have a stock app, or where my app provides features the stock one doesn't have.

I personally feel that the Samsung phones are a better deal than the "Google/Nexus" devices; The "Samsung Galaxy Nexus" is the latter, despite "Samsung" in it's name. I have a Samsung Galaxy S, almost identical to a "Google Nexus S", except the latter has no FM, but does have some other features I don't care about.

I think the "Samsung Galaxy S II" (S2) is the similar equivalent of the "Galaxy Nexus". The problem here is that you need an international version for FM.

Both AT&T and T-Mobile variants have no FM. And there are other variants and an upcoming S3 line as well.

I understand there may be other reasons you'd prefer a Google phone, such as a better guarantee of upgrades and less bloatware. But Google has never supported FM and only the 2nd of the 4 Google phones was capable, and that was by "accident" and with no official support.
[Spirit FM] mikereidis:
Great !

If you found some magic code that was needed for good reception, PLEASE, share it. Thanks !
[Spirit FM] mikereidis:
You haven't heard we're the 51st state now ? :) I think civil courts are pretty much the same everywhere. Deeper pockets usually win.

And I'm not sure that I'm immune to being dragged into a US civil court, especially since I "do business" there. Yes, I could refuse to go, but I might then, never be able to visit or even "do business". And... certain US laws, more and more, seem to be border-less anyway...

Anyone can say anything. The dog ate my homework.

I have this unique tactic I use whenever feasible: Tell the truth. Much easier to not get tripped up and caught that way.

And if you can't or shouldn't tell the truth, it's better just to keep quiet and plead the 5th, or one's national equivalent.

I had a whole paragraph here, but decided to take my legal counsels' advice (me) and delete it. Point is, I don't "worry" so much. I've just decided that I should be careful about what I say in public.
[Spirit FM] tufeijoe:
Until now, I only knows what can make it happen and I don't know why it happen.

So I can use hcitool using su root to make FM work. (I don't know why noise disappear, perhaps CM FM.apk did. Anyway, it's issue after completely makes FM work later).

But I suffer another problem. If using system(hci_cmd), I cannot get the register value I want due to permission problem. Any proposal?
[Spirit FM] xmguy:
That I do. I'm running a total stock Droid Bionic. Latest FW. Yes I'm rooted. The file system has the FM Radio Service apk but as Mike said. NO native FM app. Beats me. Id never use any other app but Spirit. Not a ad. Just sayin. Its that good! Lots of phones have native FM support but for some reason or another may not support Spirit. So before you buy ask Mike or see the first page to make sure it works.

Also can't stress it enough. Use a pair of headphones as an antenna. You get better signal. I'll make a small video showing what i made. Took me all of 10 mins.
[Spirit FM] ombranera:
Spirit FM works with new Nexus?
[Spirit FM] Quinny899:
No, because it has no known connections. Search the thread before posting
[Spirit FM] mikereidis:
:D

A long time ago a question was "Does Windows support this hardware ?".

Later the question became "Does the hardware support Windows ?".

If I can get TI and Samsung proprietary support, along with the current experimental Broadcom support, and perhaps a few new audio methods, I think that might cover 95+% of Android devices on which FM is possible, stock or not. Add ZTE Blade and cousins and fix up Tavarua/V4L/Ideos and it might be closer to 99+%.
[Spirit FM] mikereidis:
Trying to read a FM register ? There's code in the bcm_4325 file to read the frequency register after a seek completes.

My code used to send the hcitool output to a temporary file and parse it. Now it sends standard out to a pipe that is read with no temp file. But hardly anyone is using hcitool mode with my app anymore; mostly HCI sockets mode through sprtd or UART mode direct from the app.
[Spirit FM] tufeijoe:
FM works, but no lucky to have good connections which means noise:)

No datasheet, perhaps something can improve.
[Spirit FM] deepakbshetty:
App power up and audio issues on galaxy s2 international version running on ICS Stock 4.0.3 I9100XXKP8 .Sent u the logs.
[Spirit FM] mikereidis:
:) Thanks, and Happy New Year to you and all...

First time I've heard "ICS Stock", but that's an unofficial leaked build. Is there a Samsung FM app on the ROM, and does it do FM record, or Bluetooth headset output ?

It would be useful if you could send a log immediately after a power-on failure. This could easily be a bug on Samsung's side, with a pre-release ROM. I don't see and haven't heard of any such errors on Galaxy S aftermarket ICS ROMs.

Audio has never functioned on stock ROMs for the Galaxy S2 line, including the new 5" mini-tablet, the Galaxy Note. I hope to enable the audio real soon; I was looking at the Samsung proprietary FM API the other day.

It may be a "mini-tablet" at 5", but the Galaxy Note seems to be the first Android tablet with official FM support. Apparently it supports FM recording also, which is rare. The more or less discontinued Dell Streak 5" mini-tablet has working FM, but was never officially supported with a stock FM app.
[Spirit FM] Quinny899:
I assume he made it, using the most blatantly obvious name 'opensource-fm-radio'

Even I know how to decompile to Java and to code, and I'm only 14
[Spirit FM] Axel85:
Hi guys,I remember someone mentioning sharp phones with fm transmitter...I have the app to enable fm transmitter but it s checking the device at startup.If it s usefull i can upload the app
[Spirit FM] mikereidis:
Just for you: 2012, Jan 2: http://www.mediafire.com/file/xoj5f0rqa7xu753/Spirit_FM_Radio_v120102.apk

This is the free version, but has partial RDS support for the new TI proprietary mode. That is the only significant change, and most other things/devices/APIs haven't been tested.

It will only work on HTC devices with Texas Instruments FM chips and the HTC version of the TI proprietary Bluetooth/FM stack.

This includes the HTC Legend (Stock or Blayo ROM), HTC Tattoo, and hopefully the new one(s) (Your HTC Amaze ?).

- You must enable Settings->Debug->TI Proprietary.

- Then exit the app (and/or power down).

- Then ensure Bluetooth is turned on.

- Then restart the app.

This is all very experimental and "hot off the presses", so who knows what will happen.

Please send me logs with Menu->Help->EM Logs.

Thanks !
[Spirit FM] mikereidis:
This is the app from July: https://market.android.com/details?...=W251bGwsMSwxLDEsImZ1bmEuZm10cmFuc21pdHRlciJd

I examined it, and it's just a widget that calls some high level commands specific to those Japan Market IS0x models. Basically useless, unless you have those specific phones perhaps,

There's a new one here and my guess is it's pretty much the same thing: https://market.android.com/details?id=jp.cazuo.shfmtsetting&feature=search_result

Upload and post a URL if you wish but I'm too busy uncovering the hundreds of Rx secrets I hope to learn to be too concerned about Tx at this time.
[Spirit FM] mikereidis:
:)

His credibility is suspect, but who knows, maybe he is young, and we can cut him some slack for that. But fraud is fraud, even if it's a youngster mis-labelling at the Lemonade Stand...

And I can't help but think anyway, if Motorola isn't concerned about the use and resale of their app, and like all the manufacturers it seems, doesn't crack down on redistribution of their apps, then it seems they almost all give silent assent.

Google is one of the few to defend their copyrights and not allow redistribution of their apps directly in ROMs. But even here on XDA, where "pirate" type postings are banned, we link to just about all of the manufacturer apps, including FM radio apps, and they are also included in stock based ROMs. The manufacturers likely don't care much because it's just software that ends up "free" on their specific hardware.

If somebody takes a free, open source app and builds it and sells it, that's generally OK. People will pay for the convenience. Many won't even know it may be downloadable elsewhere. And that's OK. Even if it's $20 or something silly. That's free markets etc...

The person who bought it and emailed me seems to be OK with his $2 purchase. To him it's just a few bucks. And he got convenience. How much time can we spend searching forums to save $2 ?

So if Motorola really doesn't care, then perhaps the only sin is misrepresentation. And that's a sin that just about every business violates, LOL.

Whatever.
[Spirit FM] Quinny899:
The worst thing is that he also has a donate app (why?), apparently so he can make it work on other phones
[Spirit FM] luca_v3r:
Hello Mike,

thanks so much for your useful work.

I want to tell you that with the rom "[1.Jan.2012] (Android 4.0.3) (ICS AOSP ROM for HD2) NexusHD2-IceCreamSandwich Beta9" the FM radio works perfectly in my HD2.

AUDIO settings QSD8250.

The only thing is that the bluetooth will not turn on automatically, but perhaps it depends from rom.

Thank you!
[Spirit FM] greddyrx7:
In u8800 (ideos X5) is plays for a couple of seconds and then it reboots. Any solution?
[Spirit FM] sharmy3:
Thank you Mike for responding and Happy New Year to you.

I downloaded the app and installed it over my previous version (Dec. 23rd) and followed your instructions above. I got a FC. Then I went into Manage Apps and cleared data. Rebooted the phone and restart the app and set TI Proprietary on (checked). Closed the app. Turned on BT then restart the app. Got a FC again.

Ok, one more time.. I went into Manage Apps, Spirit FM, cleared the data then restarted the app. Got in -> setup -> debug -> checked TI Proprietary. Closed the app. I REBOOTED the phone (fastboot unchecked). Same result - FC'd.

I wish I could send you the logs but got FC's instead. :(

Thanks,

---Sharmy
[Spirit FM] mikereidis:
LOL ! I didn't notice that. Seems to be new as of December 11 and it doesn't look like there's been a single purchase, even with one of his fake "user" accounts.

He reads this thread and responds from time to time, from one account or another, but at least everything has been pretty civil so far.

He plagiarises some of my text, more or less, such as "If it does not work on your device, please do not rate it badly."

He's uploaded only one version, on August 21, but says "Only works with motorola. Other brands are in beta.". LOL.

Oh, gee, despite the half plagiarised "Unlike others, this is not a streaming app and does NOT need root" I see he even recommends my app with "You can checkout the "Spirit FM Radio" if you have other brands".

Then he responds to my main accusation with "This app has the name com.motorola because this is to disguise this program as a system app."

The whole thing seems to be one big joke.

But I've spent too much time on this joke; time to just let if go until it becomes more entertaining.... :)
[Spirit FM] mikereidis:
Great ! My app uses the standard Android APIs to start Bluetooth, if it can't access the chip without Bluetooth, and if you're rooted and give my app SU, it should be able to operate the Broadcom chip with Bluetooth off anyway.

Can you send me a log after an unsuccessful start with Menu->Help->EM Logs ?
[Spirit FM] mikereidis:
Not at this time.

Maybe in 1 week or so I can spend some time looking at the known Ideos issues.
[Spirit FM] mikereidis:
The Dec 23 paid app you have can be used to send a log.

- Start the free/test app and let it FC.

- Start the working paid app and do Menu->Email Logs as soon as it lets you.

Or even better, since the logs won't get over-run with good stuff:

- Start the working paid app and set Debug->FM Chip to emulator.

- Restart the paid app and ensure it's only pretending to work in emulator mode.

- Leave the paid app running and Start the free/test app and let it FC.

- Immediately switch back to the paid app and do Menu->Email Logs.

- When done be sure to switch the paid app back to Debug->FM Chip->Automatic so it works for you again.

I half expected an FC. I had plenty on my phone before getting it right. All it takes is one missing or changed function in the HTC APIs.
[Spirit FM] sharmy3:
It is weird! I didn't remove your test app and it didn't FC this time and the TI Proprietary setting is checked and intact! So I took the opportunity to send off the logs to you! I hope it reveals some secrets for you!

(Yes, I made sure it says Jan02 version).

Thanks,

---Sharmy
[Spirit FM] macsboost:
Hi, I've looked everywhere for an answer for this and could not find an answer. Does this app work on an HTC flyer/ HTC evo view tablet?

Thanks!
[Spirit FM] mikereidis:
In general, for any device:

- If there is no stock FM app, then it's usually not possible. But there are a few exceptions, perhaps about 3-5 % or so ?

- If it's a tablet, it's even more unlikely. So far only (1) Dell Streak 5", (2) Galaxy Note 5" and (3) Some cheap Chinese tablets.

So my guess is no.

Feel free to try it, report the result and send me a log with Menu->Help->EM Logs. Please put model name into email text.
[Spirit FM] macsboost:
Hi Mike, thanks for the fast reply. That is a bummer, I've been looking for a good 7" tablet with working fm-rds tuner. I dont have an evo view, but I was hoping having the cell radio that it may be a good candidate.
[Spirit FM] mikereidis:
So far no such thing it seems. Galaxy Note is closest at 5", so keep an eye on Samsung IMO.

Hopefully some announcement soon though; tablets are getting "hotter". Consumer Electronics Show is next week and Mobile World Congress is February.
[Spirit FM] tufeijoe:
Hi Mike,

Another wield issue:

When I power off FM and I also checked FM register being set off (BCM4329), but the battery power loss quickly. I know you faced this problem before by looking at previous post. Any idea?
[Spirit FM] mikereidis:
I've only had 1 or 2 complaints so it's a low priority issue for me.

If the broadcom power register is 0, the only other things I'd check is:

- The FM audio path is completely disabled.

- Bluetooth is off, as well as it's rfkill for the BT UART.

- Nothing is polling for volume control.
[Spirit FM] mikereidis:
I'm not sure why. Anyway, here is Jan 3 version: http://www.mediafire.com/file/ljehebik9xj56cj/Spirit_FM_Radio_v120103.apk

I examined the HTC Amaze FM app and see I needed to add some callbacks. This version may also work on Sony Ericsson or other TI based devices with the TI proprietary Bluetooth/FM stack, except perhaps Motorola.

Instructions are unchanged:

- Ensure Bluetooth is turned on.

- Enable Settings->Debug->TI Proprietary (or leave enabled from before.)

- Start or restart the app.

You won't get the debug line starting with "FM:" on screen if it succeeds. RDS is disabled now to reduce complications.
[Desire HD Q&A, Help & Troubleshooting] Nubzori:
I succesfully installed the Rcmix hd v6.0.0.1 but now I cant get into recovery. I get a white HTC screen when I try enter it. Anything else works fine :S
[Desire HD Q&A, Help & Troubleshooting] Andy:
Download ROM Manager from the market, and reflash it from there.
[Desire HD Q&A, Help & Troubleshooting] Nubzori:
i tried it but no, i reverted it back to .5 and it works now but idk
[Desire HD Q&A, Help & Troubleshooting] alienmind:
Press vol-down and power. Keep them pressed until eng hboot prompts in. Select "boot recovery"