yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
So,... is it working now ?

Push Menu button, then select Help and scroll to the bottom (flick up). EM Logs should be the last entry, unless you have an older version.

"The phone rebooted as soon as Market finished installing the app" ??

Sounds like a Market app problem, assuming you didn't start my app at that point. Although.... if you are running my app when you update, or even if you ran it since last rebooting the phone, my app gets shut down for the update, and that could theoretically cause a problem.

But if it's all OK now, I won't be concerned unless it happens again. But if it's just your device, then it's just a problem on your device.

Software can do very weird things sometimes. It's like driving at 300 KPH: Could be fine until you hit that tiny bump or a tire develops a tiny defect. :)
[Spirit FM] mikereidis:
Summary of emails about HTC Nexus One with rooted stock derived ROM and "No audio" problem:

[ROM] [GRK39F] N1 2.3.6 OTA ROM v2 (deodex, root, zipalign., busybox, A2SD, TBAlert)

http://xdaforums.com/showthread.php?t=1061648

(Please post publicly so we can all benefit and the exchange is search-able by anyone.)

-----

Audio Methods: I tried all the settings but no one worked.

The strange thing is that using the qsd8250 setting I hear in my headphones something like a little "click" and a slight noise (but not the radio) .

I just flashed a new ROM called OxygeN1Mod.

I can't adjust the volume

-----

Nobody has ever gotten the FM audio path enabled on a stock kernel, but it MAY be possible.

Do you think that if i use one of the kernels listed here i could use Spirit radio?

http://xdaforums.com/showthread.php?t=744605

This one is the most popular, and seems to be compatible with CM, and some posts indicate it should support FM: http://xdaforums.com/showthread.php?t=693375

-----

I've installed the Oxygen Kernel that seems to work quite well with this rom but while with oxygeN1mod Spirit radio works perfectly with Cyanogenmod method, it seems that with Stock rom it works only with BT activated and qsd8250 method but sometimes i start the app and the audio don't work...

-----

Does pressing Mute/Unmute or Speaker/Headset a few times fix audio ?

For the BT off issue, can you start the app with BT off and then immediately send the log ?

-----

I've tryed switchin BT off and pressing mute/unmute and the radio started to work but with issues regulating the volume.

Actually the app is making me crazy because i've tryed again today and the volume regulation worked.

I attached also a screenshot of the app because, as you can see, there's the "Aud?" question shown and i don't understand why (the audio in fact worked in that moment).

I've just switched off and back on the app:

The audio worked immediately (without pressing mute/unmute) but the volume regulation did not work and the volume is terribly high.

Do you need a log also for this situation?
[Spirit FM] mikereidis:
Color ! And more... :)

I needed a "break" from the very difficult and time consuming "Ongoing technical investigations" so I spent a few days trying to improve the UI. Sorry, I'll get back to those...

I may release this in the next 12 hours.

I added selectable "Light Theme" support, that inverts black and white and may be useful in strong sunlight. Boring monochrome only though, it seems.

Background, and text foreground colors are now selectable for each on screen element. Also text size, and likely other attributes.

I may make each on screen element optional. and possibly it's size (or weight).

Also a radiused button style...

Button graphics will likely remain gray though, at least for now, and the frequency/volume graphic will retain current colors.

Now the monochrome scheme looks VERY dull. :D

I'm not good at color. style, etc. so I'm hoping to see a few people posting their best "themes", which can be exported or imported by a file.

This UI configure-ability feature will be free for now, but I will likely limit it to paid/unlocked soon. How/when are undecided.
[Spirit FM] mikereidis:
To confirm: Are you now running the ROM: "OxygeN1Mod" or "N1 2.3.6 OTA ROM v2" ? And with an Oxygen kernel ?

So you now have the app working with BT off, and audio seems to work without hitting buttons at start....

For the high volume, set Menu -> Settings -> Audio -> Volume Scale to a number less than the default 100. Values between 5 and 20 might be OK.

If using the hardware volume buttons adjusts the ringer volume, there are a few possible solutions.

The most likely to work is Settings -> Debug -> Silent Loop. Restart the app after checking/enabling. This will use the CPU and battery faster though; I'm looking to improve on this. What this does is play a silent MP3 file, so the system knows the app is playing audio and allows setting "Media Volume".

Debug -> Use Ringer VCS is an "awful hack" that may work if the above doesn't. The downside is that FM and Ringer volume are forced to the same value.

