yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Which phone and which ROM and is it rooted ? If you gave Spirit SU, you can try denying SU and see if that prevents the crash.

It's working on my HTC OneX and that is Sense 4.0, but the OneX needs one of the more recent test releases I've made.

You can test with the June 7 free version here: http://d-h.st/ULh

Email me for a license file and/or the latest version of Light.

I'm not sure you're having a Sense related issue though. It could be MANY other things.
[Spirit FM] mikereidis:
Yes.

I can get a lot more information from Menu->Email Logs.

Are you concerned about data privacy issues with that ?
[Spirit FM] mikereidis:
HTC Wildfire S ?

It's possible the rebooting could be prevented on the latest releases by setting Debug->Mute kill mediaserver to "Disable".

That might create audio problems however. I expect to revisit the associated code again soon.

The latest test releases are needed for this setting. June 7 Free is here: http://d-h.st/ULh

Email me for a license file and/or the latest Light test release.
[Spirit FM] mikereidis:
On the latest test releases it was renamed to "msm7x30 Legend". Perhaps I should rename it back since it's useful on more devices than just the HTC Legend.
[Spirit FM] alonsosjumper:
Mike, what's about the recording on Samsung Galaxy S? Are you investigating about this?

This function interests me a lot.

And other question, it´s possible to change each 0.05 Mhz in Galaxy S? I tried it but it doesn´t work. I suppose it's because Galaxy's hardware.

Thank you!
[Spirit FM] Metallico:
Hi Mike.

This afternoon i send you an email with logs becasuse Im still cant make it work.

Regards!
[Spirit FM] mikereidis:
You can enter frequencies manually to whatever degree of precision the chip/API allows, down to 0.001 MHz on Broadcom chips. Silicon Labs si4709 supports a minumum of 0.05 Mhz.

To get 50 KHz offsets using up down or via the graphic, set Regional Band to World.
[Spirit FM] mikereidis:
No it's not feasible for me to support recording on any device for which Menu->Test->Record does not already work. At present it works with stock ROMs for some Sony devices, as well as Galaxy Note and probably S3.

And I probably have to do a feature freeze for a while too, because bug and problem solving for new users/customers is taking a LOT of my time and I need to reduce these 80 hour weeks. Heck, I need a vacation too. :)
[Spirit FM] Quinny899:
Hey, Mike, you seen this?

http://bharathp666.deviantart.com/#/d4tubww
[Spirit FM] mikereidis:
June 7:

New Audio->Method = "msm7x30 AscendII" for ZTE Ascend 2 and similar devices.

Enhancements to Audio->Method = "qsd8250" prevents need to switch Speaker/Headset after unmute.

New Debug option "AM Mute Off" disables the Audio->Method mute function, while keeping other Mute functions. May be useful in cases where unmute is unsuccessful.

Support for preset name in Notification window, next to frequency (if different than default name of frequency). Partial support for User Interface->Station ID = "Name".

Adjustments to Galaxy S2 and Note audio methods on stock ROMs.

Audio->Method = "Automatic" only switches to CM7 method when "/system/app/FM.apk" CM FM package exists, or when other automatic detections fail.
[Spirit FM] mikereidis:
I have now. :)

Samsung FM apps have that shiny center tuning wheel. Is that something that people like ?

I've only recently been trying to use my handsets one handed, and I'm seeing that things like vertical volume controls might be useful. A vertical move with your thumb is easier than trying to stretch it left <> right.

I have some protections against modification of the app now, to prevent easy unwanted hacks such as removing license validation. I considered checking the whole APK, but at this time only the "code" part is verified.

So XML and PNG mods should still be possible.
[Spirit FM] Metallico:
Hi Mike.

I sent the logs...

If you saw it tell me if its someting wrong with

Regards dude!
[Spirit FM] lrbpereira:
Think that you sould invest in upgrading the looks of Spirit FM, but it isnt bad at this moment...

