yashsingh1/xdaforums huggingface dataset:
[Droid Incredible General] StirCwazy:
So I've rooted and installed the new recovery on my incredible. I want to remove CityID now, forgot to after root. When I launch recovery and run adb devices it shows my device. I then run adb shell, immediately getting the # for su (instead of the $ prompt for non su access). I execute /system/bin/rm /system/app/CityID.apk as instructed by the wiki and get /sbin/sh: /system/bin/rm: not found. I browse to /system/bin and do a listing and see nothing. So am I doing something wrong?

**EDIT**

Forgive my ignorance, but I forgot to mount system in the partitions menu of recovery. Doubtful this would be of any help to anyone, but there ya go.
[Droid Incredible General] dreamersipaq:
Also in the How To:

http://xdaforums.com/showthread.php?t=709220 - It's a few posts down, but will update first post later today.
[General Topics] jigners:
Even as Steve Jobs gets embarrassed of his creations' failures:(:o

:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D

WATCH IPHONE FAILURE
[General Topics] etismyname:
apparently is because too many people were using wireless equipments

same thing happened to the Nintendo E3 show when he was trying to show off the new zelda game.

anyway, I am quite interested on the phone because it can finally do multi-task but the main attraction is the screen.....

according to some sauce, it gives the highest pixel for that resolution that our human eyes can receive...sounds very tempting
[General Topics] flitjes:
And now his flagship fails :D:D:D

Reception problems because of shorting it XD

And yellow dots in the screen.

This is just great news for all the Apple haters, im laughing my freaking ass off over here its getting better and better every hour with the Iphone 4.
[General Topics] BicolXpress:
the cause of yellow dots on iphone :D

http://www.droidforums.net/gallery/data/515/piss-on-apple-black-xdock.jpg
[General Topics] Zd0s:
lol he needs a drink if his pee is tht colour!
[General Topics] oursoul:
It gets worse:

http://news.bbc.co.uk/1/hi/technology/8759590.stm

http://www.youtube.com/watch?v=kYmVpoccPnc

ohhhh deear
[General Topics] bobdigi36:
The antenna thing happens with the 3GS phone too, so yea.
[Galaxy S I9000 General] dan 6a:
Hmmm when I goto the FM radio there is no sound coming through the earphones. Check the volume is up and nothing at all. I have to rescan each time, and that re jogs the sound output through the headphones..

Also the quailty doesnt sound amazing at all, even with technics headphones.

Music player works fine.
[Galaxy S I9000 General] tommy34:
When you scroll with your finger to a frequency you have to press stop and then when you set the frequency press play.
[Galaxy S I9000 General] TravUK:
Am pretty pleased with the quality myself, all works well, tunes fast, all the RDS data with station name and program info works.
[Galaxy S I9000 General] discophil:
My experience of the radio is that its utter crap. I tested it on a number of strong signal radio stations and all of them come out mono, no stereo from the radio at all.

also the sound quality sounds like a crap speaker sitting in a bean can. hollow sounding rubbish, very surprised that they can make a radio that rubbish these days.

Mp3 player sounds great though, nice clean full sound.
[Galaxy S I9000 General] vrhunski:
you can listen radio online :)
[Galaxy S I9000 General] hotlips69:
I thought I read somewhere that you can listen to the FM radio through the phone loudspeaker instead of the headphones?

