yashsingh1/xdaforums huggingface dataset:
[Spirit FM] seacamel:
Thanks for your reply.

At least I can confirm that Audio is working when set to "Galaxy S3/Note/S2_ICS"

But no BT, I tried, I think, all possible combinations with and without the wired headphones attached. But no joy.

I guess there's no chance you come up with a solution?

Cheers
[Spirit FM] tariq2kn:
Re: [APP] Spirit FM

I have figured out my problem(headset not plugged in). The app is working on all channels :)

To be specific - I can't play the 91.1, 93.5 & 98.3 without headset on loudspeaker, whereas 100.7 & 101.6 plays without headset plugged in :eek:
[Spirit FM] eicm007:
FM radio

I appreciate if someone explain to me in technical terms that:

from hardware and driver point of view, what does most of the unsupported android phones lack as most of them have FM support embedded in their wifi-BT chip.

Thanks
[Spirit FM] renight:
LG P990 - Paranoid Android 2.6-09 - BB V30a

Excuse me, have you solved for my Phone some version of Spirit FM ? :victory:
[Spirit FM] mikereidis:
Sure, I have a solution: Buy a phone that supports it. Some Sony's do it stock.

I removed it from official support, so chances are negative zero.
[Spirit FM] mikereidis:
D'oh.

If you're going to run the free version, I'll refer you to the FAQ for any future issues: http://xdaforums.com/showthread.php?t=1059296&page=447

It's not fair to paid customers if I spend hours on such a problem, that nobody else was having.

--------

This explains why stock FM apps require the headset plugged in.

Once I get reliable detection, I'll have to do the same, with a special setting to turn it off. Tried long ago, but it false alarmed too much.
[Spirit FM] mikereidis:
No
[Spirit FM] mikereidis:
FM chips have 1 or more antenna pins on them. A 2nd may be used for transmit and/or have "impedance" matched for an internal loop antenna.

Most, or maybe at least 50% of Android devices "short" (connect) those antenna pins to ground, or leave them unconnected.

Devices which have FM capable hardware connect the antenna pin to a few electronic components that connect to the wired headset jack.

So your wired headset is the antenna.

Spirit "works" on most devices with FM combo chips, but shows signal strength of 0 or negative.

You always need some kind of antenna for radio, even if it's just a few millimetres of a circuit board trace sticking out of a PCB RF shield.
[Spirit FM] B4RoNe:
External FM Module

please creates a external FM module for all other android devices :p would be great! :good:
[Spirit FM] mikereidis:
I agree it would be great. I don't have the time.

Try this app: http://xdaforums.com/showthread.php?t=2108053
[Spirit FM] mikereidis:
From another thread.

Say what ?

Those are not customers, they are potential customers. What's wrong with my response ? I cancel any order at any time on request.

And I don't think you've understood what I've done.

There hasn't been a free version on Play since about 1 year ago.

I "un-published" it for reasons explained multiple times on this thread.

I then created a Light version and initial price was 99 cents. Anyone complaining about that was complaining about 99 cents.

Just recently, I decided to not continue to sell the Light version. Only way Google provides is setting to max price. Even at $20, which I thought was high enough to dissuade, 1 non-English speaker per day was buying, despite the better Unlocked being $10.

And I've emailed the people who bought at $20, each with a translation in their own language. At least an hour of work, and I got 4 cancel replies so far. I "bend over backward" to make people happy and not feel ripped off.

I don't know what you're talking about re: $8. Feel free to explain, comment, or ask any further questions.
[Spirit FM] BleedingIris:
Re: [APP] Spirit FM

Ha... instead of making it 20$,you should've made it 200$. Or the price of the most expensive app in the play(btw ,that's the name of the app ~"The most expensive app:D "~and people are buying it and dev of that app should be happy )

But it's still 10 downloads only.. this way you shouldn't be worried about a hour extra work and emails.. :D

https://play.google.com/store/apps/details?id=appinventor.ai_peepoc8.mostexpensive

There are 3 apps now.. May be you should buy one :p

『Moved by touch™』 ?

LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E
[Spirit FM] 089man:
AW: [APP] Spirit FM

Wow, 100 Euro for the Light version in play store.

That's unserious. Or is in this price the new s4 included?

I'm on shock now.

I9100 Tapatalk 2, Rom1 Android 4.2.2 / Rom2 Miui v5 android 4.2.1, Kernel siyah v5 mcm by rush85
[Spirit FM] snalfio:
Re: [APP] Spirit FM