Can you send me the last UL by mail to test the cm9/hoxmode in it.
[Spirit FM] Quinny899:
Well, I designed the last one (sort of, I made it ics styled from Mike's original grey and red one), so I volunteer to upgrade it to this one
[Spirit FM] lrbpereira:
Think you can go to the sense radiofm looks, very nice... Maybe 2 or 3 mockups so we can vote the best?
[Spirit FM] Quinny899:
Maybe, I quite like the sense 4 one too
[Spirit FM] TaLeNDiL:
FYI May11 version solved my problem but last week i installed Jun2 and it occured again. I'm downloading Jun7 now.
[Spirit FM] mikereidis:
May 25 was an attempt to improve audio issues, and in my testing it did.

On the newer test releases you can set Audio->Method to "Galaxy S ICS safer?", which may be safer and I think should more or less give the same effect as the May 11 release.

You can also try "Galaxy SL/i9003". I can't guarantee it's as safe as "...safer", but it might be.
[Spirit FM] mikereidis:
I've been getting reports recently of no audio, or audio problems, from apps that are supposed to increase volume, or otherwise "mess" with the audio in some way.

If you have any such apps, you might want to try disabling them or even un-installing them if they can't be disabled. At least to test...

I'm just noticing you have a GT-i9100G ? That uses a very different TI OMAP SOC (not Exnyos.)

Was there a working FM app on the stock ROM ?

The audio seems rather different. I'll presume you've tried all the Audio->Method settings that have Samsung or Galaxy in the name.

I see that errors are returned for the "RSSI get" and "Chip ID get" functions, but the others seem OK. That's strange.

The ALSA driver indicates you should try the 3 options at the bottom of Menu->Test->Audio. They are:

ALCR 2=FM

Aux FM Volume 10

ARCR 2=FM

It's possible that other audio might get messed up after this, at least until you reboot.
[Spirit FM] mikereidis:
:)

Just understand that I'm getting REALLY backed up right now.

Sales are nice but it means I get a log of emails, bug reports and general problems to solve.

And my long hours are "catching up" and I have a lot of home and family stuff to do and I need the closest I can get to a "break" which likely won't be much.

So I can't make any commitments to UI improvements or new features. I'm swamped with the above as it is.
[Spirit FM] mikereidis:
Sorry to anyone who is waiting for a posted or email response or is having some problem or whatever.

Per my post above I've gotten rather backed up.

I have to prioritize somehow, so some things will have to be put off.
[Spirit FM] Quinny899:
I'm quite backed up too, so I'll be a few weeks before I can begin. I've got a week of exams this week and then a French controlled assessment the week after, followed by work experience from the 5th - 9th July
[Spirit FM] igor45:
re:title for the free version is wrong on google play

understood - wasn't asking where to find the free version, though thanks - I am reporting a small anomaly - sorry to bother.

I realize that it's a very small issue compared to real work being done here , but FWIW here's a screenshot just so I can say that I've been thorough...
[Spirit FM] Quinny899:
Any idea what this could be Mike?

I/cat ( 478): <6>[ 1.898101] asoc: FM Digital <-> omap-mcbsp-dai.1 mapping ok

Comes up when attempting to boot AOKP on my Archos g9 tablet
[Spirit FM] Metallico:
Hi Mike.

About the app of increase volume i tell you that the only that i have its the DSPmanager that comes with CM9.

I never tri with ICS stock because never installed it.

When i had GB the Fm radio was working without problems.

I tried with the method you told me and nothing.

I will try disabling the dsp manager and will see.

Thanks man for your time.
[Spirit FM] itandy:
Just sent the email log. For now, I have to reboot my phone manually every time after exiting the app to avoid the battery drain. Hope you can sort it out soon. Thanks!
[Spirit FM] mikereidis:
Even small things are important.

But this is not a "bug" on my part. It's more or less "working as designed".

I "un-published" the free app with the package name "com.mikersmicros.fm" from Google Play. You can't find it with a Google Play search, nor will you see it as "More from developer".

For me it says "This app is incompatible with all of your devices."

I further try to confuse the system by setting name to ".", language to Hindi, category to "Brain & Puzzle", content rating to "High Maturity" and available countries to only "Luxembourg".

But no matter what, I can't make that page disappear so that nobody can find it, when they have the URL.

And over the last month, there are still 1-11 updates every day.

I'm actually surprised Google allows "un-publishing". I had been under the impression that unless Google removes an app, the last version of a free app must always remain available. (Since free can never convert to paid.)

It IS still available to people who downloaded it in the past, still have it installed, and who need an update to the last version though.
[Spirit FM] mikereidis:
It's audio related, likely for digital FM audio.

It indicates that FM might be possible.

But more likely it just indicates the ROM has "vestigial" FM support intended for devices with FM supporting hardware.

Even many stock manufacturer ROMs have "vestigial" FM components. The big manufacturers have hundreds of different devices out there and they tend to have a "Base ROM" that is shared by many of them.
[Spirit FM] mikereidis:
I have doubts the CM9 DSP manager would cause problems, but it could. Unlike a 3rd party app, it's integrated with the ROM. That said, CM9 doesn't "support FM" so anything is possible.