If so, how???
[Galaxy S I9000 General] dan 6a:
You can but you would still need the earphones as they act as an antenna
[Galaxy S I9000 General] danielherrero:
I thought I was coming crazy. all the stations sounds in MONO. incredible.... :(
[Galaxy S I9000 General] ewingr:
No, SGS .

:D
[Galaxy S I9000 General] damianarnold:
Agree, although utter crap is just too positive a description.
[Galaxy S I9000 General] lgkahn:
fm radio .. what about transmitter

we have an fm radio at least one step up from nexus one..

does anyone know if the chip has the hardware for an fm transmitter.. maybe someone can implement an app for this..

thanks
[Galaxy S I9000 General] lentak:
Fm radio is mono or stereo

Pls help.

My FM Radio is still MONO.

FM Radio on SGS is MONO or STEREO ?

For what is still MONO ?
[Galaxy S I9000 General] pramods:
It's stereo

The headphone that comes in the package is not good, please use any other headphone[I used the iPhone 2G headphone] and the FM radio is "stereo"[I have Galaxy S in India], the FM just need any headphone not necessarily "samsung". Try this, I have tried it and it works as expected!

-Pramod
[Galaxy S I9000 General] ed10000:
I'm sorry for the stupid question, but how do I check whether FM is running in MONO mode or STEREO mode on my phone? :confused:
[Galaxy S I9000 General] lentak:
I use other headphone - Coss Porta Pro. FM Radio is still MONO.

I use active loudspeaker, still MONO.

Anybody has STEREO FM radio ?

Pls help with this problem.
[Galaxy S I9000 General] sergmarin:
I have radio playing MONO too in my SGS. It's not much important for me, but I think it's serious bug in Samsung's flagman phone that costs more than 500 $ :( ...
[Galaxy S I9000 General] AllGamer:
did you people even read the previous message, the #2 reply?

the FM radio is STEREO you just need to plug in a STEREO head phone for it to work.

in areas of poor reception it might sound like mono, but that happens even if you have a $3000 car stereo, it's not the phone fault for weak FM sources radio station.

in my city there is a channel i really like to listen to 103.5 but the reception is very poor on most FM radio at home/work/car unless you are near the source, which is on the other side of the city.

luckly they have Online streaming, so i listen to them online when my FM radio reception is poor in whever i happen to be at the time.
[Galaxy S I9000 General] SiL3nTKiLL:
mine always plays mono...
[Galaxy S I9000 General] GAda:
The standard head phones are stereo, you don't need other.

Checked with an STEREO TEST MP3.

But my Radio is also always MONO :mad:
[Galaxy S I9000 General] sergmarin:
Sennheiser CX300 are the mono headphones you think? :D

I'd plugged many different headphones, sound ALWAYS MONO instead of mp3-player that STEREO. All radiostations in good quality of reception always mono. It's a bug of Samsung...
[Galaxy S I9000 General] cba1986:
Excellent!!!!!

I will be the first to try this.
[Galaxy S I9000 General] miki4242:
Sorry to have kept you guys waiting for so long (XDA downtime, other things I needed to do), but I've been working on this!

Cooking up a safe to use patch for this is taking a bit longer than I hoped, but to show there is some development, I will update the first post in this thread with all the info I have now. If I'm allowed to do so, I will also put it on the Wiki for future reference.

Collecting all the info, I've found more interesting things, possibly bugs that I may be able to fix together with the radio issue. One in particular is very interesting, you can test for it right now.

It appears that recording from a Bluetooth headset may not work (couldn't search the forum because search still appears to be down <grrr>), because a mixer control setting isn't available. Anyone care to test this? Just install any voice recorder app you fancy and try to record from your BT headset. Please report if it is/isn't working for you.
[Galaxy S I9000 General] cba1986:
waiting anxious for the patch.

I would like to test it for you but i don't have a BT headset.
[Galaxy S I9000 General] miki4242:
ok, think I've found a BUG!

sound/soc/codecs/wm8994_aries.c
2653:	val = wm8994_read(codec, WM8994_RIGHT_LINE_INPUT_3_4_VOLUME);
2654:	val &= ~(WM8994_IN2R_VU_MASK | WM8994_IN2R_MUTE_MASK | WM8994_IN2R_VOL_MASK);
2655:	val |= ([B]WM8994_IN2R_VU_MASK[/B] | WM8994_IN2R_MUTE);
2656:	wm8994_write(codec, WM8994_RIGHT_LINE_INPUT_3_4_VOLUME, val);
should be:
2653:	val = wm8994_read(codec, WM8994_RIGHT_LINE_INPUT_3_4_VOLUME);
2654:	val &= ~(WM8994_IN2R_VU_MASK | WM8994_IN2R_MUTE_MASK | WM8994_IN2R_VOL_MASK);
2655:	val |= ([B]WM8994_IN2R_VU[/B] | WM8994_IN2R_MUTE);
2656:	wm8994_write(codec, WM8994_RIGHT_LINE_INPUT_3_4_VOLUME, val);

ORing in WM8994_IN2R_VU_MASK sure as hell is going to set all bits in there to 1, don't know what else is in that register, but it's going to trip everything in there, no matter what other values you OR in there as well. Maybe the quickfix Samsung put in there was because they didn't know about this bug...

Going to build a kernel ASAP (with audio debug output enabled as well).

edit: Darn, the xda-developers connection is acting up again, took me 8 tries to post this! :(
[Galaxy S I9000 General] cba1986:
Can you explain this, a bit more?

I'm a bit slow.

For what i understand Samsung use left + left FM to fix the mixing channels( right + MIC). And the reason might be this parameters,

I'm correct?
[Galaxy S I9000 General] miki4242:
Yes! This could be part of the reason, the code definitely looks like a bug, but there could still be more involved. One a phone you have to cater for things like calls coming in (do you shut down the radio, do you let it keep playing on one channel with the phone call on the other? Where do you route the mic input to?) Getting the routing right on this chip is definitely a challenge, especially if you have to juggle inputs around like Samsung has to. Combine that with a very experimental driver and you're set for one hell of a ride...

I'm sorry, I cannot go on with this anymore today (I took too much time setting up the toolchain, the one Samsung provides in the zip only works with the complete Android build environment, not with the script they provide).

I need to go to bed and after that I have lots of other stuff to do (my fault for living on another side of the planet ;) ) so I'll talk to you in a day or so.
[Galaxy S I9000 General] robert_schl:
You should've looked up the definitions in wm8994_def.h:

#define WM8994_IN2R_VU 0x0100 /* IN2_VU */

#define WM8994_IN2R_VU_MASK 0x0100 /* IN2_VU */

So while it is indeed incorrect that *_VU_MASK rather than *_VU is ORed there, it is merely "cosmetical", as the resulting code will be exactly the same no matter which you use.

I don't think the problem will be that obvious to figure out. It could be that the WM8994 is properly set up, but then something else interferes with its settings, e.g. the periodic poll if the headset is connected. So you may have to add a lot of debug output in the various wm8994 functions to see what's going wrong...
[Galaxy S I9000 General] miki4242:
Thanks!

I'm well aware of the possibility of multiple scenarios interfering in all that routing going on, that's why I'm alredy busy manually tracing the execution paths for them.

Samsung should really have refactored all that repetitious bit masking and setting stuff into one simple 'SETREG(reg, mask, val)' macro, the current way they do it adds massive bloat and lots of risk of small mistakes like this.

I will put all documentation I've gathered in the top post, ready for Wiki, so you or anyone else with knowledge about this can use it.
[Galaxy S I9000 General] miki4242:
Documentation update!

Top post updated with summary and documentation (finally!).

edit: bumpteebump, yet more updates.
[Galaxy S I9000 General] miki4242:
Yes! Sadly it's taking me more time because I don't want to smoke people's phones by just listening to stereo radio for a few minutes... :)
[Galaxy S I9000 General] miki4242:
EDIT: moved.
[Galaxy S I9000 General] cba1986:
Take your time. and relax.. ;)
[Galaxy S I9000 General] miki4242:
Yeah, smoke coming from your phone, even if bad, is still better than smoke coming from your ears because of working too hard :) :)
[Galaxy S I9000 General] miki4242:
This is why: found another BUG (this one's no longer just 'cosmetic', I could argue with robert_schl about the previous one long time, but I'm not going to).