did you read the app info? no, i guess

Sent from Samsung I9100 Powered by Cyanogenmod 10.1
[Spirit FM] 089man:
AW: [APP] Spirit FM

Sorry, my engl. Is not good, but I see what I see.

This I think is Taktik to force the high budget unlocker version for 8 euro.

For me to much money also.

I hope cangermod will released the fm radio for free soon. Than I think is this monopol from only one apps stopped also this hell price stopped.

This is not serious only why this is without concurrent at this time.

I9100 Tapatalk 2, Rom1 Android 4.2.2 / Rom2 Miui v5 android 4.2.1 Kernel siyah v5 mcm by rush85
[Spirit FM] BleedingIris:
Re: [APP] Spirit FM

Did you at least read the previous post before posting?

『Moved by touch™』 ?

LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E
[Spirit FM] 089man:
AW: [APP] Spirit FM

Tell me, where I found the free or light version on play store?

That I see and read. Also many other users that search in play store.

The first step was remove the free version from play store, now hell price politic for the Light version that we must pay the 8 euro version only.

That's not fair to the user's.

Sorry, in Germany we say: abzocke, betrug

I9100 Tapatalk 2, Rom1 Android 4.2.2 / Rom2 Miui v5 android 4.2.1 Kernel siyah v5 mcm by rush85
[Spirit FM] superkoal:
AW: [APP] Spirit FM

Are you serious?

The free version is still available here on xda. The price is as always a tradeoff between effort and the number of buyers. As developing for various different FM chips and methods is a huge effort the price is quite fair.
[Spirit FM] 089man:
AW: [APP] Spirit FM

The most not know xda and must buy for 100 Euro the Light version. Here on op the Light version is removed and I must pay only the 8 euro version. This I mean is not serious.

I9100 Tapatalk 2, Rom1 Android 4.2.2 / Rom2 Miui v5 android 4.2.1 Kernel siyah v5 mcm by rush85
[Spirit FM] cajunflavoredbob:
Had you bothered to do a tiny bit of reading, or even read the post right before yours, you would already be clear on what has happened. Mike is being more than fair about this whole ordeal.

The free version is always listed on XDA for those without market access or those with smaller budgets.

He decided to discontinue the light version of the app. Since there are still many people using it, he cannot remove it completely from the Market. Therefore, he did the only thing that Google allows him to do, which is increase the price as high as he can, so that no one will buy it anymore.

As for the Unlocked version, that price has not changed. He has said many times before the reason for the higher price. You're paying for his support, which is top notch. The app alone is difficult to maintain across so many devices, but he does it. Any time you feel he isn't providing you with the service that you think is worth the price, he will gladly offer you a full refund, no matter how long it's been since you purchased the app.

Get your facts in order before you pop in and start making accusations. There's no funny business or shady behavior going on with this app at all. Don't be so lazy and do a bit of reading next time.
[Spirit FM] franky_z:
p990 cm10

Hi,

thanks again for your great app!!!:good:

Can you have a look at this post? Spirit FM seems to work now on CM10 on P990 but there is a problem with loudness...

http://xdaforums.com/showpost.php?p=39590580&postcount=2073
[Spirit FM] mikereidis:
Thank you very much cajunflavoredbob, superkoal, ptcpayme & snalfio .

I sympathize with the non-English language issue.

But that is why I created translations to explain what has happened to Light in the Play description for:

Deutsch (de)

Français (fr)

Español (es)

Português (pt)

Italiano (it)

Pусский (ru)

If these translations are bad, I hope someone will let me know: https://play.google.com/store/apps/details?id=com.mikersmicros.fm_li
[Spirit FM] mikereidis:
I also hope CM/cangermod will release an fm radio app for free soon.

I don't want a monopoly. I can't support all these phones, and I hope to see a more active "FM eco-system".

I'm happy to see someone working on an SDR dongle solution. It's cool, and I recommend it to those who are best served by it.

There's MORE than enough work to go round.

My monopoly on most recent custom ROMs is a reflection of how hard the work is, and to some extent, how "boring" people who do free software development find it.
[Spirit FM] sasukepl:
Odp: [APP] Spirit FM

mike i can tranlate to Polish if you want

i9000
[Spirit FM] antonio89drop:
Thank you for your quick response.

-With regard to the galaxy s3 I recorded with Spirit FM but audio recording was in mono perhaps I had to change some settings?

-Regarding the P xperia high energy consumption of the CPU is always or only during recording?

