yashsingh1/xdaforums huggingface dataset:
[Spirit FM] cos68:
Thank you. This is really a great step forward. I am amazed by the progress of your application and will definitely buy it, when it is available.

It is working perfect on my LG 540 with CyanogenMod 7 ROM.

On my Desire with Oxygen 2.1.4 ROM it is also working perfect except for one very minor issue. It seems like the pause function is not working correct when in speaker mode. It is working perfect in headset mode, but when in speaker mode, I can pause the radio but when pressing the play button it is not starting up again. I then have to switch to headset mode and back to speaker mode to get it running again.

Besides of this very minor issue it is fantastic. Searching is now also working like a charm on both my phones!
[Spirit FM] mikereidis:
Yeah, I guess mine is a BCM4325. I run "strings bcm.hcd" and the 6th line is "BCM4325D1 26 MHz Class 1.5".

I referred you to this one on pg 33 but I don't recall if you tried it: http://gitorious.org/replicant/andr...9edc4ceb4142daf07dddc692/firmware/bcm4329.hcd

A google search for "bcm4329 hcd" produces lots of hits.
[Spirit FM] mikereidis:
Great ! The audio switching/enabling is getting a bit out of hand with 7 methods mostly blindly used in sequence. I have in mind an audio trouble-shooting and configuration mode to customise in an easier way, and give me feedback on the best way to set it up by default.

Glad to hear seek is working well for you now. Almost every release I try to fix some issue with seek, but it's never perfect, perhaps because the Broadcom chips/firmware are not perfect.

If anyone is having trouble with seek on a Broadcom phone, such as the HTC Desire HD, the following might fix it:

adb shell mkdir /sdcard/spirit_cfg/

adb shell mkdir /sdcard/spirit_cfg/opt/

adb shell mkdir /sdcard/spirit_cfg/opt/bc/

adb shell touch /sdcard/spirit_cfg/opt/bc/nosmr

If anyone has seek issues and tries this, please let me know success or error.
[Spirit FM] captmeach7:
Spirit on an Optimus

I am trying to figure out why I can't at least enable the FM on my Optimus variant (Opti S). [ They all have the BCM4325] When comparing the schematics it looks as though it is missing the antenna, but when comparing it to the other variants i think Sprint just erased those from the manual.

I have used a few different versions, 2017, 2012, and the most recent listed on the market, and on this thread. I have had no luck. I tried the bcfm way also.

I am on a CM7 ROM.

# hcitool cmd 4 1

hcitool cmd 4 1

< HCI Command: ogf 0x04, ocf 0x0001, plen 0

> HCI Event: 0x0e plen 12

01 01 10 00 04 00 00 04 0F 00 07 81

# hcitool cmd 3f 15 0 1 1

hcitool cmd 3f 15 0 1 1

< HCI Command: ogf 0x3f, ocf 0x0015, plen 3

00 01 01

> HCI Event: 0x0e plen 7

01 15 FC 00 00 01 00

The first logcat is with BT enabled and then I started Spirit. The problem is that it shows 64Mhz and won't allow me to change it and i get no audio or signal. Had to attach as docx cause it was too big as txt.

The second logcat is with BT disabled which loads to a local station and shows the signal bars full, but i get no audio.

I also attached a screenshot that shows me trying to run the new version. Plus some of my init files just in case.

I am not sure where to go from here....

Is there anything else i can try? Any help is appreciated.
[Spirit FM] mikereidis:
Thanks for your report captmeach7.

I feel pretty confident we should be able to get the app working as well as it can on your phone. But yes, it is possible the antenna or the audio aren't connected anywhere. (Edit: "as well as it can" could mean we are out of luck... :(

On my Broadcom phone I can still pick up strong signals (no RDS) with no headphones attached, but there's still a bit of circuit board that acts as a minimal antenna.

I'll look at your log files and see what I can find. Thanks !

EDIT:

OK, everything looks good with the BT off startup. 64 Mhz with the BT on indicates the frequency registers are returning 0. That's strange, given that the rest of the Broadcom Init code seems to be going OK.

There some stuff in your init.qcom.bt.txt file I haven't seen before. Stuff like:

logi "Write PCM setting..."

./bt_tool.dat /dev/ttyHS0 hcicmd 3f 1c 00 04 00 00 00

So I can imagine there are some other strange aspects to your BT setup.

Does "smartwireless.cn" indicate a Chinese supplier ?