In wm8994_aries.c:

714:	// Disable IN2 and MIXIN
715:	val = wm8994_read(codec, WM8994_POWER_MANAGEMENT_2);
716:	val &= ~(WM8994_TSHUT_ENA_MASK | WM8994_TSHUT_OPDIS_MASK | WM8994_OPCLK_ENA_MASK |
717:	WM8994_MIXINL_ENA_MASK | WM8994_MIXINR_ENA_MASK | WM8994_IN2L_ENA_MASK | WM8994_IN2R_ENA_MASK);
718:	wm8994_write(codec, WM8994_POWER_MANAGEMENT_2, val);

should be:

714:	// Disable IN2 and MIXIN
715:	val = wm8994_read(codec, WM8994_POWER_MANAGEMENT_2);
716:	val &= ~(WM8994_MIXINL_ENA_MASK | WM8994_MIXINR_ENA_MASK | WM8994_IN2L_ENA_MASK | WM8994_IN2R_ENA_MASK);
717:	wm8994_write(codec, WM8994_POWER_MANAGEMENT_2, val);

This one's a real gem: it can cause real damage. What the buggy code tries to do is disable the Left and Right inputs from the FM radio: the pin enables as well as the mixer.

What it really does in the process is: disable the on-chip thermal sensor (WM8994_TSHUT_ENA) AND thermal shutdown capability (WM8994_TSHUT_OPDIS), again because the _MASKs are inverted, but nothing's ORed in so these bits are set to 0. Go figure!

