yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Thank you and thanks to all: I'm up to 12 uncancelled sales now. Not bad for a start I think.

The notification selection is back now, but has that silly bug where multiple app screens are open.

It's very good for me to know what features are being used or not. Eg. so far nobody has complained about the loss of the tune up/down buttons.

I agree and I'll see what I can do about the small landscape mode presets.

Yes, on most devices I think, unplugging the headset switches the audio to speaker and re-plugging switches it back automatically. This was an unexpected feature (on CM anyway) by default that I thought might be a good feature.

I'm not aware of any way to disable this automatic switching to speaker, but I should be able to add code that detects this situation, and if so configured, mutes the output. If anyone else would like to see this feature please let me know. I've accidentally unplugged my earphones and heard a blast of noise from my pocket. I presume that some might like this feature to avoid making unexpected noise where quiet is required ?

I'm surprised that so many people bring up the antenna-less operation, and I'd guess that also means that many people are using the speaker mode.

I should mention that in the last release or two, selecting speaker mode automatically switches the radio to Monophonic. This is based on the assumption that even if there are two speakers, the separation is insufficient to be noticeable. Perhaps I could make this configurable for the sake of future tablets with decent separation. I presume external stereo speakers (like I use for testing) will be wired to the headphone jack and will thus appear as if they are headphones.

And for those unaware, mono mode is less noisy than stereo mode when the signal is weak (especially with no external antenna.)
[Spirit FM] shorza:
Thank you for your help. It is my girlfriend's phone and is unrooted, I'm sure she would like to keep it that way. I will download FM twoO and see how that goes then report back.
[Spirit FM] mikereidis:
To save you some trouble:

I don't think Fm TwoO will run on a Nexus S unless it's rooted and a device driver is loaded. Even then I can't be sure as AFAIK nobody has reported success doing this.

There is a compatibility list near the bottom of this page: http://mmbtools.crc.ca/content/view/54/79/

This is the main page: http://mmbtools.crc.ca/content/view/52/77/

And on THIS page is the first known example of a federal government department (Canada) advising on how to root a phone, LOL. :D http://mmbtools.crc.ca/content/view/55/33 /
[Spirit FM] Spyr0s:
Any news on MIUI 1.6.24 support?
[Spirit FM] mikereidis:
I have VERY little information on the Player devices. Maybe some are more like the Galaxy SL. It has OMAP3630 and presents a very similar small set of ALSA controls.

If it has WM8994 like Galaxy S, then maybe there is a kernel with Voodoo sound that works.

Send me a debug log and I can look.

I have to go but will try to answer other issues later.
[Spirit FM] mikereidis:
Both of these files are in 2 channel stereo format, with regard to the file structure and info.

The Xperia P file sounded mono and looking at the waveforms showed Left & Right pretty much matching. Converting to WAV showed a close, but not exact match, perhaps due to MP4 compression.

My Xperia P with stock ICS recorded stereo OK.

Do you get stereo in the headphones ? Weak signals switch to Mono. My experience with small FM transmitters is very weak signals and lower quality audio.

You can try re-booting the Xperia, without using the microphones, doing any recording, or letting any app auto-start that does this. I've heard Google Now or whatever speech input might cause this, even without being run. And make sure you have a strong signal. I don't have a Mono/Stereo indicator in Spirit still, but the debug logs should show mono/stereo status I think.

---

The Galaxy S3 file had only low level noise on Right channel, with clipped audio on Left.

The stock Samsung FM app sets volume midway to 7 out of 15 when recording and keeps it there. Spirit doesn't do that yet, so manually setting volume to 30-50% may eliminate the clipping.

My GS2 is stock right now and stereo record to MP4 works OK. GS3 is not stock now but previous tests were also OK.

You can look for the same things as for Xperia P. GS has a similar audio chip and gets stuck in mono if anything inputs in mono after reboot.

If GS3 is rooted, you can set Digital-> Method to PCM, or better yet, set Audio-> Method to "Digital Auto". This uses my low level PCM code and writes WAV files.

----------

