yashsingh1/xdaforums huggingface dataset:
[Spirit FM] mikereidis:
Probably not. The free version is linked on Play and in post 1 of this thread if you want to try though.

The only Sony/E device that seems to work is the X10 mini. I setup the Google Play compatibility list to only enable that one SE phone.

Unfortunately Sony sells so few devices that I'm probably not going to spend any more time on them than the 200 hours or so I already have.

And, although Sony has released some FM app source code, I see that I will never be able to write an app that works on stock, un-rooted devices, because I don't have access to the secret keys Sony uses to sign "system apps".

The "excuse" is security, labelling FM as "dangerous" which is very silly, IMO.

And that's a bit of a shame too, because Sony is one of the few (only ?) companies to have a device lending program that small devs with a credit card can use, without having to go to their offices in Cali.
[Spirit FM] mikereidis:
Thanks njitram2000.

And BTW, so far you are the ONLY person to send me a debug log for the SGS2 since the working "Galaxy S2 Test" method 36 hours ago.

Despite almost 1500 downloads of the Free version and 50+ sales yesterday !

I would be interested in seeing more logs, especially if they can capture what happens when phone call ringing fixes the FM.

Hmmm, when you change ringer volume, you hear ringing. Does that fix it ? I'm wondering if some hack to make a quick ring would help.

And I'll presume that just hitting Mute/Unmute doesn't fix it, unless I hear otherwise.
[Spirit FM] njitram2000:
I don't know what you're referring to with "when you change ringer volume, you hear ringing." I just called myself with the hard line and hung up before I was charged.

Hitting mute/unmute does exactly that but nothing more. Pressing the button to switch to speakers and back causes a short hiccup in the sound but then it continues to play through the headphones.
[Spirit FM] cba1986:
Well, back on the road. I just replaced the damaged speakers. Was hard to found thoug.

I will keep reporting any bug that i can find.

Sorry for the OFFTOPIC.
[Spirit FM] mikereidis:
Home. Menu. System Settings. Sound. Volumes.

Now adjust "Ringtone & Notifications". You should hear ringing until you press OK.

Or you can change the ringtone, and that should trigger test ringing.

There might also be a test menu accessed with a "#..." number sequence on the phone dialing keypad. Perhaps there's a ringer test there.
[Spirit FM] mikereidis:
Not off topic if it's about replacing Galaxy S speakers.

What do you mean by hard to find ?

Finding a speaker seller or finding the speaker inside ?
[Spirit FM] cba1986:
Both. hehe.

In my country there certain problems finding spare for this phone It's related to currency and importation problems.

Also spares for cellphones are specifically expensive, for example for this speaker i paid about 34 dollars.

What it matters that i have a new buzzer now. BUt from now on i wont hear radio with the USB plugged. Just in case.
[Spirit FM] mikereidis:
Ooh, yuck. Sorry to hear about that.

I was considering buying a batch myself, and selling or giving away, but there's tons of problems with that, including perceptions.

And every hour I deal with buying/selling/shipping issues is an hour that could be spent trying to find the solution.
[Spirit FM] serguma:
I am using SGSII with Hydrog3nICS (AOKP/CM9 Hybrid) and the 13rd April version (free) works fine. The first time I start it the sound goes through the speaker, but after I plug my headphones it switches fine (it turns my Poweramp music on too, I have to pause it after, maybe because of that it works without receiving any call?).

I would love to send any logs, but I don't see how I can do it, tell me if you want :).

Thanks for that awesome program, I'm a little tight on money right now, but I hope I will be able to buy it in the future!
[Spirit FM] runedegroot:
Hello, i got s5660, galaxy gio, and i use audiomethod msm70x si5500 and i cant lower my volume. Speaker almost died.. only one that worked for me. I use a rom with own audio lib, but its weird.

When volume all the way down, my speaker still gets raped. Standard cm setting or samsung doesnt work. I use cm9 on s5660. Please pm me or send me an email if you know how to fix this.
[Spirit FM] coloxim:
Wow.. When you Fix totally ill buy it.. Thank you so much

Inviato dal mio GT-I9100 usando Tapatalk
[Spirit FM] mikereidis:
Set this to Enable: Menu->Settings->Debug->BC 4330/20780. Thjat should fix volume control.

Send me a log and I can see what your formal device name is, and I can make this automatic, unless CM9 uses a really bogus device name.