I think the troublesome app was called "Volume Boost". It and similar apps, just by their nature, have to do undocumented things (as does Spirit).

Yours is the first or second GT-i9100G I've had a report on I think. So I don't know what's going on there and unless one of those options produces audio I don't have much hope at this time.

I added those options for the same, or a similar device, and it didn't work with them either.
[Spirit FM] mikereidis:
Here's a test:

After turning off FM/Spirit, go to System Settings.

Then go to Apps or Applications and select Spirit.

Then press "Force Stop".

This should completely remove all Spirit code from memory and may clean/free up some system resources.

If the battery drain is still happening, the problem is most likely to be in the audio or Bluetooth subsystems.

If it's in the audio system, then killing the mediaserver and letting it automatically restart after a few seconds may help. You can do that without adb shell by enabling Debug->Mute kill mediaserver and restarting the app. This often causes other audio problems and is meant as a test in your case.

Resetting Bluetooth might not be easy or possible, but turning it on and turning it off might help.
[Spirit FM] Metallico:
Ok man...

Bad luck then...

Thanks for your time Mike and sorry for the insistence and impatience.

Regards from Uruguay and great work!
[Spirit FM] _AnAkIn_:
Doesn't work on my I9100G either with CM9 (works with stock ROM though), but someone claim it works with CM9 for him.

I keep seeing this error in logs:

E/fm_hrdw ( 4478): sl_rssi_get IOCTL Si4709_IOC_CUR_RSSI_GET error: -2147223028

EDIT:

According to codeworkx it should be the same as I9100 to make I9100G work. Maybe if you make I9100G uses the I9100 specific code it would work?

EDIT 2:

Maybe comparing logs with stock ROM and CM9 would help?
[Spirit FM] artlov:
Please explain me how lockscreen option should work. I've selected "Frequency + RDS" option, but on the lockscreen have nothing . Gratia CM9 ROM.
[Spirit FM] mikereidis:
I saw that error too, and also one when trying to get the chip ID. But that error only prevents getting RSSI signal strength, AFAICT.

Everything else in the log with the FM chip looks good. I think the Unlocked version would show that RDS worked.

I think the only problem is with FM audio routing, and only on custom ROMs without the stock related audio/FM libraries. On stock or stock derived ROMs, using the stock APIs I think it would work fine.

Almost half of my work is just dealing with FM audio routing and related audio issues. It's rarely as easy as it might seem, especially on custom ROMs.

Those Test functions I posted are the only idea I've had so far to deal with the i9100g variant and similar devices. Unless I somehow get a new idea, or get one of these devices in my hands, I likely won't have an answer.

Unfortunately, the G variant is relatively rare, so I have little information and I'm not likely to buy one.
[Spirit FM] mikereidis:
I got a little bit ahead of myself and added a few settings options that don't do too much.

So along with User Interface->Notification Display settings I also added Lockscreen Display settings.

I think it still works on some CM7 ROMs, displaying frequency as "artist", 8 character RDS Program Service as "album" and 64 character RadioText as "track".

I've been searching for the magic Intents, such as "com.android.music.metachanged" that can work on many ROMs, but have yet to find them. I think many ROMs just don't support such info display, or use a variety of OEM/ROM specific Intents.

If you know what the "magic Intents" are for your ROM, I'd be happy to hear.

This might be somewhat tied into lockscreen controls too. They tend to be an alternative to wired headset media button controls, providing pause/play, previous and next.
[Spirit FM] mikereidis:
June 13 Free: http://d-h.st/P8s

- /dev/tifm low level support for HTC One X and other TI based devices, such as (perhaps) LG P920, HTC Amaze, etc.

This can be a generally more functional and efficient FM access method than the TI OEM API. On the One X at least, it does not require root.

- New Debug setting "HCI Access". For devices using Broadcom or TI FM chips accessed at low level with HCI commands.

The default of "Automatic" will try all available methods, in order of preference, often based on the current Bluetooth state and whether or not SU is available.

Disable disables all HCI access.

TIFM mode is 1st best, if /dev/tifm exists for a TI chip.

UART mode is 2nd best, if SU is available and the chip is Broadcom and Bluetooth is off.

BT Socket mode is 3rd best, if SU is available and Bluetooth is on.

Ext or External hcitool mode is 4th best and can work without SU but Bluetooth must be on. This mode will use a LOT of CPU and battery if RDS is enabled.