For on screen volume setting, you can select Menu -> Volume Graphic. This replaces the frequency graphic/control with one for volume (just under the 1st line with RSSI and signal strength bars).
[Spirit FM] Insomaniac10:
THAT WAS ME, my names jim!!! hahahaha i swear on everything, no bull****.....thats hilarrrrrious that you picked that out
[Spirit FM] filippogiad:
Sincerely these solutions don't convince me very much.

I found that the app for some reasons has a really strange behaviour: Sometimes it works, sometimes not, sometimes i can regulate the volume with HW buttons, sometimes i can't. I've tried all the possible solutions you gave but no one works really well.

In this moment it says that it can't find a compatible FM chip (why?? I rebooted the phone and now it' ok).

However the most frustrating problem is this one:

1- I boot my Nexus One

2- I open Spirit FM (it asks root privileges, obviously): the audio works only after hitting mute/unmute but after that the HW volume keys and everything work perfectly.

3- I switch Spirit FM off (Spirit FM asks root privileges again).

4- I switch Spirit FM back on: the audio is extremely high and the volume keys don't work.

5- Bored by the situation i swear at Spirit FM ;) and renounce to listen to the radio :(

Do i have to resign myself to flash another ROM?
[Spirit FM] palmheads:
Looks like some work on FM support has been commited to the optimus 2x nightlies

http://xdaforums.com/showpost.php?p=19116215&postcount=10809

Am not sure what it all means for Spirit FM & the Optimus 2x, but folks seem quite happy about it for CM!
[Spirit FM] patejlice:
Can be set to automatically not start bluetooth? I only use wired headphones and settings I found nothing.
[Spirit FM] parthabhatta:
Spirit FM working with latest version of CM7-Nightly 195.

Thanks both to CM7 team and Mikereidis.
[Spirit FM] rosenhauer:
No go on Droid X Stock/rooted

Was actually looking for an App for my wises D2G but thought I would check it out on my DX.

App starts and then produces static (either from headset or speaker) tried Motorola and Motorola 2 settings. Every once and a while you hear something like classical music, then a word then some pop music. Doesn't matter what frequency you have it tuned to always sounds the same. Like it's scanning through the stations really fast.

I then went to confirm that the normal FM app was working and it hangs on "launching FM radio" until you reboot the phone so something is left running when you exit the Spirit app.

This is my Status

Fm:TI Sh:1 Su:1 Bt:1 Ht:0 H2:0 Mo:TIH

SD Hv:4 Ma:13 TI
[Spirit FM] mikereidis:
They figured it out then ! Great ! :)

I'll have more comments to make on these posts when I get back from the vet.
[Spirit FM] mikereidis:
If possible, the app will attempt to start with the current Bluetooth power state.

TI FM chips, as found on several Motorola phones, require Bluetooth on. I should be able to support Bluetooth off operation on rooted TI based devices at some point, but it's a bunch of work.
[Spirit FM] mikereidis:
And you read to the end... :D

I think the stupidest comments come from the same sorts of people who act stupid in traffic because they feel they're better/more important than the rest of us.

I truly believe "It takes all kinds to make a world." Just the way it is and we might as well accept it.
[Spirit FM] mikereidis:
That's up to you, but I'll do what I can to try and help you on your chosen ROM. But sometimes, some ROMs are just unsupportable... :(

Most SuperUser applications allow you to enable "Remember" for an SU request. After that, you are never bothered again, except by a quick "Toast" flash of a message on the screen.

Does your SU request dialog have a "Remember" checkbox you can set ?

Can I presume you set the Volume Scale option ?

If you are running the app with Bluetooth off, try running with Bluetooth on, or vice versa.

If you've set all of the volume options I've posted, can you restart the phone (optional), then the app, then use the volume controls, go to Home screen, try to change volume while at Home screen, then return to the app and send me the logs with Menu -> Help -> EM Logs.

Thanks...
[Spirit FM] mikereidis:
What ROM are you running ?

Yes it sounds like it's stuck scanning. (?) Can you send me the logs with Menu -> Help -> EM Logs ?
[Spirit FM] filippogiad:
I just passed to the last OxygeN1mod so i know the kernel works perfectly here.

However the behaviour of the app looks the same but it's ok, let's try to solve this ;)

of course i've checked the "remember" checkbox but i wrote when the app asked me the superuser permissions jus to be as precise as possible and describe the behaviour perfectly.