I see no indication that the audio is working, nor anything being received. We could get a better idea if we get audio working though.

Do you know what audio chipset is in use ? Or can you point me to any source code archives for this device ? I'll look more closely at the logs when I can later.
[Spirit FM] mikereidis:
v11.06.22 is now available on the Market

I'm happy to report v11.06.22 is now available on the Market: https://market.android.com/details?id=com.mikersmicros.fm

Future releases for a while will be via Market. You should be able to upgrade from the last Market version, or any version I posted links to here.

This version will continue to operate indefinitely but as of July 1, several features will cease to function unless a paid unlock is applied. These features are subject to revision in future versions. Please feel free to let me know what you think.

This forum in intended for free apps, so I don't want to really promote my paid unlocker too much. But it is now available at https://market.android.com/details?id=com.mikersmicros.fm_unlock

Who wants to be customer #1 and first to test the unlocker ? I can't test it myself as a dev can't buy his own apps and I don't have any non-dev phones. :)

I'm continuing to reconsider what features the unlocked version should have. The price is discounted 50% until July 1, so it's $5.00 Canadian until July 1 and $10.00 thereafter.

I think these prices are reasonable, given the niche nature of the app at this time, and the past and ongoing very difficult low level reverse engineering required.

Any and all thoughts, bug reports and feature requests are welcome ! Thanks all !
[Spirit FM] imopen:
Here I am, just bought! :D

Now I'm going to verify if ads are removed and everything works fine! ;)

edit: back! ads are removed... but I had an issue on first start, with plugged earphone everything was mute. after a restart, sound is back... and RDS seems to work too :)

I've rated also your key app, 5 stars :D
[Spirit FM] mikereidis:
Wow, triple thanks imopen aka Number 1 ! :)

Woohoo ! I'm a "real app developer" now... ;)

Time for a few hours of sleep...
[Spirit FM] cos68:
I registered your application too without any problem.

Ads are gone.

Now you should just use the extra space on the screen where the ads used to be to make the screen look less compressed, thanks ;)
[Spirit FM] mikereidis:
Great !

Yeah I wanted to use the extra space before first paid release, but there's always something to add and it can always be done tomorrow. The first unlocker had a last minute bug to fix and that got priority.

Now, that frequency display at top is a little small I think, so it should get more space.

Have you noticed the numeric signal strength display at top left ? It has more resolution than 4 bars and seems to go up to 66 or so on my strongest signals. It's updating once per second now too, so it should be easier to optimise antenna position, in conjunction with audio quality.
[Spirit FM] idkidk:
Hi Mike,

Just buy the app to support your hard work!

Bye

Idk
[Spirit FM] Ivanovic:
I bought it too! Although the UI is still nothing special the RDS feature is a killer :D
[Spirit FM] cos68:
Yes, I noticed that. It is very handy when trying to tune into the more weak local stations around in my area. I like this new feature a lot. I have not seen any signal stronger than around 48 in my area and it seems like I need at least 20 to receive any RDS information at all.
[Spirit FM] idkidk:
Hi Mike,

i've try the hcd file from link, the result is the same of original one.

Or samsung had connected the chip in a different way (propetary driver is needed) or have NOT connect anything at all.

The result of strings command is: BCM4329B1 Generic FMRX 26 MHz

There is some Samsung hardware expert in this forum? :D :rolleyes:

Bye

Idk
[Spirit FM] captmeach7:
stuff

LG has released the source for this phone LS670 and it's counterparts that have FM working. They are listed on Lgs Source page. lg.com/global/support/opensource/opensource.jsp (Opt T - GSM, and VS660) The VS660 is the Verizon version. CDMA with FM enabled. At first i thought they only enabled it on GSM hardware.

The Source for my build of CM is from Zefie and it's at his Github: github.com/zefie/

I know they have a piece of code for some other bcm4325 phones with FM in cyanogenmods github, but i haven't gotten far enough to know how to implement it into a ROM.

The OptiS didn't come with a working HCItool in Froyo, but with CM7 it's working. Thanks for looking that over for me.

Edit:In the VS660 (verizon) manual it lists this under audio subsystem: WM9093ECS/R 1.71~5.5V 0W WLCSP R/TP 20P - WOLFSON MICROELECTRONICS PLC, it also has the 7627 processor.