Xperia P CPU usage w/ screen off: (I don't even know if "top" adjusts for 2 CPU cores.)

Stock Xperia Z app with visualizer off: 7%

Spirit with RDS off: 5%

Spirit with RDS on: 12-15%

Spirit with RDS on & recording: 25%

These tests were with equalizer off. I initially tested with the Play app "Equalizer" set to on, with no effects enabled and saw around 40% CPU. I turned it off and there was no audio on stock app or Spirit.

Now that I've re-booted, enabling equalizer seems to have no effect on CPU.
[Spirit FM] mikereidis:
Spirit Free 2013/04/04: http://d-h.st/VTM

Also updated on Play.

- For "Device Not Supported !" on Huawei and ZTE see: http://xdaforums.com/showpost.php?p=39935830&postcount=5803

- SU enhancement: Devices that only need permission sets only need one SU request per reboot. Others should be reduced. Hopefully this also fixes phantom SU requests when the service is unexpectedly restarted.

- World band preset names defaults to Program Service name if set.

- Canadian call letters, eh ?

- Help, About etc. updates.

- Xperia Z audio via new Audio-> Method setting = "Qualcomm Intent". May be useful on other Qualcomm based devices, including Xperia ZL and Xperia Tablet Z. Not sure if speaker works.

This change to Sony's FM app / API makes me wonder if they are backing away from the ST-Ericsson proposed Android FM API. The tuner part of the API is still used, but the audio part isn't.
[Spirit FM] triepix:
Is it possible that fm would work on oppo find 5 which uses a WCN3660 chip? I've tried running spirited and haven't had any errors while doing so but no sound is coming trough. Since it uses WCN3660 chip, shouldn't it be possible?

other hardware specs: tinyurl.com/ckqgt4c
[Spirit FM] Herc08:
Just confirming

I just have to confirm that this works on the evita device on the luiquid smooth rom running 4.2.2. instead of headphones, i use my magic bullet and adjust the wire as it serves as the attenna. the only thing i wish it had was a presistant notifiaction. it's cool though, i can just use the recent apps. this is AMAZING work. thank you so much. it is nice, simple, and works. no more iheartradio (at least for the local station)
[Spirit FM] mikereidis:
If it's rooted and uses a WCD93xx audio chip setting Audio-> Method to "HTC OneS/X LTE ALSA" may work.

But I'm in the process of preventing Spirit from working on anything except supported phones. That might sound "mean" but I've gotten very tired of seeing so many debug logs from pirates in China every night.
[Spirit FM] mikereidis:
Persistent notification is on the paid versions.

I've never heard of "magic bullet" before. I presume it's something short plugged into the headset jack.
[Spirit FM] mikereidis:
EDIT: I've made an exception for Huawei Ascend G300 aka u8815 or hwu8815 in an April 5 release now on Play.

I've had 2 email reports today that Spirit won't start and shows a quick "Device Not Supported !" popup ("Toast") message.

Both are using Huawei phones and recently purchased Spirit. I find this maddening because I've spent dozens of hours disabling un-supported devices on Play, but still Google allows some to purchase. Google makes a bit more money and I get stuck with the support headaches.

Today's April 4 release modified the unsupported device identification code, because there are some ROMs which misidentify the manufacturer of a supported device. So at present, if capitalized manufacturer name starts with "HU" or "ZT" (Huawei and ZTE), Spirit will not start.

Again, it may sound "mean" to blacklist devices or OEMs, but the huge number of debug logs I get from these phones from Chinese pirates is "mean" to me and the users of supported phones.

This is more or less my email reply:
[Spirit FM] Herc08:
oh k that makes sense. magc bullet is speaker used to make the sound louder...only use it as the wires works. but this is an awesome app...small, simple, and works...cant get any better than that
[Spirit FM] mikereidis:
US Galaxy S4:

AT&T SGH-i337

Sprint SPH-L720

Thanks to someone who shared Voodoo Reports from early builds of these devices, there is IMO insufficient evidence to indicate intentional FM capability.

IE, unlike the GT-I9500, I have no impression of official FM support, which has never been surprising for US variants of Galaxy S & Note class devices.

There are some "vestigial" signs of FM, but they are intended for the Qualcomm WCN36xx FM/BT/WiFi combo chips which don't exist on these devices. These devices use a Broadcom BCM4335 FM/combo chip, like the GT-I9500.

It's still possible these devices are FM capable when rooted, but only if the needed FM antenna pin connection is made. And I still think that is doubtful, but the prospect of carrier deals with US broadcasters carries the hope of future enable-ment.

My opinion that GT-I9500 will have stock FM, and with voice control, is not changed. The GT-I9505 International LTE variant remains to be seen.

From my previous March 27 post: http://xdaforums.com/showthread.php?p=39615827
[Spirit FM] danielalarcon:
Galaxy S4 follow up

I have been following the S4 discussion if it will have or not FM support, at least the I9500 variant, for the record, I live in Guatemala, Central America, and the FM support in my previous Nokia E71, N97 mini, Galaxy S, Galaxy S2 and currently Galaxy S3 have always been important to me, at least in my country, the Galaxy S series has always had the FM capability enabled. I know, FM shouldn't be a deal breaker, but it could be showstopper for me.

Anyway, in order to clear thoughts, I will double check this with my Samsung contacts that release products here to clear this out and come back with news about it.
[Spirit FM] mikereidis:
Sure it should, if it's important to you.

Pretty much everyone following this thread finds real OTA FM important, and I think nobody here will tell anyone they should use streaming. :)