-For my Galaxy Player 5.0 I have audio output setting for audio galaxy 9100G but unfortunately nothing REC Fm. If you want I can send the log?

Finally, thank you await your response and hope you can support Xperia ZL stereo fm with recording function in the future.

good job
[Spirit FM] mikereidis:
Default for Menu-> Settings-> Digital-> Stereo is enabled. It should be stereo, unless Menu-> Settings-> Audio-> Output Mode is set to "Mono Force". But in that case, the file will have 2 channels.

I don't remember about my Xperia P right now. I don't think recording added much to the CPU load. On the P all the hard work is done by the audio libraries. Spirit just asks MediaRecorder to record.

I don't think audio methods for 9100G will work for Player. As far as I know, Player is like Galaxy S GT-I9000. Record can't work unless you can get a digital audio method to work, such as "Digital GS1".

The person with Xperia Z has not replied to me in a few days. We got it working with a test release I sent him, but with headset only, not with speaker. But even before we had audio he was able to successfully record. That should be via MediaRecorder with the usual FM value of 8.
[Spirit FM] antonio89drop:
Thank you for your answer.

-Then on the Galaxy S3 try again as soon as I will find one available and this time I'll look better settings.

-I am glad that you do not use a lot of Xperia P battery with Spirit FM.

-Regarding my Galaxy Player 5.0 I was wrong you were right.

My Galaxy Player 5.0 Audio Output from the method to the Galaxy SL/i9003.

Considering this it for Galaxy Player 5.0 you can Digital Audio?

-Sorry if I ask confirmation from what I understand with a trial version you could not run on Xperia Spirit FM Z and record setting MediaRecorder with the usual FM value of 8; I understand correctly?

On Xperia ZL (C6502) confirmation that you should work on it?

This trial version for your Xperia Z is already integrated in the version on the PlayStore?

If the answer above is NO then how soon do you think you publish that version on PlayStore?

Thank you very much! As always expect a reply.
[Spirit FM] mikereidis:
On GT-I9000, Audio-> Method = "Galaxy S ICS" is usually better. For digital, set to "Digital GS1", but you need to have one of these pseudo-files:

"/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",

I'll try to get a new version out ASAP. I tried last night but had problems with an SU workaround. Sony changed their method to enable FM audio and I imagine it applies to Z, ZL, Tablet Z and maybe others. But recording with value 8 is still the same as it's been for years.
[Spirit FM] ffolkes:
I too have built a kernel with support for SI4705, but haven't had any luck. Probably there is no chip in it, but you never know - companies do foolish things all the time.

One thing I wanted to point out, I've heard rumors that this phone might have a SI4705 (and not SI4709) chip. And I see references to Si47xx_IOC_POWERUP in Si47xx_ioctl.h. I'm not sure if that is of any use.

/dev/radio0 doesn't exist for me, but /dev/fmradio does.
[Spirit FM] mikereidis:
They do, but I've never heard of a case of a dedicated FM chip installed in a device that doesn't officially support FM.

Bean counters would RUSH to the assembly line to yank the chips and likely multiple people would lose their jobs.

It doesn't matter too much which si47xx FM chip is used, they are pretty much register compatible and only one si47xx Samsung driver is needed for 4709 or 4705.

So far no chip specific functions are used in Samsung devices by the stock FM app. But I very much hope to see a pure digital audio output in the GS4 (which might use the Broadcom BCM4335 combo chip anyway).
[Spirit FM] antonio89drop:
As always, thank you for your answers.

- On My Galaxy Player 5.0 I tried the method in Audio Output you indicated that "Galaxy S ICS" and I have tried other with all of them but unfortunately I have no audio output instead have only the method Galaxy SL/i9003.

Then with regard to the file you specified does not exist on my current kernel though, and costum and not original.

- I hope you will be able to Xperia ZL and others to make everything work properly Spirit FM.

- Then as I said about the Galaxy S3 in my previous post: Link- http://xdaforums.com/showpost.php?p=39757866&postcount=5789

Today I got to try Spirit FM on Galaxy S3 with the settings you mentioned in your post: Link- http://xdaforums.com/showpost.php?p=39758931&postcount=5790

But unfortunately Recording FM Radio with FM Spirit is with this information in mono and audio disturbed.

Since I'm doing the test using the same song and I'm sending an FM Transmitter for some results on audio recording from radio.

I am sending you the file that I got with that of P and Xperia Galaxy S3 obtained with the settings you specified (Of course, to listen with headphones to understand the problem of the Galaxy S3).