The LS670 has the same WM9093 inside.
[Spirit FM] ghiki:
I also bought your app to support your work, VERY GREAT app (and thanks for your support via GMail [danidr...@gmail.com])

For all who wish to get "SpiritFM" working on your ROMs (integrate in it, i do it substituting the original [trash] FM.apk), you can push the apk in /system and libmikersmicros_fm.so in /system/lib, it's included in v219's zip, it may also convenient to push "sprtd" (included in same .zip) in /system/bin ;)

Once again, thanks to mikereidis
[Spirit FM] mikereidis:
Great, Thanks !

In the latest releases you probably won't have sprtd available unless it's at /data/data/com.mikersmicros.fm/files/sprtd . This is hardcoded. I could add some code that will use it in the executables path if it's not found in the normal location.

But I have some other things hardcoded for /data/data/com.mikersmicros.fm/ too, including unlocking, and this could be a problem

I'll have to think about this, but having my app integrated in a ROM may not be compatible with unlocking. I can't have someone creating a ROM for redistribution that gives everyone the pay features..

I should also mention the app probably won't work moved to the SDCard. I think that should be expected with an app like this. Removing the SDCard or connecting to a computer would kill the audio.
[Spirit FM] mikereidis:
Thanks Idk !

"Generic FMRX" sounds good and seems to imply there are firmwares without FM receive capability.

I wonder if there are some firmware files that specify FMTX too...
[Spirit FM] mikereidis:
Thanks captmeach7.

Did you say you had a schematic ? Can you post a link or send it to me ?

Perhaps your phone uses ALSA drivers for audio. Do you have a /dev/snd directory with files like controlC0 ?

After a fresh reboot, getting output from "adb shell dmesg" (or "adb shell cat /proc/kmsg") would be useful, as would: "adb shell ls -l -R /dev".

There are a few other devices using ALSA that I've been trying to get enabled recently.
[Spirit FM] CR5N:
Just installed market app and works a treat. Will set up google/market account and purchase unlocker tomorrow :)
[Spirit FM] mikereidis:
As I emailed:

Thanks.

Set Audio-> Method = "msm7x30 Custom".

Then set Debug-> msm_snd speaker and msm_snd_headset to appropriate numbers (below) and restart Spirit. Now try the speaker/headset or mute/unmute buttons a few times.

If still no audio, it may help to enable Debug-> Silent Loop and restart Spirit.

Appropriate numbers can be tried from this list:

35 name: FM_ANALOG_STEREO_HEADSET

36 name: FM_ANALOG_STEREO_HEADSET_CODEC

26 name: FM_DIGITAL_STEREO_HEADSET

27 name: FM_DIGITAL_SPEAKER_PHONE

28 name: FM_DIGITAL_BT_A2DP_HEADSET

31 name: STEREO_HEADSET_AND_SPEAKER

I don't know if digital modes can work. If they do, they may require restarting Spirit, but just changing numbers may require restart.

Regards,

Mike.
[Spirit FM] rhisendark:
i'll try and post back. thanks..

edit: sent you log. (i think)
[Spirit FM] mikereidis:
Jan 17 Free: http://d-h.st/LqR

- Moto Razr I: More audio auto settings.

- Lockscreen improvements.

- Audio-> Method set to "Galaxy S2/Note ALSA" on some new ROMs.

- Record & digital audio improvements for GS, GS2, GS3, Note, Note2, Player. Won't thrash memory and die after a while.

- Record & digital audio improvements for OneS/XL/Evo 4G LTE/Xperia T. Works OK-ish and defaults to 22K stereo.

- Record enhancement for OneX International. No digital audio.
[Spirit FM] Alucard:
Is there a way to make it work for lg p970? Please if anyone knows please do tell.....
[Spirit FM] SimpleBob:
Hello again!

I have now tried every possible combination of the settings you mentioned, restarted spirit and tried speaker/headset or mute/unmute buttons a few times between trying new settings. Still no sound. Any other idea?
[Spirit FM] mikereidis:
I have no other ideas right now.

This is the same sort of problem I've had with most Sony-Ericsson 2011 devices. The things that work on Samsungs, HTCs and LGs doesn't work on Sony's. There must be at least one other secret special trick needed, and I don't know what it is.
[Spirit FM] mikereidis:
In theory, setting Audio-> Method to "LG3 / TWL4030" should work, but it doesn't.

Either one P970 or P990 was reported working at one point recently, but that person couldn't reproduce this state.