I look forward to any new info.

Again, for the record, I'm absolutely convinced the GT-I9500 Octa will have FM capable hardware, even if some carriers may not include or support the stock Samsung FM app.

The stock Samsung FM app will also have voice control, and it's the voice control resources in a system dump that convince me of this, and that there will be a stock FM app. Never before has an FM app supported voice control, so these text strings can't be "vestigial". At worse, they would imply FM was considered and plans later dropped.

As always, I or anyone could be wrong, and I'll be happy to learn that. But of course would be very unhappy about no FM. OTOH, if the hardware is capable, but there was no stock app, Spirit sales would do even better. :)
[Spirit FM] R2D2_NZ:
Naturally I'm hoping for FM capability in the S4 but if it's not capable then it's absolutely a deal-breaker for me. I hope Sammy did the right thing.
[Spirit FM] mikereidis:
Startup bug in March 4 & 5 releases on Broadcom based devices.

Also maybe an audio problem on HTC OneX LTE, OneS, Evo $G LTE and similar.

I'll put out a fix tonight.

Turning Bluetooth off may fix the startup issue on Broadcom devices such as most older HTCs.

If anyone is wondering, I added code that verifies each SU command was successful. But it interferes with cases where a command is started in the background to keep running.
[Spirit FM] antonio89drop:
Hello on the Galaxy Player 5.0 if you want I can send you the debug log but before you do I have to set the debug log of things in specific type audio or other method?

---------- Post added at 02:37 AM ---------- Previous post was at 02:36 AM ----------

Hello, sorry if I did not answer right away but I've been busy and I wanted to rispodere after doing the tests.

Then:

- With regard to 'Xperia P I'm fairly certain that the problem of' audio is only due to some program with audio input. Anyway, for me the audio recording Xperia P is ottimo.Ti really wanted to ask if it's your assumption that Fm Stereo recording functions the same way on Xperia GO've confirmations by users?

- I'm glad Xperia P has low power consumption thanks to the data provided.

- On the Galaxy S3 at the moment unfortunately I could not test everything you told me but it seems that is not the same as the Xperia P and even volume.

As soon as I can I will try:

If GS3 is rooted, you can set Digital-> Method to PCM, or better yet, complimentary Audio-> Method to "Digital Auto". This uses my low level code and writes PCM WAV files.

You have confirmations from users of Recording FM Radio in Stereo is error?

Been using the settings for other users Registration Fm Stereo FM with Spirit?

- Xperia Z / ZL I tried your new Spirit FM app on Xperia Z is working and has benessimo Registered in Stereo FM radio also without any problem.

Although in this case after several recordings with stereo sound I had experienced with mono sound although still present on both earphones but without the stereo effect.

One clarification that I noticed and receiving Fm a little low and audio here and not just clean but with a little background noise is not always present.

- With regard to the Galaxy S4 my stepping stone to all of you who think that the FM radio is essential and that it can not be replaced by Radio Streaming (for me a shame) but not by the standard DAB.

I hope not confirmed the absence of the FM Radio or at least the 'Spirit of inactivity Fm on Galaxy S4 will remain waiting to see the' evolution of each FM-S4.

If Galaxy S4 does not support the FM radio I do not think I'll buy it as the next smartphone to buy I'll move on Xperia ZL Model C6502 because it is the only one with the barometer.

As always waiting for your reply and forgive me for venting final on Samsung Galaxy S4.

Thank you very much.
[Spirit FM] mikereidis:
Spirit Free April 6: http://d-h.st/phs

Also on Play.

- Fixes a startup error when Bluetooth is on, on rooted Broadcom devices such as most older HTCs. May also fix an audio issue on Qualcomm devices such as HTC OneX LTE/OneS/Evo 4G LTE.

