yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
I wrote about it on the previous page: http://xdaforums.com/showpost.php?p=26106332&postcount=3473

In theory, the existing V4L Tavarua support might work. I've had logs from a One S and it starts up as expected, but I don't think it works.

You could even try starting the HTC app, then Spirit, or reverse the order and start Spirit first.

I'm going to have to get a One X or One S soon.

BTW, potential interesting features include FM record and FM transmit. I'm not too hopeful to get either working. But, previous Qualcomm FM chips were supposedly using the same pins for FM receive as for transmit. So chances are higher than they've been with TI & Broadcom chips.
[Spirit FM] mikereidis:
You could take 2 identical Bionics.

On one you install the components that connect the antenna pin to the earphone jack.

On the other you don't install them. Maybe you ground the pin with a jumper instead.

The 1st will work. the 2nd won't.

So the rest of the device is relatively irrelevant to whether or not FM works. What matters is a few components and circuit board traces that might or might not be there.
[Spirit FM] lrbpereira:
Can you work on this?

BTW: I am on a CM9 rom for HTC One X, the original FM app is in the stock one ;)
[Spirit FM] xmguy:
Very true. Have you seen any connections between the RAZR and Droid 4?
[Spirit FM] drive2droad:
how do i make this app work on the gsm galaxy nexus ? I am currently on cm9 with franco kernel 161 nightly . Any help would be appreciated .
[Spirit FM] CR5N:
Mike, installed may17 free apk. Worked on Tytungs cm9 2.1 out of the box - BT 'off' and no audio settings and got excellent signal level of high 20's rather than low 20's on a known good signal station but no RDS(!) ;)

Didn't upgrade to unlock with license on sd, should it have?
[Spirit FM] pikachukaki:
Mike i try to dw 17may but link just load a white page!also you remove free version from market??
[Spirit FM] CR5N:
View as a desktop page and it should work then.
[Spirit FM] pikachukaki:
I try this too but maybe our aurora has a problem!
[Spirit FM] mikereidis:
Yes, but give it time. :) I have to first figure out which specific model of the S or X will be best for development.

Does that CM9 ROM have Sense ? HTC FM apps have previously needed Sense.

Official CyanogenMod likely won't have Sense, because CM tries to use open source only.

Using a V4L driver for FM is cleaner than the more common method of using a proprietary Broadcom or TI Bluetooth/FM stack and API.
[Spirit FM] mikereidis:
I have no opinion at this time because I haven't been looking closely at them.
[Spirit FM] mikereidis:
We can't.

The Bluetooth/FM chip is not connected in a way that makes FM feasible, with usable connections for FM antenna, audio and/or power.

Google hates FM.
[Spirit FM] mikereidis:
Could be.

This works for me, same URL as posted: http://www.mediafire.com/?i233kue9gs38gq9

Download stats show it also works for 125 other people.

Free version has not been on Market/Play for around 1 month now.

Too many people were posting hateful reviews, and too many people were voting those reviews as "Most Helpful".

So I decided I wasn't going to do the work necessary to keep giving easy and free updates to people who seemed to hate me and the free version of Spirit so much.
[Spirit FM] pikachukaki:
Ok this work with browser and request desktop lets see what config u8800pro needs now!
[Spirit FM] mikereidis:
Yes it should have, and Menu->About is the fastest way to confirm. The title at top would say "Spirit FM UL v May 17".

The license file needs to be named spiritfm_license.gif and needs to be in the /sdcard/Download/ directory.

The 18 earliest requests got an email from me saying /sdcard/spiritfm_license.xml and that worked at the time, but doesn't any more.

Send me a log immediately after starting with Menu->Test->Email->Logs if it still doesn't work. The shorter Menu->EMail Logs isn't present unless it shows Light or Unlocked.
[Spirit FM] pikachukaki:
Ok i had restart if press ok i need to press back after i press allow su and select broadcom and this qd.... analog!no speaker but i dont care and ringtone works after close the app!!!mike one request widget!!!it will be great!
[Spirit FM] CR5N:
Aah... Mines still called .xml missed that one :rolleyes:

Will give it another try and feedback.

Edit: that fixed it :D
[Spirit FM] egoal:
W00t! I will test it right now! \o/
[Spirit FM] mikereidis:
I was thinking about a widget. And/or a wallpaper. :)

Are you seeing RDS in the Notification screen with the latest ? Some apps put controls in there, for pause/play or next preset etc.
[Spirit FM] mikereidis:
Early adopter issue. :) I should send an email to the first 18, out of some 350 license file requests. Just don't want to bug people too much, or add to any confusion.