Clock output on GPIO (WM8994_OPCLK_ENA) is disabled as well, but that's probably not a biggie compared to the rest...

I'm quite sure this was too eager copy/pasting, because this stuff happens elswhere too, but then the thermal shutdown enables are turned back on correctly.

Samsung should REALLY consider putting that bit toggling in a macro, these mistakes are far too easy to make.

Bit of a thumbs-down to Wolfson for putting such a critical setting in with some mixer enables, too. Boohoo!

I'm getting really heavy-headed by this. It would be better to backport Wolfson's current driver, but that requires changes to other subsystems.
[Galaxy S I9000 General] xan:
Well, my bet is...

Froyo is around the corner, let's see if this gets fixed..
[Galaxy S I9000 General] miki4242:
Well, AFAIK, the latest leaked JPH firmware still has mono FM radio, so I'm worried they're still using the old driver...
[Galaxy S I9000 General] nCoder:
I suppose this issue is not in the top of Samsung priorities..
[Galaxy S I9000 General] nCoder:
sorry.comment.removed.
[Galaxy S I9000 General] miki4242:
Update: Replaced WM8990 datasheet with one for the WM8991. Thanks go to the ODroid project.

This one is even closer (but still NOT identical) to the WM8994. Cobbling everything together from this and the source code will hopefully be a little easier again...
[Galaxy S I9000 General] bichozzz:
Tested Bluetooth

Hi, i have tested FM Radio with my bluetooth headset Sony DR-BT22, paired and connected, but sound goes always through cabled headphones (in MONO).

If you unplug the cable, FM radio stops.

Another test: first listen to a MP3 via Bluetooth in STEREO, then while listening to it go to FM Radio. As soon as I press play in the radio menu, MP3 stops, and radio begins. Not capable of using both Bluetooth and analog at the same time.

Regards!
[Galaxy S I9000 General] polle55:
[Q] FM-Radio active in airplane mode

Hi,

I want to listen fm-radio while all network connections are interrupted.

Using the airplane mode also disables fm-radio.

I used APNdroid to interrupt all data connections but GSM phone reception is still active.

Does anybody know how to kill it?

Thanks in advance (and excuse my english)!

Polle
[Galaxy S I9000 General] xrayA4T:
I can't give you an answer but it might be impossible. On my Samsung Omnia the GPS chip was linked to the phone chip so turning off the phone radio disabled GPS. It could be that the FM-chip is linked to the phone chip in which case you will not be able to do this.
[Galaxy S I9000 General] erunamor:
Galaxy tab froyo kernel and firmware is online now. Maybe the radio fm has been changed :)
[Galaxy S I9000 General] supercurio:
Hey miki4242 :)

It seems we studied a lot of similar topics at the same time!

It's good to know that i'm not the only guy working on the sound ;)

About the data-sheet, I recommend you the WM8993 one which is register-compatible analog-wise. The digital registers (reTune, ADC, DAC, effects) is different but share some similarities too.

I suppose Voodoo sound first release will dramatically make your researches easier because it allow direct register/value send through sysfs, that's how I could explore WM8994 really fast.

I suggest you also take a look at Wolfson WISCE http://www.wolfsonmicro.com/support/wisce/ for WM8994EV1M