Well, I did the following tests.

With BT On (No debug settings selected, Volume scale to 100):

1- I open Spirit FM: the audio works only after hitting mute/unmute but after that the HW volume keys and everything work perfectly.

2- I go to Homescreen: HW keys don't regulate Media volume but Ring Volume. The Radio audio still works.

3- Back to the app: HW keys work perfectly.

4- I Closed the app.

5- Restarting the app: THE VOLUME KEYS WORK PERFECTLY!!!

With BT Off (No debug settings selected, Volume scale to 20):

1- I open Spirit FM: the audio works only after hitting mute/unmute but after that the HW volume keys and everything work perfectly.

2- I go to Homescreen: HW keys don't regulate Media volume but Ring Volume. The Radio audio stopped as soon as i hit the HW key.

3- Back to the app: to reactivate audio i have to hi mute/unmute 4 times. The HW keys work.

4- I Closed the app.

5- Restarting the app: The volume is HIGH (as at the max level with 100 scale)

6- Back to home: HW keys regulate ringing volume but audio don't stop nor reduce

7- I Closed the app. I activate BT and restarted the app but the volume is still high and not switchable. (it is like if closing the app doesn't really kill the process)

(sorry for my terrible english :P)

Now, before "wasting" an E-mail, tell me exactly what do you want that i do before sending you the log ;)
[Spirit FM] Dany XP:
Does it work on Xperia Play?
[Spirit FM] rosenhauer:
Sorry forgot to put that in there. Stock Gingerbread 2.3.3 System version 4.5.605.MB810.Verizon.en.US (Latest OTA I believe)

I sent the log a few min ago.
[Spirit FM] kura808:
I ran across this thread. Thought I'd try your app out. It works fantastic. The FM radio on the rom I'm running is dead and TuneIn Radio doesn't have all local FM stations. I'm using this as my solution.

Major props to you dev. Thanks.

Just an observation. I don't know if I overlooked it but is there an option to put an icon in the notification bar that shortcuts to the app itself? I find it's a little cumbersome to find the app again on my screen to turn it off.
[Spirit FM] mikereidis:
Great ! :)

Notification bar support is in the unlocked app.

Simple solution for more features and to support further development: https://market.android.com/details?id=com.mikersmicros.fm_unlock

:D
[Spirit FM] mikereidis:
OK, thanks, I'll take some time to try to decipher all the symptoms.
[Spirit FM] mikereidis:
Probably not, but feel free to try my app and send me a log with Menu -> Help -> EM Logs. Please write "Play" in the email text if you do.

Devices that are NOT advertised to have FM very rarely have the hardware & connections needed.
[Spirit FM] mikereidis:
Thanks. I see no clue in the logs. Your power up FM chip registers are even the same as mine.

I suspect you are having a problem that is common on Motorola phones. Some Droid X's have this problem and some don't.

I think there may be a software controllable antenna switch. I'm currently trying to find it. Hopefully soon....
[Spirit FM] 4silvertooth:
Ok thanx I was just saying it without testing. Sorry.
[Spirit FM] mikereidis:
Wow, I think I just had a breakthrough about how to make this work on phones with bad BT stacks. It's so simple I feel awful I didn't discover this earlier, and it was right in front of me.

It appears that raw HCI can be written directly to the HCI UART, just like hciattach or the other equivalents. I'm not sure yet, but I might not even need root.

This would be easiest on devices that don't need bluetooth. For those that do, a shim/adapter might be able to do the trick.

More to come... :)
[Spirit FM] rollon76:
How about normal implementation of a RDS system for Europe? Like TA,PI,PS and so on.Now it look like WN....
[Spirit FM] mikereidis:
Sorry, I don't understand. What are TA and WN ?

If you select a Regional Band outside of North America, RDS should be working. If not, this is a bug I'm not aware of.

Program ID, Program Service, Program Type and RadioText are all working for RBDS here in North America at least.

Your signal needs to be strong enough and clear enough for this to work of course. If you are getting true stereo, I'd think RDS/RBDS should work if transmitted.
[Spirit FM] rollon76:
RDS is working,but what does mean signs at the left corner under RSSI?
[Spirit FM] CR5N:
Mike you're the man!

Did the steps above, opened your FM app and now got FM radio on my Nexus HD2 WITH AUDIO! :D:D:D

Edit: If a system sound occurs then I have to toggle the ssd