Still getting 10-15 requests a day, almost always from non-customers now. Will likely get them forever, since that's one of the last to allow RDS even if no license response is received.
[Spirit FM] mikereidis:
May 18 Free: http://www.mediafire.com/?yolkgea2o6b9k61

Not on Play.

Bluetooth & SU enhancements.

- Should automatically deal with ICS Bluetooth always on issues.

- Minimizes the use of SU requests. Should help resolve issues with too many requests or slow operation when using recent buggy SU binaries.
[Spirit FM] DevilTH:
Pause and play are to be seen in the lockscreen...RDS no, but in the advanced notification-area. (Using CGM for Galaxy I5500)

Greetings DevilTH

PS: Wallpaper or something like that is a nice idea.:)
[Spirit FM] egoal:
About Spirit 18-May version.

Every time I start the application activates Bluetooth. Is that working as intended?

The new SU method makes the application start like 5 times faster. Great job!

Testing the Battery consumption with the new "ALSA PCM open" right now. Will post later my findings.
[Spirit FM] egoal:
"ALSA PCM Open" works wonders on Galaxy S with CM9 Nightlies! Don't touch it! 2-3% battery per hour! Now I'm forced to buy your application! ;)

Seriously, awesome job! Big Thanks!
[Spirit FM] mikereidis:
Forced ? LOL. :D

Have you "force updated" your SU binary ? I haven't measured but I thought reducing SU requests would only have a small impact with a "fixed" su.

Let me know if PCM Open gives any bad (or good) effects on audio, especially notifications and phone calls/ringing.

Watching the logs it gives errors, but the errors go away with a Mute/Unmute.

Bluetooth activation is only partly intended. It's for Broadcom and TI chips on ICS ROMs on which Bluetooth always uses the BT/FM UART, even if Bluetooth appears off at the Android level.

On Galaxy S/S2/S3/Note etc. Bluetooth isn't needed to access the FM chip. I'll fix this and perhaps battery will last a little bit longer.
[Spirit FM] TaLeNDiL:
Hi, I'm using Galaxy S CM9 nightlies. I have a problem with the app, and I don't know it's a known bug or something is wrong with me. While I'm listening radio, if my phone rings and if I open the call, I can speak without any problem. But after that If someone calls me and when I answer it, I can hear no voice at all. Same thing if I try to call too. The front speaker goes offline. I need to restart the phone for get the sound back.
[Spirit FM] mikereidis:
That shouldn't be a problem with the May 11 or later releases.

Here's the Free May 18. Can you try it ? : http://www.mediafire.com/?yolkgea2o6b9k61

On older versions you may need to manually set Audio->Method to Galaxy S ICS/ALSA (or "better"), or similar, depending on the version.

It might be useful to clear the app data, or remove and reinstall to ensure a clean configuration. You'll lose your presets doing that though.
[Spirit FM] TaLeNDiL:
Oh thank you, now it works.

By the way, after closing the call which is ringed while listening radio, radio voice isn't coming back. I need to switch between speaker and headphone. Or basically restart the app.

Anyway congratulations for the app, good work.
[Spirit FM] willie1001:
Hello Mike,

I would like to ask you 2 questions:

1: is there a way to start the radio from another app

2: could i receive a spirit license file?
[Spirit FM] mikereidis:
:)

I'll re-enable a fix I had for that in the past. Basically does the same thing automatically.
[Spirit FM] mikereidis:
2. Yes, if you're a customer, just send me an email: mikereidis@gmail.com .

1. Yes, the same way you'd start any app.

I've tried an alarm clock app that can start any app, and it worked, although there may be minor issues remaining.

Here are the main Activities and Intents in the AndroidManifest.xml file for the Unlocked package:

<activity

android:icon="@drawable/img_icon_ul"

android:name="com.mikersmicros.fm_unlock.fm_apln"

android:clearTaskOnLaunch="true"

android:launchMode="singleInstance"

android:label="Spirit UL"

>

<!-- Intent: Main launch. -->

<intent-filter>

<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER"/>

</intent-filter>

<!-- Intent to bring FM app to foreground if user clicks on expanded message in the "Notifications" window. -->

<intent-filter>

<action android:name="com.mikersmicros.fm_unlock.FM_ACTIVITY"/>

<category android:name="android.intent.category.DEFAULT"/>

</intent-filter>

</activity>

<activity

android:name="com.mikersmicros.fm_unlock.fm_stgs"

android:label="@string/settings_menu"

>