About the WM8994, i have asked it a 2 time to Wolfson (directly and through Mark Brown) with NDA agreement but i have no answer yet.

Of course this is now what will prevent anybody really motivated to succeed :D

I also publish real-time most of Voodoo sound here: http://github.com/project-voodoo/sound

You'll already find a lot of register switches (but a few will help for the Radio stuff)

About inputs i think you made a mistake, there are several analog inputs and all of them goes to an input mixer.

See ya !
[Galaxy S I9000 General] xan:
I think we got stereo on JPM :D

FINALLY.

YES 100% sure now :D
[Galaxy S I9000 General] cba1986:
really?

i can't believe it!!!!!!!!

anybody else tried it?
[Galaxy S I9000 General] hansoloq:
Yes, now the Radio FM is STEREO :)
[Galaxy S I9000 General] dwillMUFC:
Mine still sounds mono compared to the music player :(

Dan
[Galaxy S I9000 General] xan:
Its definitely stereo here. Not perfect though, there are tremendous volume fluctuations... Sound is getting louder and then quieter all the time.
[Galaxy S I9000 General] cba1986:
what fw are you triying jp6 or jpm?
[Galaxy S I9000 General] MoWa22:
Definately stereo - no doubt. Sound not impressive though.

Edit: using JP6, baseband JPM
[Galaxy S I9000 General] dwillMUFC:
Baseband version - JPM

Build number - JP6

Yeah JP6 i installed if this is so, then i can't see how jp6 is "newer" than JPM if i can only hear mono. Defiantly still mono just played the radio then the exact same track in music player and there is a distinctive difference...

Dan

Edit* MoWa22 has the same baseband as me maybe the sound really is bad enough that it still sounds mono to me?
[Galaxy S I9000 General] MoWa22:
It seems to me that the stereo effect is more pronounced the stronger the signal is (judged only by noise level). Some mixing with mono signal might be going on.
[Galaxy S I9000 General] sergmarin:
I can confirm - on JPM firmware FM radio is finally STEREO. Required a strong radio signal...
[Galaxy S I9000 General] cba1986:
Thanks for confirm it. i will try it when i get home!!1
[Galaxy S I9000 General] hardcore:
Just flashed XWJP6 and can confirm, FM Radio is finally STEREO! YES!

Sadly the sound doesn't seem to go through the EQ that the Music Player has, so naturally it doesn't sound as nice.
[Galaxy S I9000 General] lpy:
That's also the case with something like an iPod - the digital audio gets processed/enhanced/equalised, but analogue audio is bypassed and virtually goes straight to the output.

Some people are reporting Mono, but that's only if the signal is too weak to be clean stereo.

I just flashed JPM and can confirm Stereo is there. The stereo separation is very good too.

The inbuilt speaker however is still only the left channel (no big deal), but the earphones are stereo!

Thanks miki4242 and everyone for looking into it.

So what we have now is:

Speaker: Left = output, Right = nothing

Earphone: Left = Left, Right = Right :-)
[Galaxy S I9000 General] itsjusttim:
Sorry to intrude in your thread but I was wondering if this would also work on the vibrant?

I would gladly give $40 to anyone who can get it on there. Thanks for the hard work guys...
[Galaxy S I9000 General] andrewluecke:
By the sounds of things, Samsung fixed it officially.. So Vibrant will likely also get the updates soon
[Galaxy S I9000 General] stassano:
I bought my i9000 5 days ago in Hong Kong and it is running the JP3 release and I have stereo on channels that have it in the FM radio, so it is a firmware issue that will be resolved soon.
[Galaxy S I9000 General] itsjusttim:
Thanks for the update... But I personally dont want to wait on t mobile. If someone can get this working for me, i would still be willing to donate my $$
[Galaxy S I9000 General] andrewluecke:
And many others seem to be confirming it is fixed on the other Froyo updates. I haven't tested it myself...
[Galaxy S I9000 General] pwhooftman:
Please confirm: when listening FM Radio through speaker, incoming call is mute

Can anyone confirm this?