Log sending is hidden on free. Hit the Frequency button, enter 7 and OK, and after a few seconds. enter "GT-S5660" in the email text and press send.

For volume being too high, set Settings->Audio->Volume Scale to a number lower than 100. Perhaps 20 would work OK.

I hope to find a better solution soon for volume too high on Galaxy 5 series.
[Spirit FM] mikereidis:
The "trick" that seems to work best is to make the phone ring at least once after each reboot.

If somebody can verify that making the phone ring by setting the ringtone, then I can make a quick hack that does this automatically.

I don't have an SGS2 yet, and we are lucky to be at this point, so please be patient as the bugs are worked out.
[Spirit FM] mikereidis:
Totally ?

Some people might define that as 1000 new features and fixes. And then add another 100 every month.

Absolutely no non-trivial, real world software is totally bug free. Even the military and space program or NSA stuff.

So, no software is ever totally fixed. :D
[Spirit FM] mikereidis:
April 15 Free: http://www.mediafire.com/?e8llvkojcxe285n

Not on Google Play. Email me for other versions, but feel free to test with the Free version first, without possibly messing up a working Light or Unlocked.

- Tested very little. Bluetooth detection and handling code changed so if any problems on Broadcom or TI chips, try toggling Bluetooth power.

- Subtle changes for "Galaxy S2/Note" audio method, now near top of list.

- For Galaxy S2, added audio test functions.

On Free version, enter the test menu by hitting the Frequency button, enter 8 (instead of the common 88.5 etc.) and select OK.

Now select the 2nd item "SGS2". You will see 10 options, 5 sets of 2. Generally the first in a set turns something on, and the 2nd turns off.

See this post for a quick explanation: http://xdaforums.com/showpost.php?p=24825250&postcount=2926

Hopefully someone will find some selection, or a sequence of selections, that avoids having to make the phone ring at 1st start.

BTW, I still have not a single answer about whether or not inducing a ring by changing the ringtone avoids the need for a real ring. Can someone please try this and report ?

---

The EBay SGS2s I was looking at fell through, at prices too high, IMO. But I will be buying a new International Galaxy Note. AFAICT, the Note has very similar audio circuitry and drivers, as well as that rare stock FM record feature. Perhaps an SGS2 in future.
[Spirit FM] runedrune:
Nope doesn't have the same effect.
[Spirit FM] ouija147:
trying...

I have been trying to repro, but if I plug in the headset the app switches to headset :confused:

tried this:

reboot

headset unplugged

start spirit ul

playing on speaker

plug in headset

sound comes out headset only

can switch back and forth

tried this also

reboot

headset plugged in

start spirit ul

sound comes out headset only

can switch back and forth

Running cm9 on SGS2 i9100
[Spirit FM] mikereidis:
Thanks ! :)

I don't think there's an easy way to generate a "Real Ring".

And I'm presuming other notification noises won't do the same as a real ring, or likely someone would have reported it by now.
[Spirit FM] mikereidis:
That's a pretty common and normal thing on Android, and many, but not all, device and ROM combinations do that.

The libraries sometimes try to be "smart" and switch to headphones when plugged in or speaker when unplugged. Same with Music Players that don't even let you select speaker/headset (or both); they just play on speaker if no headset, and on headset if headset.

And since virtually no other app let's you listen to FM with the headset unplugged, almost nobody tests headset plug in or out while FM is playing. Unplug the headset and the FM usually stops. But at least that means most apps provide an output control.

Your test results seem to indicate you aren't having the "Speaker and Headset" at same time until a ring problem others are having. Right ?

At least one other person (in Germany ?) said they didn't have this problem. I don't know if some regional variants might have the problem and others don't. Or perhaps not everyone is running CM9 or the same version.

Another person said they started with audio on the speaker, but then it switched to headphone after plugging them in. I guess that's what you experienced.

Sometimes I've found that things might be a bit different if you booted with or without a headset, despite the current plugged in state.

I'm thinking these issues are mild enough I shouldn't bother investigating and reading logs, at least until I get the hardware to work on myself.

And if someone has time and some ingenuity available, perhaps they can figure out how to resolve any issues with the 10 test commands I posted above.

Thanks !
[Spirit FM] ouija147:
no problem

You are correct.

I am not having the issue...that's what lead to my confusion...I thought it was happening to everyone.

Just trying to help by getting more data.
[Spirit FM] mikereidis:
Yes and thanks, that's good. Here's from email:

Just FYI, the Free version doesn't have a speaker mode, but it should act just like the paid versions in headset mode.

So, FM was going to the speaker after a phone call ended ? If so, I'm getting the feeling one of the speaker APIs is "backwards" to what I thought.

For the background volume adjustment, try enabling Debug->Silent Loop. It's a "hack" that loops a silent audio file and uses some CPU, but it usually works in such cases.

Hmm, if Scenario 1 works when switching to/from Audio Method "None", then this should be equivalent:

- Mute.

- Wait a few seconds.

- Unmute

- Switch to Speaker.

- Switch to Headset.

From the User Interface, the "Switch to Speaker" step is only possible if you were originally in headset mode.
[Spirit FM] Souf0:
My logs: http://pastebin.com/PCJBiRXE

I follow:

-Open Spirit FM

-Turn ON spirit (work speakers)

-Plug my hedset (work speakers)

-Change between headset and speakers (work speakers)

-Change between speakers and headsetspeakers (not work headset)

-Mute and unmute the radio (not work headset)

-Incoming call and hang up (work the headset)

-Change between headset and speakers (work headset, not change to speakers)

I hope it will be useful for you ;D
[Spirit FM] coloxim:
I mean that I'll wait that you try on your future s2.. so you can understand the problem..

I'll buy a light version..can you make a discount for unlocker version? Ahuhahuha

OK..ok...

Joking...

;p

Inviato dal mio GT-I9100 usando Tapatalk
[Spirit FM] runedegroot:
Thank you very much! The developers couldn't get it to work. Finally I can listen to radio.

Very good app!
[Spirit FM] Anubiros:
Works Fine on Galaxy S II CM9 and Brazil Radio!:D
[Spirit FM] njitram2000:
Mike, the incoming call fix only needs to be done once. Even after a reboot it still permanently plays through the headphones until you clear all local data for the app.

---------- Post added at 08:47 PM ---------- Previous post was at 08:43 PM ----------

Btw, you posted the free link for the april 15 update but the one one google play hasn't changed yet. How long is the delay normally between you announcing it on here and the update being available on the store?
[Spirit FM] mikereidis:
:D

Easter Sunday was 20% off, a bit more in some currencies, and US Black Friday, Christmas and New Years Day were even better. Maybe next will be May 21, Victoria Day here in Canada.

I can do a bit better via Paypal, since Google doesn't take a huge cut, if emailed updates (until I get this automated) are OK. Email me if you wish.
[Spirit FM] mikereidis:
Well that's very strange ! But it's not unheard of, especially if it's somehow related to the mysterious closed RIL ("Radio Interface Layer") that communicates with the cell phone side of the device.

If true, my guess would be that removing the battery for several minutes might reset this.

The RIL handles some of the audio stuff, quite possibly so that the "spooks" and "G-Men" can listen to everything we say, if needed (semi rare), despite no phone call in progress. LOL, but serious, and backup up by some official court documents... Richard Stallman knows what he's talking about here.

Anyone can email me for a matching version.

Time lag, it depends. I rushed April 13 out because it mostly only changed things for the new audio method, so little risk.

April 15 changed some stuff related to Bluetooth detection, which should fix some devices, but could possibly break many more.

There are enough paid users now, and so many different devices, and so much complex interdependent code, that it's becoming hard to change or fix things without breaking things on some devices.

And I've seen that in the reviews, for the free version at least. And many more users are now "average people", now that stock un-rooted devices are supported. And they are less tolerant of "experiments" so I'm becoming more cautious.

I think when I add the automated updates for Paypal users I will also create an option for paid Google Play users to get more updates outside of Play. Perhaps even a mechanism to roll back to previous versions, since there always seem to be some people now, stuck on older versions because they work and new ones don't.
[Spirit FM] njitram2000:
Good to know that it's possible that updates might make it worse. Just made a backup of the april 13th version so that I'm certain to always have a (semi)working version ;)

Unless the april 15th version has any chance of fixing the speaker problem, I'll wait for a more relevant version, then.
[Spirit FM] mikereidis:
By email somebody said:

So I presume April 13 was giving them a problem after a phone call, where FM went to the speaker, despite being configured for headphone.

Their email and my replies are here, after the exchange with ouija147: http://xdaforums.com/showpost.php?p=24872751&postcount=2968

He responded with:

I responded, but haven't heard back yet:

Was switching to speaker with UI working on April 13 ?

--

I don't know if he's posting here. As you can probably guess (and we discussed), it's much easier if we can all discuss this here on the thread, so I don't have to go copy and pasting, and scratching my head about who said what when and where.

Overall, I'm getting the feeling that different people on different devices may be seeing somewhat different symptoms.
[Spirit FM] mfenetre:
I agree with this comment.

I had the headphones/speaker bug at the beginning and it was "fixed" with the reception of a phone call. I've rebooted my phone may times since, and the app still works fine with headphones.

---------- Post added at 12:53 AM ---------- Previous post was at 12:38 AM ----------

Hi,

Just bought the Unlocked version, and rated you 5star on Google Play, you deserve it!

Thanks for your great work, Android is a rich ecosystem because of developers like you!

Keep up the good work! :)
[Spirit FM] mikereidis:
Thank you. :D

I've ordered my Blue Galaxy Note from Newegg and I REALLY hope I get it this week. I expect it to be the jewel among my 10 working phones for testing.

I also hope it will show the exact same problems as the GS2's.

I'm now examining the service manuals for both the Note and the GS2, and besides having the same Yamaha audio/codec chip, the circuitry is very similar. The biggest difference is that some port numbers are different for different devices, likely due to different PCB layouts.
[Spirit FM] mikereidis:
Tablets and FM and Google.

I've been watching with great interest the rumours about the upcoming inexpensive, Google Nexus tablet.

So far, except for obscure Chinese models, the only tablets that have FM are 5" / 13cm mini tablets, like the Galaxy Note and the Dell Streak. (The Streak unofficial and more or less discontinued.)

Really weird, IMO, as if there's an anti-FM conspiracy among tablet builders.

But some rumours have indicated the Google Nexus Tablet might have FM. Who knows; if FM is possible it might not be supported by a Google FM app. (Which would be great for me, LOL.) OTOH, an official Google FM app might greatly change my position. But I still tend to believe that Google will continue to ignore FM as they have thus far. There's no advertising or music sales revenue in it for them.

The Asus TF370T, which appears to be cancelled in favor of this Google Tab, was rumoured to have FM in some reports. And the Asus TF300T, which may be unveiled within a week is also rumoured to have FM.

But OTOH, there are indications of last minute changes that make the Google tab cheaper by excluding Tegra. Who knows how that might affect things.

One positive is that Google may sell these devices directly. If the (US) carriers aren't involved, that raises the chance for usable FM.

I look forward to an inexpensive Google branded tablet. If it appears to support FM officially or not, I hope to be among the first to get one. But I wouldn't be surprised if they were sold in the US only for the first while, and EBay'ed devices might be rather expensive for the first week or 4.
[Spirit FM] mikereidis:
PM:

Hi, Thanks for your interest ! :)

If you have any knowledge of DC servos please feel free to share anything that seems relevant. But I guess you don't have experience with this specific chip...

I don't have the datasheet, but I've looked at the 8998 datasheet and it's relatively similar. It's 56 pages and describes various registers, but I'd guess

there must be more, including a programmers guide.

I've never tried, but there's a link right on the Wolfson page to request a datasheet: http://www.wolfsonmicro.com/products/audio_hubs/WM8994/

My understanding is that SuperCurio, the dev of Voodoo Sound, got access by signing an NDA. I'm not a fan of NDA's. I'd much prefer to be able to say whatever I want publicly, even if that means I have to reverse engineer, which is sometimes even better than forward anyway, LOL.

But I'm not sure datasheets will help me much. There are HUNDREDS of registers, and I see about 800 Kilobytes of C code at Kernel/sound/soc/codecs/wm8994*.

By comparison, my whole FM app, with low level C & RDS support for 5 different FM APIs, and high level java support for another 4 FM APIs has about: 600 KBytes of C code/headers and about 900 KBytes of Java code. Probably 1/3rd is internal documentation, but still....

So I think, perhaps maybe, if I ignored all emails and everything for a month, I could become an expert on the programming the chip, more or less. Maybe I'd need scopes and a HW eval kit too though.

The approach I'm taking now is:

1 - See if I can exactly replicate the kernel messages produced by the stock app on stock ROM or using CM7. And monitor the speaker or headset wires for large DC offsets that can kill.

2 - If 1 doesn't work out, I could possibly modify the ICS 8994 drivers to add the FM functionality present in the GB drivers. Maybe a datasheet would help, maybe not so much. And I'd prefer no NDA.