<!-- Intent: Settings launch. -->

<intent-filter>

<action android:name="android.intent.action.MAIN"/>

</intent-filter>

</activity>
[Spirit FM] mikereidis:
2. Yes, if you're a customer, just send me an email: mikereidis@gmail.com .

1. Yes, the same way you'd start any app.

I've tried an alarm clock app that can start any app, and it worked, although there may be minor issues remaining.

If you need to know Intent names, here are the main Activities and Intents in the AndroidManifest.xml file for the Unlocked package:

<activity

android:icon="@drawable/img_icon_ul"

android:name="com.mikersmicros.fm_unlock.fm_apln"

android:clearTaskOnLaunch="true"

android:launchMode="singleInstance"

android:label="Spirit UL"

>

<!-- Intent: Main launch. -->

<intent-filter>

<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER"/>

</intent-filter>

<!-- Intent to bring FM app to foreground if user clicks on expanded message in the "Notifications" window. -->

<intent-filter>

<action android:name="com.mikersmicros.fm_unlock.FM_ACTIVITY"/>

<category android:name="android.intent.category.DEFAULT"/>

</intent-filter>

</activity>

<activity

android:name="com.mikersmicros.fm_unlock.fm_stgs"

android:label="@string/settings_menu"

>

<!-- Intent: Settings launch. -->

<intent-filter>

<action android:name="android.intent.action.MAIN"/>

</intent-filter>

</activity>
[Spirit FM] xmguy:
Mike, has any more feedback come for the RAZR or is it still a lost cause?
[Spirit FM] mikereidis:
May 19 Free: http://www.mediafire.com/?6unvwsd176irj58

- Further adjustments to Bluetooth handling, including a fix for Motorola devices.

Won't modify Bluetooth power state for Galaxy S/S2/Note etc.

- Motorola device reception fix for devices with no app usable hcitool.
[Spirit FM] mikereidis:
Lost cause with no potential for that to change.

EDIT: Other than what I emailed. :)
[Spirit FM] itandy:
@mikereidis, I'm a Lite user. First off, thanks for the great Spirit FM radio which enables me to continue using FM radio with AOSP ROM.

But I have a question regarding battery usage. It seems that even after quitting Spirit FM radio, something is still consuming battery more than usual. I've been noticing that if I don't use Spirit FM radio in the morning, my phone consume about 1% per hour when idle. But if I use Spirit FM radio on my way to office, my phone will consume about 2-3% per hour when idle throughout the day. Rebooting the phone will resume normal consumption rate.

I know I'm not being scientific here but I've been noticing this for more than a month and it's very consistent. Just want to see if anyone else has this issue. Or any suggestion from mikereidis?
[Spirit FM] egoal:
I update my CM9 nightly build almost as soon as they become available. Same for Spirit versions. Said so, I'm currently sitting at CM9 nightly 17-May #2 and I just did a Data/Cache Wipe and did a clean Spirit 18-May installation (cleaning data and uninstalling the previous version). Not more SU problems management detected and not, I didn't manually updated the SU app. Now app start is fast like lighting.

About the "ALSA PCM Open" not sure yet if it's problematic or not, need bit more time for test it with everything. I don't use Radio on weekends. What I can tell you is that the battery consumption is a lot lower than the normal method.

At this moment I'm having problems with my phone don't giving any notifications at all. But I think that is more a CM9 problem that Spirit, because when I'm not using the application I don't receive them either. Maybe I screwed some configuration so I'll make a clean CM9 update today.

About the problem of some process consuming resources after close Spirit. I found something like that in earlier versions of Spirit, the ones before the ALSA PCM Open turned operative again on my Galaxy S. Might be related to the Loop keeping the sound active doesn't stop when the application closes? Because I was observing that he Multimedia process was the one still there.

I will continue my testing and I'll tell you whatever I find.
[Spirit FM] mikereidis:
HTC Incredible S right ? And you aren't using Debug->Silent Loop ? Silent Loop uses CPU and battery, but only when running.

That's my main source of concerns with battery usage, but most people don't measure or notice a few percent.

I'm not aware of any problems at present. There should be no part of Spirit left running when you power off via the app power button.

Do you run with Bluetooth on or off ? There are potential issues associated with that, and if you have what I've called the "ICS/CM9 BT Bug", that could be at least partly responsible.

Best to send me a debug log and I can say better. Use Menu->Email Logs and after a few seconds. enter "Phone Model" in the email text and press send.
[Spirit FM] itandy:
No I don't have Silent Loop enabled. I left everything in the Debug settings to their default values.