In this way I hope you can understand which parameter settings are incorrect, or genres that I set this problem.

Thank you as always look forward to a your new answer.
[Spirit FM] g4rb4g3:
First I wanna thank you for helping me :)

Second thing is that it still doesn't work :(

I tried to create the link, starting the app, choosing qsd8250 audio method, killing the mediaserver but nothing helps. I tried it with 11.06.23 and 11.06.25.

# cd /dev
cd /dev
# ls -l | grep snd
ls -l | grep snd
drwxr-xr-x 2 root root 120 Jun 26 08:17 snd
# cd snd
cd snd
# ls -l
ls -l
crw-rw---- 1 system audio 116, 0 Jun 26 08:17 controlC0
crw-rw---- 1 system audio 116, 24 Jun 26 08:17 pcmC0D0c
crw-rw---- 1 system audio 116, 16 Jun 26 08:17 pcmC0D0p
crw-rw---- 1 system audio 116, 33 Jun 26 08:17 timer

I restored my CM backup and started the CM FM radio. I found something (hopefully) interesting in the log: http://pastebin.com/qACeKFLE

Also on CM your app works :) It works with audio method sfu_sdcs only, I tried the other too but only the first one works.

I use a self compiled CM7 rom based on the nightly source. I made this one on 7th of June. This one is already based on a 2.6.35 kernel while MIUI still uses the older 2.6.32 one.
[Spirit FM] Quinny899:
All of the earlier versions worked for me. The only other thing I did was to buy the unlocker. The mute unmute method and speaker headset method doesn't work, and I've noticed something else, when I switch the audio system there and back, it overrides the phone's media volume being 0 and you have to turn it UP for it to go down.
[Spirit FM] mikereidis:
And thank you for being patient and working with me. I want my app working on as many ROM and device combinations as feasible.

OK, so the pastebin is from CM using my app or the CM app ?

I will stop giving the "ln" advice as it's never worked.

I managed to find an FM audio enable utility for /dev/msm_audio_dev_ctrl on the Desire HD. You can download it at http://zenthought.org/tmp/ensnd

I've sent the presumed author BUGabundo a PM asking if he can share the source code. Here is his post describing it: http://xdaforums.com/showpost.php?p=9344456&postcount=160

I tried running it on both of my phones and unfortunately get an "Illegal instruction" error.

Here is his install instructions:

adb remount

adb push ensnd /system/xbin/

adb shell chmod a+x /system/xbin/ensnd

And his usage instructions:

adb shell ensnd fmradio_headset_rx

adb shell ensnd fmradio_speaker_rx

adb shell ensnd disable

It's possible different names need to be used than "fmradio_headset_rx" etc, and we might be able to find them by poking through the kernel or sound libraries. The "..._rx" makes me wonder if "..._tx" is possible. ;)

Beyond that you DO have some ALSA support it appears, and I've been meaning to build a utility and try that route for several devices. I've read elsewhere that at least one device can enable FM audio via some variant of alsamixer.

One or both of these should tell us if you might already have some ALSA utilities on your phone:

adb shell find / -iname *alsa*

adb shell find / | grep -i alsa

I've been trying an alsa_amixer utility I found somewhere on my LG P500h but I get some errors.
[Spirit FM] mikereidis:
OK, much thanks. I may just have to go back 2 versions and re-apply the non-audio changes and re-assess the audio mods. I'd go back 1 version except that it appears I didn't accurately archive that version's source code.

If the toggles don't work for you then the following might not work either, but I built this one for you so I'd appreciate if you could try it:

http://www.mediafire.com/file/2i1z31251efxwb5/Spirit_FM_Radio_v110626.apk

After verifying that the default doesn't work as before, select the new Audio Method at the end of the list called "sfu_sdcs_plus". It works the same except it does a mute and speaker/headset toggle at startup.

It's an awful hack, but the best short term solution I could create, to test at least.

And yes, changing Audio method forces the volume to 50% to try and ensure anyone with audio problems has the volume up. It was coded quickly and doesn't do something nicer like restoring the volume level.

Thanks !
[Spirit FM] g4rb4g3:
Its from the CM FM radio, maybe the routing info can help you.

I'll try the tool later when I'm at home again.
[Spirit FM] shorza:
Hey Mike, any luck with getting your app to work on the Nexus S?
[Spirit FM] g4rb4g3:
I installed the tool on my phone ,executed ensnd fmradio_speaker_rx and it WORKED :).

I could listen to the radio on the speaker. But the disable command doesn't work.