Int or Internal hcitool mode is never tried automatically, due to conflicts, and must be explicitly set. It's effectively the same as External hcitool except it uses an hcitool binary embedded in the app and thus doesn't require the ROM to have one. In some cases this may work without SU, but in many SU is required. Use only as a last resort.

- "Galaxy S ICS" audio method is again reverted to a single method, and default is again "Safer".

This is augmented by a new Debug setting "Galaxy S". The default of "Automatic" is the same as the "Safer" method.

I've re-reverted to "Safer" as a default due to 1 new direct speaker damage report, and 1 indirect report in the last 3 weeks. This was after 7 weeks with no reports with the old "Safer" method, which was relatively similar to the new "Safer" method.

If you have audio problems and consent to possibly more speaker risk, you can try "Better", or perhaps worse "Danger".
[Spirit FM] _AnAkIn_:
If I take these libraries from the stock ROM and put them in the correct directories, would it work? If so, where are these libraries located?
[Spirit FM] mikereidis:
Did the i9100G just get released recently, or is it just that CM9 was released for it ? Including yours, I've had 2 recent queries here and 1 by email. If it has some popularity I'm more likely to put time and effort into it.

In theory a library transplant is possible. But every time I've ever tried it I found there are many inter-library dependencies. Swapping libraries will often prevent a proper boot.

If someone could send me logs from a stock or stock derived ROM on which we can see FM working, I might get some better clues.
[Spirit FM] _AnAkIn_:
The I9100G hasn't been released recently, it's just that CM9 was released recently. The list of issues says to try Spirit FM as the FM Radio doesn't work:

http://teamhacksung.org/wiki/index.php/CyanogenMod9:GT-I9100G:Nightly:Known_issues

This is why you got people asking :)

Do you want logs from Spirit FM working on the stock ROM, or logs from the stock FM Radio app?
[Spirit FM] krishnandu.sarkar:
Hi,

I have installed the Free version of this App on my LG Optimus One on Oxygen v2.8.

Everything is working fine, but the sound is too low in speakers. Is it the limitation of Free Version App or anything else..??
[Spirit FM] mongo1010:
Will buy paid app, but Free version doesnt work on my I9100G :-(
[Spirit FM] Jiangyi:
The I9100G was released in Q3 of 2011 and is sold instead of the I9100 in many markets in the world, mostly in Asia and a few parts of Europe. It just got CM9 nightlies 1-2 weeks ago, and is a device that is growing in popularity as it replaces more and more of the I9100s around the world. (It is not in North America yet AFAIK.)

I would love to also help in getting FM working on this device. I have attached a logcat from a stock Samsung 4.0 ROM using the stock FM Radio app, and the other is a log from Spirit FM on the stock Samsung 4.0 ROM. I pulled these off of a friend's phone as I am on CM9, and I hope this helps. (I should mention that Spirit works absolutely fine on stock.)

logcat (I9100G Stock 4.0.3 with stock Radio): http://pastebin.com/X00MNbFM

Spirit debug log on I9100G Stock 4.0.3 (It was too big for Pastebin, I apologize for the use of Mediafire): http://www.mediafire.com/view/?e8127saeet24zsi

Regards,

Jiangyi
[Spirit FM] fatjivi:
I would really appreciate spirit FM fix for i9100G

Thank you for showing interest in i9100G
[Spirit FM] CR5N:
I have a i9100P and the app does work on (un)rooted branded stock ICS4.0.3. Good sensitivity but sounds like audio clipping and signal strength@40+ on a known strong station (23ish on HD2). RDS station names suffer *hysteresis* as you seek up and down. I will play around a bit more when I have more time and provide useful feedback :rolleyes:

Pretty sure it's the same hardware as i9100 but with nfc but can take logs if any help?
[Spirit FM] mikereidis:
It's not a free/paid limitation.

I have a P500 and the same issue. On CM7 for the P500 the audio libraries were modified to change the volume in the audio hardware when FM volume is changed. This modification is not in the ICS audio libraries, AFAICT.

I've had several recent requests about this. I tried a few things over the last few months with no luck. I can try again...
[Spirit FM] mikereidis:
Thanks ! Any and all logs can help.

One some of the logs previously sent I can see messages from the audio libraries that include "... fm_enable:0..." . Now if we could just make that "fm_enable:1"... :)
[Spirit FM] mikereidis:
"hysteresis" means the RDS doesn't update quickly when changing stations ? Are you talking about the PS in the middle or the PI on the left ?

On an unrooted device, Spirit should generally act like the stock FM app works, but audio can sometimes be different.