As a side note RDS for radio text, station name and also type flashes up. (UK), also get PI number.

Setting to US, I get a different program type info flash up.

Reception is a lot better with screen off but then I can't see what's working :/

Will test more later.
[Spirit FM] cos68:
I can confirm that the RDS part is working in Europe or more specific in Denmark. I receive both Program ID, Program Service, Program Type and RadioText for stations that transmit it, but I have found that it is very hard to get a strong enough signal to receive this. The radio receiver in mobile phones seems to have rather bad reception.
[Spirit FM] yokonunz:
This app is rockin!

But just some suggestions:

1)On G2 Cyanogenmod 7 when you are listening FM and you receive a call it broke all the mediaserver..

2)need a nee GUI :) and move the speaker button because you can press it also when you are in a library :D

3)when you are listening to Fm and you open spirit from menu the newly open windows can't do nothing

you need to open it only from notifications
[Spirit FM] Victorino86:
Using Italy band and I get all the infos: RDS, PTy, the 4 letter code below the bars (KZBV, KZNK and WADL) and the info under the frequency.

Getting everything even with N.America band.

Which menu? the app drawer? Because on my DesireZ if i enter the app from the drawer i can use it with no problems.
[Spirit FM] jopa1001:
Same here in switzerland... but program type changes. e.g. Culture to Rock
[Spirit FM] mikereidis:
Good.

Those are American call signs Wxxx or Kxxx. I'll disable that feature when Regional Band is not North America, US or Mexico.
[Spirit FM] mikereidis:
Woohoo ! :)

Yes, the issue with system sounds is exactly as expected. The best solution is one inside the ROM, like on CM. But I hope we can find good solutions around that. Basically I think the app would have to listen or poll for changes to the audio device and force it back to FM when needed.

Yes, the main difference between RDS and RBDS is the mapping of program types. AFAICT then, it hardly even matters which standard the chip is set to. The mapping takes place in my app.
[Spirit FM] mikereidis:
OK, thanks for your comments, and those from everyone else too.

EDIT:

Did you install the latest v2.09 from the Market ? It almost sounds like you are running the original v2.0.2 from the first post in this thread. If so, uninstall that version, then re-install from Market.

1) I have code that should disable the FM audio when a call or ringing (when ring volume > 0) is in progress. After, the FM audio should return. It works on both my phones and I haven't heard from anyone else that it doesn't. Can you explain better what you mean by "broke all the mediaserver." ? Does it happen when the call or ringing starts, or when the call ends ?

2) Yes, I'm afraid that GUI design isn't what I am best at. I'll do my best to improve it. At least one person is supposed to be working at improving it by editing the XML files.

3) "newly open windows can't do nothing" means that you long press Home button and can't see the app there ? This makes me think you are running the original v2.0.2.
[Spirit FM] mikereidis:
It would be great if you, or anyone for which this works, could experiment a bit.

After a cold boot, and with my app running, does audio work when "4 = FM Headset" or "5 = FM Speaker" are used without any other commands ?

If it doesn't work, does "1 = Start FM" now start the audio ? Does "3 = Set mid volume" seem to be needed, or can volume be controlled without it ?

I would guess that "6 = Headset mic input" isn't needed but if you could confirm that...

Can you switch back and forth between headset and speaker with 4 and 5 ?

I'll also assume that "2 = Stop FM" works as expected to stop the audio, but I hope you can confirm.

Thanks !
[Spirit FM] Victorino86:
Oh... yeah, forgot to try that, mine changing too between italy band and N. America. Like Culture (italy) and Adult Hits (N.A.)

p.s. Adult hits? WTF?!:eek:
[Spirit FM] CR5N:
Have sent a PM - hope it helps.
[Spirit FM] mikereidis:
LG Optimus One / P500h (Telus Canada)