- Audio methods for now un-supported devices are removed.

These devices are not enabled on Play and mostly haven't been for some time. But this change will likely impact some people who's Play app or system config doesn't seem to enforce device restrictions.

At this time I can only say these device are not officially supported anymore and need to stick with an old version of Spirit. I'll consider exceptions if the need is common enough. Queue Spock's line about the "needs of the many..." and note that code cleanup is important, particularly since Spirit1 is still advancing and Spirit2 is in a holding pattern.
[Spirit FM] mikereidis:
Send a log. Best is to use all default settings, so clear app data first, or un-install and re-install.

I don't recall Go record confirmation, but Sola and my P are OK. I think that U/P/Sola/Go all have the same "core hardware", but there might be some differences. A difference in microphones could impact this.

It may be useful to indicate your firmware version. I've never updated my P beyond original stock ICS.

I can confirm it works fine recording stereo for me, and I don't think I've had reports about this. But not TOO many people are using or perhaps even know about the recording functions yet.

Are you stock & rooted, and with which firmware version ?

....

I'm still waiting to see DAB and/or HD Radio on a smartphone. Maybe with Software Defined Radio and dongle...
[Spirit FM] danielalarcon:
Some update to end the week, according to good contacts, the 9500 doesn't come with an fm app, as we hope, It may only be missing the app.

Anyway, someone that has a prototype in hands will test the spirit free app I sent him and give me an update about the results next week. :)

Mike, anything else that I can get to help sort this out?
[Spirit FM] mikereidis:
If you've read my posts, especially also the links to previous posts, you'll see why I'm very much convinced the S4 GT-I9500 will ship with a stock FM app with voice control, and perhaps even RT+ and maybe even digital audio (BT at least): http://xdaforums.com/showpost.php?p=39949737&postcount=5805

By "ship" I mean from at least some carriers/vendors. Some sources may not ship with an app. Heck, some might have a jumper to hardware enable/disable FM.

Nobody has a software load yet that can even be called a "release candidate" I think.

I'm pretty sure there are Samsung software devs furiously trying to finish the stock FM app. The new features in the app, and the move to a BCM4335 FM chip for a flagship device are likely factors in the delay.

Please give him my email mikereidis@gmail.com or just have him send a debug log and I'll get his address. I can send you or him the latest test release of Unlocked at any time.

For the debug log, use Menu-> Test-> Email-> Logs and after 20 seconds or so press Send.

If someone has root, I'd bet I have a good chance at proving the FM will work within 48 hours, if they can do some back and forth 2-4 times or so.
[Spirit FM] rakina:
will this work on karbonn s1 titanium in INDIA
[Spirit FM] antonio89drop:
Thanks for the information but unfortunately in my country is not for sale.

---------- Post added 7th April 2013 at 12:12 AM ---------- Previous post was 6th April 2013 at 11:23 PM ----------

For

mikereidis

Hello

- On the Galaxy Player 5.0 will inform you that a few hours ago I sent you the log as you requested. Aspect of your information regarding digital audio and recording from FM radio if it is possible?

Method and the audio output?

- But today I had a way to use for a few minutes Xperia Go with Android 2.3.7 in the few minutes I tried to test the operation of the Spirit Fm about it but to my great surprise I noticed that Spirit Fm on Xperia Go on trying a Record from FM Radio with Spirit FM (with the settings used to Xperia P) Xperia GO I do not generate any type of file!

Why Spirit Fm I do not generate any file not as other cases that it generates a file with byte 0 but in the case of Xperia Go does not generate its own file.

This may be due to what?

- The test on the Galaxy S3 GT-i9300 has been carried out on stock 4.1.1 rom and stock kernel.

Finally, according to the information in your possession what should be the settings for Spirit FM FM Radio with Recording from Galaxy S3 in stereo?

As always I await your prompt response.

Once again thank you very much and good work.
[Spirit FM] mikereidis:
I sent you a new version that uses /sys/devices/platform/soc-audio.0/codec_reg . If it doesn't work with Audio-> Method set to "Digital GS1" then digital audio is likely not possible. A custom kernel with Voodoo sound may work.

All Spirit does on Sony devices is the usual MediaRecorder stuff using 8 as the source number.

Does the GB ROM use Radio3.apk for stock FM ? If not, an ICS stock ROM might be needed. I still have very little experience with Sony phones.

If the default settings don't work, then I don't know what your problem is.