BTW, my background is in electronics. That was a LONG time ago and a LOT of code ago, but I can still wield a soldering pencil when needed. I haven't owned an oscilloscope though since the days of Heathkit I think. :D
[Spirit FM] nghalion:
Internal speaker damaged

Hello Everyone,

Sorry if this was mentioned before but I've got a Samsung galaxy S i9000 (Android AOKP 4.0.4) and was using Spirit FM (Galaxy S MIUI ALSA).

It worked nicely for a while but today I damaged my internal speakers somehow (I was listening through the headphones and later plugged them out). There's this 'buzzy' sound when playing any sound now.

I know I was warned but I wonder:

1- Isn't there any other solution other than replacing the speaker?

2- Since Spirit FM is the only way to hear local FM, what can I do to make sure this doesn't happen again when I replace the speakers.

I appreciate all the help you can offer.

#Edit: Found this post on first page http://xdaforums.com/showpost.php?p=13380066&postcount=3 . Thanks.
[Spirit FM] mikereidis:
I'm very sorry to hear about that. :(

People keep asking me for the "Secret Audio Method that works but doesn't risk speaker damage" and I keep responding:

"I'd tell the world in a second if there was such a wonderful thing".

1 - You can decide not to replace the speaker. Generally the volume is lower and it sounds awful, but you can generally hear a ring.

It would be nice if there was a way to make rings go over the earpiece speaker, but I'm not aware if that's possible.

2 - See 1. Or you can live without FM. Or you can use another ROM. But AFAIK, there is no ICS ROM with a better method to access FM.

There's an ICS audio problem I face on the Desire HD, and the ICS solution I have now is to use a ROM derived from a stock/leaked ICS ROM for another device. The HTC FM app, and mine work fine on that ROM.

But, AFAIK, there is no similar stock based ROM for Galaxy S, unless it's a secret ROM hiding inside Samsung. Samsung has said no ICS for SGS.

I've spent hundreds of hours on this awful issue. I will probably spend hundreds more. These are not simple audio chips, they have hundreds of registers and there's at least 800 Kilobytes of C source code involved. And there are no public documents on the chip, or on the way to program it on Samsungs' specific hardware design.

It's possible that the super simple code in the Feb 28 release was OK. And maybe the 1 person that reported a problem in that version was using another version. I dunno.

Next release it will be called "Galaxy i9003 danger". It's because I've had a few iGT-i9003 Galaxy SL users who found that version worked for them. It has a different audio chip and likely doesn't have this issue.

That mode only goes to headphones, but once it's out I'd say people can try that (again) and see if any more reports.

BTW, I've probably written this all out (except for the new info) 10-20 times now, in this thread, and in post 3.

I WISH I could make this problem happen on my Galaxy S. But despite months of trying, no such "luck". It happened on my first Galaxy S really fast. So I think some devices (older I don't know) may be susceptible.

Usually the problem happens to people who just started using it, and who I've never spoken with before. But out of some 20 reports now, I just had 1 from a long time user.

And 1 person claimed headset damage, but I'm at least a little bit doubtful, but who knows ?

Oh, and when I removed this mode there was GREAT condemnation of me. So I put it back. No matter what, I can't "win".

(Actually I just forced people to figure out how to create a file of a specific name on their SDCard. I was surprised how many people were able to figure out how to root and install CM9, but were unable to figure that out by themselves.)
[Spirit FM] wcoast:
Does this work on sensation 4G and if yes, does it require special set up.
[Spirit FM] wcoast:
No sound on sensation 4g

Sent from my Sensation
[Spirit FM] prodyg:
Hey i just installed the April 15 free version and I absolutely love this app. Is there anyway for me to purchase the unlock through PayPal?
[Spirit FM] fredvermejo:
Did you try reboot your phone?

Because mine happened the same thing and I thought that my speakers were burned, but after a reboot everything was ok.

Maybe it´s just a audio path problem.
[Spirit FM] ssauger:
I also got a problem on my SGS2 with CM9. Turn on the test FM app and the rearspeaker only plays music. I go into test settings/audio and push SDCS FM On (dont know what this is, but only way to get music via headset) but then i have to restart my phone to get media sound in games etc over the rear speaker.
[Spirit FM] spelaben:
Many thanks for this, FM radio is finally working on Galaxy S2 with CM9/AOKP. :)