ensnd disable
qsd5v2_get_device_by_name(): No such device

If I try to switch to headset without disabling I get a

ensnd fmradio_headset_rx
qsd5v2_enable_device(): Device or resource busy

Seems like there are no alsa tools on the phone:

# find / -iname *alsa*
find / -iname *alsa*
/system/lib/libaudioalsa.so
# find / | grep -i alsa
find / | grep -i alsa
/system/lib/libaudioalsa.so

Looks like we are on a good way to get the FM radio working on MIUI :)
[Spirit FM] Quinny899:
@Mike

New method works! Thanks
[Spirit FM] mikereidis:
GREAT ! :)

As BUGabundo posted "you can put disable on the end to disable it, theoretically."

So you CAN switch to headset after the supposedly unsuccessful "disable" ? Alternatively I'd guess you can start with headset first after a cold boot.

There is an audio customisation mechanism we could use to integrate the utility into the app. But it would be much better to integrate this more directly into the app.
[Spirit FM] mikereidis:
Wonderful ! Now I can take more time and better care building the next version.

----------------

To everyone else who is not yet a paid customer: I hope you can see the benefits of being a customer and helping to support me in continuing this work... :)

Ad revenue: $6.72

Total sales $5 x (11 - 2) = $45

I highly suspect the 2 returns were persons who pre-planned the return.

Thanks all !
[Spirit FM] mikereidis:
I haven't yet started seriously on Silicon Labs FM chip support. But every request such as yours puts me closer.

I've said the following to several people but have yet to get anyone involved in trying to help:

The Market app "FM TwoO" works on some Samsung Galaxy S phones with this chip. It was recently updated and now requires root on some phones. :(

FM TwoO includes a documented library that I might be able to use in my app, but I might be more likely to use the underlying Silicon Labs API. Work is also underway for Cyanogenmod FM support for the Galaxy S, and I could also use source code from that source.

FM TwoO requires a device named /dev/fmradio and I imagine the CM FM app will be hardcoded for that on the Galaxy S. Do you have any similar device name in your /dev directory ? It might be called /dev/si4709 or /dev/fm or something similar.

If you did have such a device, a command such as this may enable an app that works on the Galaxy S: (eg. stock, Fm TwoO or the coming CM app)

adb shell ln /dev/si4709 /dev/fmradio

If you don't have such a device, you need a way to create one. If it's not in your kernel by default, you might be able to find a Si4709_driver.ko or similar *.ko file for some other phone, ideally with a similar or same version of kernel. You could possibly then run something like this to load it:

adb shell insmod Si4709_driver.ko
[Spirit FM] g4rb4g3:
Nope, I can't switch to headset if I executed the speaker command already.

And the disable command doesn't work too. So I have to reboot the phone to switch the output.
[Spirit FM] idkidk:
Hi Mike,

I've try your last version:

1) UI very nice, fit perfecty the SGT screen

2) audio method: sfu_sdcs and sfu_sdcs_plus show headset, all other conf show nothing.

Bye

Idk

P.s.

No audio as usual
[Spirit FM] mikereidis:
Thanks. It's interesting that it's showing "Hdst", because that bit is specifically for "FM Headset".

So, either your audio driver just shows the device that's been set, or there IS some support for FM audio in the driver.

I'll try to get some ALSA control code running and perhaps that might show some results.
[Spirit FM] Victorino86:
Finally the paid version, just purchased ;)

few things/requests:

- I too use the notification method to move between the apps :p (but no rush on that ;) )

- the buttons to select preset station are kinda "small" in landscape :D (desireZ)

- is there a way to quit the speaker output if there's no headset plugged (most when the app is started, if not, no problem)? :D

FYI on my DesireZ running Pyromod 2.0 (modified CM7 2.3.3) i have to select sfu_sdcs, otherwise i can't swap from headset to speaker and viceversa ;)

p.s. Love the app, I can listen to the radio even without a jack plugged in, using fingers as antennas (only working for yours, not for "stock" CM radio :p )
[Spirit FM] mikereidis:
It appears that BUGabundo is not the developer and does not have the source.

So I'm reverse-engineering (disassembling) the code. I can see the syntax is:

ensnd device [disable]

So to switch from headset to speaker I'd try:

ensnd fmradio_speaker_rx disable

ensnd fmradio_headset_rx

and from speaker to headset:

ensnd fmradio_speaker_rx disable

ensnd fmradio_headset_rx

In any case I should be able to create my own utility and put the functionality directly in the app.