When listening to FM Radio through the speaker (using the ear buds as an antenna), when there is an incoming call, the FM Radio sound is muted. But when answering the call, the incoming voice is muted also (there's no sound from the speaker). The caller doens't hear me too.

Firmware I9000XXJM2

Edit: found out that voice is transferred to the earbuds, and the mic in the earbud string is activated (which makes kind of sense). However, pulling out the earbuds from the Galaxy does not transfer the sound to the inbuilt speaker & mic... The Galaxy should transfer to the inbuilt mic & speaker in the first place when the FM rado is switched to Loudspeaker when the incoming call occurs.

Solved by setting a rule in Tasker to kill FM Radio app on incoming call. Then i can put the earbuds in my ear, or pull them out of the Galaxy, both ways do work as soon as FM Radio is killed.
[Galaxy S I9000 General] robert_schl:
To resolve this from a developer's point of view:

Comparing the old wm8994_aries.c to the one Samsung released with the JPM open source release (currently no longer available for download from Samsung), it appears that Samsung only had to change two lines:

In void wm8994_set_fmradio_headset(struct snd_soc_codec *codec) starting from line 2805

old:

val = wm8994_read(codec, WM8994_DAC2_RIGHT_MIXER_ROUTING);	//605H : 0x0010
val &= ~(WM8994_ADC[B][COLOR="red"]1[/COLOR][/B]_TO_DAC2R_MASK);
val |= (WM8994_ADC[B][COLOR="red"]1[/COLOR][/B]_TO_DAC2R);
wm8994_write(codec, WM8994_DAC2_RIGHT_MIXER_ROUTING, val);

new:

val = wm8994_read(codec, WM8994_DAC2_RIGHT_MIXER_ROUTING);	//605H : 0x0010
val &= ~(WM8994_ADC[B][COLOR="red"]2[/COLOR][/B]_TO_DAC2R_MASK);
val |= (WM8994_ADC[B][COLOR="red"]2[/COLOR][/B]_TO_DAC2R);	// Changed value to support stereo
wm8994_write(codec, WM8994_DAC2_RIGHT_MIXER_ROUTING, val);

So it seems that only two "1"s had to be changed to "2"s... Solutions can be so simple once they're known ;)
[Galaxy S I9000 General] _JKay_:
My JP6 is still mono :-(
[Galaxy S I9000 General] GAda:
Stereo comes only if the signal is good enough...
[Galaxy S I9000 General] _JKay_:
Hey!!! You are right!!!! I switched to my other headphones with longer cable and turned up the volume... Now its in STEREO!!! Yes!!!! Thank you Samsung!!
[Galaxy S I9000 General] K0v4L:
So looks like we can close this thread.

Sent from intergalactic cosmic invaders space ship.
[Galaxy S I9000 General] pckoloji:
after jp6 upgrade radio is stereo now
[Galaxy S I9000 General] eitama:
FM Radio no Bass, No Treble sounds like crap

After connecting my galaxy s to a 2.1 speakers system (ATP3),

I realized there is absolutly no bass whatsoever, and also no treble.

The sound sounded like an OLD sounding 5" speaker producing only midrange sound.

I have conducted some tests in order to understand what the hell is going on.

This is totally regardless of the MONO/Stereo issue.

My Findings can be found in a google doc here :

https://docs.google.com/document/ed...Poqe0wOy2Y8JhyywIoX5M&authkey=CMvGj6ML&hl=en#

Edit : Just to be clear, Mp3's sound great. It's only the FM receiver that is faulty.

Tested with various FM stations, and compared to other devices in the same vicinity, they sounded great, and the FM station SNR was also great so it's not a reception error.

Other users have reported the same muffled sound.
[Galaxy S I9000 General] mstrandbo:
Yes, I noticed the same thing last time I tried the radio, really weaksauce sound, no bass at all.

FW: JPM/JP6
[Galaxy S I9000 General] exadeci:
And don't you think that is just post conversion I mean most of the radio system receive the radio the same way but then they apply some kind of eq to make it sound better. And we could do the same ?!
[Galaxy S I9000 General] Samga:
I can't see what FW you use. Have you tried with JPM/JP6 yet, where fm radio is stereo? Maybe this solved this frequency response issue as well?