In most cases, especially on popular devices, default and "Automatic" settings should work fine on Spirit in the last 6 months or so.
[Spirit FM] Billy Bounce:
Desire HD workaround

Hi Mike

First of all, great app. Thanks for developing it.

There was a small problem with my HTC Desire HD running custom non-Sense ROMs ( I'm on Android 4.2.2 ( cfx.SR12) right now )

Listening to FM Radio I wasn't able to hear incoming call ringing. The radio stream paused, the ringing notification was visible , but no sound. Answering to that call worked, but I wasn't able to hear caller's voice either. There was a need to reject a call, go back to Spirit FM to turn it off and re-call a caller .

The workaround that seems to solve the problem was to change 'Debug->Auto Focus' from 'Auto' to 'Enable'

Hope this workaround would help to other Desire HD users having similar problem.

Thanks again for your great app.
[Spirit FM] mikereidis:
You mean 'Debug->AUDIO Focus'.

I don't understand that unless you have a really old version of Spirit.

Auto converts to Enable, except in 1 case: when using the OEM proprietary high level APIs found on stock devices and needed when you don't have root/SU. (Motorola Razr I is an exception, but no longer supported.)

I can't imagine why this wouldn't work for you. I'd be interested in a debug log if you can set it to Auto, reboot, start Spirit, and create some audio notification or ringing. Use Menu-> Test-> Email-> Logs and press Send after 20 seconds.

I know that several devices, including DHD, don't ring or do audio notifications properly in many cases. That's a sad side effect of the problems the AIC3254 DSP creates, when the audio library doesn't know FM is running.
[Spirit FM] mikereidis:
Recording bug:

Some time after the March 11 release, the /sdcard/Music/fm directory is no longer automatically created.

This prevents recording from working, unless that directory had already been created.

This is fixed for next release. Workaround is to manually create the "fm" directory under /sdcard/Music .
[Spirit FM] GordonFreetux:
Hello there,

is there an option to show the PI Code in Hex instead of Dec? This notation is the preferred one in Europe.
[Spirit FM] mikereidis:
No, but I'd be happy to change to hex if most Europeans would prefer that.

Is there some reference you can point me to that hex is preferred ? I'm surprised I haven't had this request before if it's preferred.

So, capital letters and like these ? :

0001

ABCD

123F
[Spirit FM] GordonFreetux:
Thanks for your reply. Suprised you didn't know this. Seems RBDS shows it in decimal and RDS in hexadecimal, also PTY differs a bit.

I'm a radio enthusiast and do a lot of FM DXing, so the PI Code is my best friend to identify weak stations from far away. At first I was confused about the PI in your app but I just have to convert it. ;)

New members must have 10 posts to link URLs. I send you a private message with examples.
[Spirit FM] mikereidis:
Spirit Free April 8: http://d-h.st/vfN

Unlocked and Light also updated on Play.

Just small fixes, that only apply to Unlocked really:

- PI display now in hex (4 digits: 0-9 & A-F) and some minor fixes for UI-> Station ID.

- Recording directory automatically created, default: /sdcard/Music/fm .

- Digital-> Method = "Auto" now defaults to PCM when device is not Sony and Spirit has SU. Otherwise MediaRecorder is used (which is only for recording; digital audio modes always use PCM.)

I changed this because otherwise a rooted GS3 with an XXEMC2 stock JB 4.1.2 ROM would use MediaRecorder. This "works" but with only one channel and volume must be set to 4 ticks or less to avoid clipping and distortion.

I will likely have to adjust this further as some GS2/Note audio methods aren't compatible with PCM and some rooted Sony devices may require PCM. For now, the Digital-> Method setting can be modified if needed.
[Spirit FM] mikereidis:
I see this GS3 problem now that I've loaded I9300XXEMC2_NeatRom_Lite_v4.0.zip, which is based on an official shipping stock JB 4.1.2 XXEMC2 ROM.

I don't think I saw this problem on leaked JB builds or official ICS builds.

I've "fixed" this in the April 8 release by defaulting Digital-> Method to "PCM" when it's not a Sony device and SU is available. The low level PCM code works OK for me.

Using the MediaRecorder method, I saw left channel was volume sensitive and volume needs to be at 4 ticks of 15 or less to avoid clipping. Right channel was just noise.

I'm not sure I can do anything about this when SU is not available. The problem is in the audio libraries.

I hope they've fixed this properly in the GS4 GT-I9500... Which we still don't know if it even officially has FM yet...