Yes, my ROM does have issue with Spirit FM and last time you told me to enable BT manually which did fix the problem. And in recent Spirit FM version, I found it automatically turn on BT and it works flawlessly too.

I'll send you the log file tomorrow when I use Spirit FM. Thanks!
[Spirit FM] mikereidis:
Until at least 1-2 months ago the app didn't properly shut down the Bluetooth UART when using UART mode. It should shut down properly in versions over 1 month old at least. That could be tested by always running Spirit with Bluetooth on.

The mediaserver SHOULD stop when the app stops, or within 30 seconds at least. The silent audio file is 30 seconds log,

The only reason it might not stop is because the app restarts the loop/file every 20 seconds, and an unfriendly mediaserver might queue up a backlog. I've never seen this, but it could be tested by running the app for 2 minutes, then seeing if mediaserver is still active for 1 minute after stopping Spirit.

There is always some possibility that the FM audio path doesn't get completely disabled on app shutdown. But on the Galaxy S, Silent Loop is used to prevent the audio chip from shutting down, and once that stops, the audio chip should be shut down to save power.

To test to see if some part of Spirit is still running, you could go to System Settings, Manage apps, and do a force stop on Spirit. Or tougher still you could do an app uninstall. If these things lowered CPU/battery usage that would indicate Spirit is still running a timer loop or something. I doubt this, but you never know.
[Spirit FM] mikereidis:
My first temptation is to blame this weird Bluetooth thing I've been seeing in many CM9 ROMs, and now it's spreading to other ROMs, perhaps CM9 derived.

The Bluetooth, or at least parts of it, is running after boot, regardless of what you set desired Bluetooth power to. "Turning Bluetooth on", via power control or system settings etc. just seems to tell Android: Bluetooth is on now. But it always is on at a low level.

It's possible you'll see the same drain issue if you never use Spirit if you do this: Boot with Bluetooth off, turn it on, then turn it off again.

From a root console/adb shell. something like this might help turn BT more fully off: "stop hciattach".

I've also experimented with killing the Bluetooth processes so that the UART mode can work. I made it work, but I wasn't able to get Bluetooth working again and that was as far as I got.
[Spirit FM] mikereidis:
RDS with Western European non-English characters:

I think I have a relatively simple solution for characters like these in German and other languages: "äÄöÖüÜß"

I hope to get it in for testing in the next release. I'll be happy to get feedback as such characters don't seem used here.
[Spirit FM] DevilTH:
This is a nice idea, but in Germany almost the radio-stations use RDS-descriptions which not contains these special characters. ;)

Greetings DevilTH
[Spirit FM] cos68:
Sounds great! In Denmark our national characters "æøåÆØÅ" are used by many stations in the RDS text, but not in the station ID. I will be happy to test these, when you have a solution!

Thanks!
[Spirit FM] mikereidis:
By "Station ID" do you mean the PS ? The PS or Program Service is the 8 characters in the middle, between PI Program ID on the left and the PT Program Type on the right.

Many radios only have the PS, and not the 64 character RT RadioText. And many, especially apps I think, don't support non-English characters, so several stations may be being "conservative" in what they send.

My code has replaced the non-English character set with "?" question marks but that's changing now. Do you see question marks where you would expect to see those characters ?
[Spirit FM] cos68:
Yes, exactly. I have never seen a PS using national characters. Sorry for not being precise in the description.

I think you are right. Only the RT displayed in the line below the PS is using the national characters as far as I have seen.

Sounds great. Yes, the characters are currently shown as "?" instead.

I am looking forward to your update, thanks!
[Spirit FM] mikereidis:
I was doing some testing last night and found 2 French language stations that seem to transmit the occasional accented character, both in the PS and the RT.

In both cases, the PS was dynamic and used as a way to "scroll" through the same content as in the RT, 8 characters at a time.

The standards body "RDS Forum" doesn't like dynamic (changing) PS; it's supposed to be sort of like an extended PT program type. In a car a changing PS may be distracting.

Yet many (most in my area) scroll the PS, likely due to lack of RT on many radios, and due to a desire to be "flashy". And at least some car radios will only show RT when the vehicle is stopped, so dynamic PS is a "loophole".
[Spirit FM] mikereidis:
May 22 Free: http://www.mediafire.com/?a80rmspw4kdt52z

Not on Play.

EDIT: Also a fix to restore audio on Galaxy S after the CPU has been busy and the Silent Loop has stopped.

- Fixes audio always going to headset at startup, even if speaker mode is the startup setting.