Feel free to send a log with Menu->Test->Email->Logs.
[Spirit FM] _AnAkIn_:
lrwxrwxrwx root root 2012-06-14 00:59 fmradio -> ../../devices/platform/omap/omap_i2c.3/i2c-3/3-0010/misc/fmradio

/dev/fmradio

Would these files help?
[Spirit FM] Jiangyi:
No trouble at all, always glad to help out, especially a fellow Canadian. :p If you need anything else, please don't hesitate to ask!
[Spirit FM] mikereidis:
No.

What I need are one or more of these:

- Specifications of which ALSA registers to write and what to write in them.

- Specifications of which device drivers to send Ioctls to and what Ioctls to send with what data.

- Specifications of which libraries to call, which functions in them to call and what parameters to send with what data.

In the last 16+ months NOBODY has ever provided the info above to me for any of the devices I support. In every case I've had to reverse engineer the answers myself.

I don't expect this case to be any different, and I have little hope of ever seeing a difference. Not one single phone or chipset manufacturer has publicly documented how to enable FM Audio routing on a readily available device.

The ST Ericsson proposed Android FM API could have changed that, if any readily available device had supported that API.
[Spirit FM] mikereidis:
I'm happy to report I've found a solution. I'll integrate it into the app when I can.

If someone has adb shell or a terminal app, they could run this, all on one line:

For Unlocked:

killall mediaserver;/data/data/com.mikersmicros.fm_unlock/files/ssd 1 1015

For Light:

killall mediaserver;/data/data/com.mikersmicros.fm_li/files/ssd 1 1015

Or on the free version:

killall mediaserver;/data/data/com.mikersmicros.fm_fr/files/ssd 1 1015

After the above, hit mute/unmute. For even louder, 1015 can go up to 1020.

There are similar issues on devices such as the Galaxy 5 series, but where volume is way too high. I should integrate a more general solution.
[Spirit FM] teenvista:
Will a voodoo report help? Glad you are developing for I9100G
[Spirit FM] krishnandu.sarkar:
Hey, thanks for the detailed explanation. :)
[Spirit FM] mikereidis:
Maybe.

But AFAICT there is no voodoo sound on i9100G.

It uses a TI codec, not the wonderful Wolfsson WM8994 codec the GT-i9100 Galaxy S has and that Voodoo supports well.

This is the issue we are having; it's a different audio system.
[Spirit FM] mikereidis:
I hope you saw my post where I said I had a fix...
[Spirit FM] groksteady:
Hi Mike,

I just DL'd the June 13 free edition, and did a search for 'settings' and 'presets'. Is there any way to export or automatically carry over settings from the May 25 UL version to newer versions?

And, as always, thank for the great, continuing development.
[Spirit FM] thlengane:
June 13 Free vs May25 Unlocked

Hi Mike,

I have a June 13 free version on my phone and working. However, I want to purchase from the market and it wants to install the May25 unlocked version which never worked. Won't this be a problem?
[Spirit FM] weihan1102:
hello , why i cant found mute kill media server in debug ?
[Spirit FM] van_vugt:
No speaker sound Spirit FM (Locked version)

Hi,

I can listen to FM via my head phone but when I push the speaker button nothing happens. Music is still playing over the headphones.

Sounds familiar? Does anybody have a solution?

thnx

Val.
[Spirit FM] krishnandu.sarkar:
Nope. Didn't noticed. :(

Going through the last few pages again. :o

---------- Post added at 08:42 PM ---------- Previous post was at 08:32 PM ----------

Thanks for the hard work :)

I have tried the command though terminal enumlator, but it says killall : not found and /data/data/com.mikersmicros.fm_fr/files/ssd : not found

UPDATE : Tried running through adb and yes it's fixed :)

Thanks a lot :D
[Spirit FM] _AnAkIn_:
The FMRadioService is inside /system/framework/framework2.odex file for I9100G. Maybe it's needed to make the FM Radio work.
[Spirit FM] mikereidis:
You don't have to do anything when upgrading from one version of a "package" (eg Unlocked) to another version of the same package. That's normal for most apps.

Sometimes people have problems because they are updating from a pirated version that was not signed with my key. They have to remove the pirate version, then install the legitimate version.

For switching between packages, such as Free to Light/Unlocked etc, use this to backup settings to /sdcard/spirit.xml:

Menu->Test->Settings->Export...

Use this to restore settings from the same location:

Menu->Test->Settings->Import...

In previous versions "Settings" was named "Preferences".

Some people have reported the above doesn't work, but I've never seen a problem, and I just successfully tested the procedure now to transfer presets.