I think it works on stock ROM.
[Spirit FM] mikereidis:
Please post here instead of Private Messaging.

The codec_reg "file" is a "pseudo-file", created by the kernel, not a normal file. Writes to it are used for control, for example writing 80 to register 18 with this data:

18 80

This is for rooted Galaxy S GT-I9000 and the YP-xxx Galaxy Players only:

The Jan 17 test release can use either of these 3 values automatically, instead of just the last one with Jan 11:

/sys/devices/virtual/misc/wm8994_sound/wm8994_write

/sys/devices/virtual/misc/voodoo_sound/wm8994_write

/sys/kernel/debug/asoc/smdkc110/wm8994-samsung-codec.4-001a/codec_reg

The 3rd is used on most ICS & JB ROMs/kernels.

The 2nd is seen on a CM7 from August 2012.

I'm not positive, but I think the first may be available on stock ROMs.

Switching to digital audio is easy. Just set Audio-> Method to "Digital Auto" or one of the specific Digital methods (near the bottom) and restart Spirit. In some cases it might help to fully cold reboot the phone.
[Spirit FM] Nexxusel:
okay, but do I have to change any settings in Debug too? or leave default when installing Spirit
[Spirit FM] Alucard:
Yeah it does not work on 4.1.2,oh well thats lg.
[Spirit FM] mikereidis:
No. Default is best.
[Spirit FM] mikereidis:
Please post instead of PM.

Can you confirm an issue someone else reported ? He said that when a frequency is entered manually, the frequency number display and the slider at top don't update. They DO update when using the up and down tuning buttons, or the slider at top.

To enter a frequency manually, tap the button showing "88.5" or current frequency, enter "99.9" or whatever and press OK. Does the button change to "99.9" and the top slider move ?

Here are the current, as of Jan 17 release, automatic settings for Razr I, unless over-ridden:

Debug-> Audio Focus = "Enable". This tells Android that Spirit is using audio, even when in background. It also causes Spirit to be notified when an audio interruptions happens or is finished. When notified, Spirit will mute and later un-mute FM as needed.

This was set to Disable in previous releases, but was set to Enable in Jan 17 because it fixed a reported problem: Audio notifications caused FM audio to stop, requiring mute/un-mute.

Debug-> Power Restart Media = "Enable". This might fix some problems that otherwise require a reboot, but would be better disabled. It attempts to restart the entire audio system when FM is turned off, but can only work on rooted phones.

Debug-> Silent Loop = un-checked and off.

Debug-> Play Audiotrack = "Enable". If possible, it may be better to disable this. Either this, or Silent Loop, is needed in some cases for background volume control to go to FM, instead of ringer. In some cases, it's needed to keep the audio chip powered.

Debug-> Suppress System Sounds = "Enable". This turns off system sounds when FM is started, and restores previous state when FM is stopped (unless Spirit or phone crashes). It seems to be needed, otherwise FM stops when system sounds are triggered.
[Spirit FM] mikereidis:
Jan 18 Free: http://d-h.st/5NE

Also on Play.

Pretty much the same as Jan 17 test release, with minor cleanups.

Now onto Spirit2, taxes, life and house maintenance. :)
[Spirit FM] pleomaxell:
I tried your Sipirit FM Unlocked version on Xperia Sola and it is working great. I can even record anything from any channel from the "Test" Menu.

When I selected "mp4" as the file extension, it saved the files like this:- fm_2013-01-17_09-42-37.167+0000mp4

If i just rename the file to anything.mp4 i can play it with any player.

BTW are you going to add a record/stop button in the future because this is honestly the best FM Radio player in the world for android?
[Spirit FM] Nitemare_real:
On stock ROM works, on CM 10 doesn't work, on MIUI not tested (by me)
[Spirit FM] mikereidis:
Just start with the period in the settings, 4 letters: .mp4

It's MP4 AAC I guess, so next release will make ".mp4" the default extension.

The Jan 18 Unlocked version provides "Record" and "Record Stop" via the Menu & Wrench buttons but I forgot to enable it for Sony. Should be fixed next release.

You can also set the wired headset media buttons for record, which also applies to lockscreen buttons, and can apply to the on-screen seek or frequency buttons.

Yes, I know we all want a red dot button, and a running timer, and dozens of other little niceties and audio, improvements, but this is "experimental" and will be nicer in Spirit2. :)