- Support for non-English non-ASCII characters in EBU codetable 1, which should cover most West European languages.

Note: The Free "package" can only support RDS if used with an Unlocked license file. Send me an email if you're an Unlocked customer and want the updated Unlocked package.

The RDS spec shows pictures of the characters and there were 2 of the 127 I couldn't figure out. I'll post pictures later & hopefully someone can assist.

Invalid or unknown characters are now shown as a tilde "~" instead of the question mark "?" shown previously.

I think RTs smaller than 64 characters may now be pushed to the left instead of centred. Will fix.

There are 2 local French (Canadian) stations that occasionally use accented characters for PS and RT. In some cases it worked OK, such as the "Ã" in:

16 hits Ã l'heure des 9h00...exclusif Ã NRJ

But I also saw lines like these, where the "Ŋ" character should be a "é" I guess. But the code transmitted was hex 0xF9 (249) instead of the 0x82 (130) I would expect for "é".

Votre rŊveil Rouge Cafe des 5h30 a Rouge FM

Salut les bronzŊs! Pluie auj. Soleil demain!

You can see all these new characters by setting Debug->FM Chip to "Emulator" and restarting. A new display is done every 10 seconds. Set FM Chip back to "Automatic" and restart to get FM again.
[Spirit FM] lrbpereira:
Any news Mike about the Htc One X support?
[Spirit FM] mikereidis:
Not much.

Which model do you think might be best for testing ?

AFAICT, the One X only costs a bit more than an One S, so the added features make a One X a better buy for a test phone I think.

Also, the One X has a lot more user and developer interest, so that means that information and ROM availability will be better.

But, there's at least 2 different variants of the One X, while the One S only has one variant I think.

The AT&T One X has a locked bootloader and it appears the audience will be smaller. It has an FM app apparently, but it's hidden and might be removed in future. But that's a bit of a plus since there will be users looking for an alternative FM app.

I guess the International One X might be the best bet. But I want to first ensure it's the best choice and has Qualcomm FM. I saw at least one report doubting that the One X had Qualcomm BT/WiFi/FM.
[Spirit FM] cos68:
Thanks for the update. I have tested it a bit and as far as I can tell it is working perfect. E.g. where I used to get a RT text like:

"N?ste: Verden if?lge Gram"

i now see the text:

"Næste: Verden ifølge Gram"

You might not be able to tell the difference, but I can tell you that the last sentence is correct Danish :)

For now I have not seen any characters being displayed wrong, but I will test it more later today.

Again thanks for the update. Your application is getting better every day. I am really impressed how well it is working compared to the stock FM radio on my HTC Sensation.
[Spirit FM] doncortio:
Work with ZTE Blade?
[Spirit FM] mikereidis:
Great ! :) Thanks for your report.

I'm starting to look at app string translations. But I'm trying to budget time for ongoing phone specific problems as well.
[Spirit FM] mikereidis:
Sorry, no.

Blade uses a ZTE specific driver and I don't have the resources to do a proper job for it.
[Spirit FM] lrbpereira:
HTC	One X internacional, 4 sure.

Im one CM9 on that phone... Missing Spirit FM Radio on it...

Hope you speed up yousupport for that phone...
[Spirit FM] mikereidis:
I just sent an email to an HTC dev relations guy who got me another phone. And I'll check out the local prices.

Is there an FM driver on that ROM at /dev/radio0 ?

If so, set Debug->FM Chip to "V4L..." and restart the app.

Then send me a debug log with Menu->EMail Logs or Menu->Test->EMail->Logs.

I've only seen stock HTC logs so far.
[Spirit FM] lrbpereira:
This rom CM9 from TripNRaven doen´t has that folder...

Can we steel that folder from other htc cm9 rom?

Debug log sent... but if there isn´t any drivers there...

Please give me a quick feedback.

Thinking if the fm chip is the same in other phones we can import those drivers from that ones from cyanogen nightlys download and put them in this HTC One X build...

??? Qualcomm WCN3660 dual-band Wi-Fi, Bluetooth and FM radio combo chip (WCN3660 PFN634G6 A201002)
[Spirit FM] jb789:
Mike, on your Droid 2, do you get audio through more than just the right channel, and does the speaker mode work? If not, what are the prospects for getting those items working? Thanks!
[Spirit FM] lrbpereira:
The fm lib files I toke from a Sense 4.0 Htc One X rom.

Tryed to push them on my CM9 the result mas the same...

Help in need...
[Spirit FM] doncortio:
No problem, if i have enough money, i switch to a better smartphone.