I bought one today and installed mik_os CyanogenMod 7.0.2 port ((beta6.4.2) http://xdaforums.com/showthread.php?t=946354

As reported my app v2.0.9 runs fine, as does the CM FM app, at least at first glance.

If it holds up this is a wonderful inexpensive Android phone: $200. Some 3 months ago I concluded it's the best of the cheaper Android phones, at least among those available to me here in Canada. I'm not sure if there are better options now, but the ROM support is good.

I tried the bigger brother Optimus Chic several months ago and it was nicer but no real ROM options at that time.

I no longer have the HTC Desire HD so this phone will be my Broadcom testbed.
[Spirit FM] ilarrain:
Hi mikereidis. Thank you for your work, I have the same phone and works great.

What is the license behind this app? Are you releasing the sources?
[Spirit FM] mikereidis:
Can I get feedback on how well seeking is working on Broadcom devices ? (TI useful also though.) I'm particularly interested in knowing if if works well in regions with even frequences (eg 100.2, 100.4 etc) and with 100 KHx (0.1 MHz) offsets between channels. And does anyone even need or use 50 KHz offsets ?

For anyone who is not aware, long pressing (hold for 1/2 - 1 second) the left/right (up/down) arrows does a seek to the next strong channel.

My LG Optimus One/P500 would not stop the seek. It kept wrapping around the band.

I fixed this by writing SRCH_METH_RSSI to the SRCH_METH register.

I tried this originally on the Desire HD because it seemed the right thing to do based on the register name and values. But this caused some problems on DHD, and the sample source code I have doesn't do it. So I disabled that code.

But now it seems that I have to write that register on the P500.

Very strange and what a pain...
[Spirit FM] mikereidis:
Hi ilarrain. I think you're the first to ask. :)

Legally, it's "Copyright (c) 2011 Michael A. Reid. All rights reserved."

Some credit should go to Code Aurora, as my app is derived from their code, as are the MIUI and CM FM apps. And a few details in my app came from looking at the CM code. AFAICT both are BSD type licensed so anyone can do anything they want, with some credit.

There will be a premium paid app, hopefully released later this month.

But this version is free for personal use. I originally thought "... or business use" here, but I'd want to ensure no carrier or other business entity took that as license to include my app in their commercial product, without some sort of licensing fee or at least explicit permission.

I ask that anyone wanting to re-distribute on a free ROM or similar get my permission, but if I get some sort of credit and the app isn't passed off as theirs, I won't get angry if I haven't been asked. But, as above, commercial ROMs are no-go without permission/licensing.

Some people have been modifying XML files for language or UI and I'm OK with that, and I'd like to see the result.

I've been doing embedded Linux development professionally for 14 years. I LOVE open source. :) And I know there are some wonderful advantages to open sourcing code.

But for now at least, I'm keeping the source to myself. I'm hoping to make at least a meagre income from this and throw off the shackles of the corporate world. I can't think of any likely way of earning an income if all is open sourced. If some company were to sponsor me, that might work, but then I think once again I'd be beholden to some corporation.

And besides, like any decent programmer with a non-trivial app, there are parts of the code that are just too ugly for the world to see, LOL.

I am continuing to consider open sourcing parts. Possibly even the app itself, and I could concentrate on the low level stuff that is more my speciality.

Feel free to offer ideas but this is my current stance. If someone else were to open source a decent Android app that works on multiple ROMs and phones etc., I think I'd head more in that direction also. As it is now the open source CM app is, I think, the only other open source such app, and it is dependent on the CM ROM.
[Spirit FM] filippogiad:
perfect!:)
[Spirit FM] mikereidis:
Re: Droid X and other Motorola devices with low signal & RF issues:

Sorry, I got a bit behind... A week+ in this case.

I looked at the latest MIUI I found for Droid X:

MIUI.us_Shadow_1.10.21_Eng_Deo_ZipA_Signed_DXC.zip

There ARE Motorola binaries and libraries for FM on this ROM and they are used. Even the FM.apk has source code under the "com.motorola.android.fmradio" path, in addition to "com.miui.fmradio".

The binaries are: fmradio and fmradioserver, and the libraries: libfmradio_jni.so, libfmradioplayer.so and libFMRadio.so.

I suspect that one of the "FM On" functions in one of the libraries or binaries enables the antenna. My guess is that leaving it disabled might improve earphone audio, or allow a headset with a microphone or media buttons to work.

I don't recall seeing a schematic/service manual for any Motorola devices, so I can only guess.

It will be difficult to figure this out I think. Perhaps if I had a Droid X I might be able to figure this out.

One funny thing with the Droid X. It's the most popular identified phone with an "active install" of my free app now. It's 5.1% (1,287).

Yet, it doesn't even register in the top 10 for the paid app. This ranges from 13.1% (34) for HTC Desire to 3.1% (8) for LG Optimus 2X.

So I guess Droid X owners aren't seeing value in the Unlocker. It COULD be because of these reception problems though...

I may purchase a Droid X used at some point... but it would be nice to know if lack of sales are due to this problem.