Not to you, but everyone: So since I just released a new version, please nobody ask when the next will be available. If you just can't wait and are a customer looking for an interim build, email me.
[Spirit FM] novadacalo:
Hi, Does anyone know whether it is possible to configure spirit fm for a lg p940 on cyanogenmod10?

I tried every audio option with no luck...
[Spirit FM] Angelcho:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

can this run on LG e400 with cm9. It has an MSM7227 qualcomm chipset
[Spirit FM] mikereidis:
No to both. :(

LG's are pretty much unsupported / unsupportable on ICS+ custom ROMs, except for the old Optimus One P500.

I have an old P500 and even that is showing it's age now, with volume related audio issues on many ROMs.
[Spirit FM] Angelcho:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

I'm not so good in programming but I think that the custom rom kernels don't support radio. I'll try spirit on my friends e400 who has rooted stock rom, btw can this app stream radio ?
[Spirit FM] mikereidis:
Generally Spirit can access the FM chip. For the E400 it's a Qualcomm Tavarua FM chip, similar to the newer iris chip I support.

The problem is the lack of a known method to enable FM audio.
[Spirit FM] bsd350:
Still don't see RDS is working. I have PL:0 on display everytime on all stations. After abt 20-30 seconds pl may disappear, but still nothing.

If af mode is enabled, i don't see anything new except eg af:0 r:0. It's in russian region (and settings are russia in band settings).

And second, still may sound sometimes be stoped after i turned on an application spirit fm after 1 second. So i have to push play button 2 times. Then all works continiously.

i have: gt-9100g, CM10.1, unlocked paid version.
[Spirit FM] maxwen:
Hi

Should it work on HTC One X+ International?

Cause i tried it without luck.

Just asking because in Settings - Method it says HTC One X/X+ Int.

I know it work on the X but what with the X+?

Thanks for your great work!

max
[Spirit FM] mikereidis:
For the sound, I don't understand exactly what you mean. One person with audio issues solved them by disabling Debug-> Silent Loop, then enabling it.

If a system sound is killing audio, Debug-> Suppress System Sounds may help.

The RSSI and RDS problems are due to the CM kernel using a bad FM driver. And there aren't any 9100G alternative kernels available for CM, except from codeworx.

A request was opened with the CM dev to "align" the kernel driver to be the same as for every other CM kernel on S/S2/S3/Note/Note2 etc. But the dev does not want to do that and he's ignored the last few emails I've sent him, including when I sent him the copy of Spirit he requested months ago.

I've noted that CM10.1 on the GS3 I9300 uses the "same" si47xx driver, but a working one. Hopefully, maybe at some point that will trickle back into the 9100G builds.
[Spirit FM] mikereidis:
I think it works on stock OneX+ International, but not sure.

So far, for at least one person, we weren't able to enable audio on his custom ROM.

You can try, as he did, Audio-> Method = "HTC OneX/X+ Int ALSA", which works on my X, as well as the default above it without "ALSA" in the name.

It seems pretty strange because the audio system seems the same, from an ALSA interface perspective. But a BIG difference between X & X+ is the FM chip. X uses TI and X+ uses Broadcom. (And XL/LTE Qualcomm, LOL.)

The Tegra (and Realtek audio ?) chips are a big mystery. X might use analog audio and X+ digital, or vice versa. Who knows.
[Spirit FM] fermintm:
Re: [APP] Spirit FM: Broadcom,Texas Instruments,Samsung Silicon Labs & Qualcomm FM ch

Hello! Works on Zte skate model or orange montecarlo?

Enviado desde mi ZTE Skate usando Tapatalk 2
[Spirit FM] maxwen:
I am a kernel dev for the HOX+ and normally run AOSP roms

where it doesnt work with any of the X+ audio settings

I have tried it on stock without success but only the "non" ALSA version

I will try the ALSA version later and report back.

I might be able to help you a little bit. There are some

diffs betwen the X and the X+. Only looked into it shortly

but AFAIKS from the kernel side it looks correct. So it is

enabling the correct devices. I suspect a DSP issue since

those are differet between X and X+

max
[Spirit FM] Slovenec:
First of all great application. I just wanna comfirm that this app works on motorola xt615 aka motoluxe (stock, rooted).
[Spirit FM] mikereidis:
I don't know, but probably not.

Free version to try: http://d-h.st/5NE

If it works, it works. If it doesn't, it doesn't.