yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] supercurio:
Fixed by new Firmwares ?

A good friend of mine loaned me his Galaxy S for 1 day.

It's running XWJM5 firmware, he upgraded his phone yesterday from stock XWJF3.

And I have some really surprising news, begging your attention to be confirmed or not on you device :D

Facts :

Default volume : 55

1 point lower than mine on XWJM2. Hiss with my earphones is a bit lower, max volume is a bit lower too.

Amp power up and down produces much less "pops" : very good work done here !

and..

No trace of any hardware Equalizer for headphones !!

Yep :D

I checked with RMAA signal analysis with headphone attached -> flat response.

I double checked with my ears, and I can confirm that !

Did Samsung correct the problem ?

Because of the pop-up and pop-down noise improvements, I'm pretty sure Samsung has worked on the driver.

Today I know that my device isn't the only one permanently fixed about the EQ issue.

Some firmware flashing probably produced this on the hardware. I'm stunned !

Some silent people (except one here on XDA and another today on frandroid) did not hear any significant difference or even any at all.

Maybe that's because their firmware already closed the issue !

Still investigating.

If you have good ears or a good RMAA and know how to measure the signal with headphones attached, please let everybody know !
[Galaxy S I9000 Android Development] cba1986:
You are saying that JM5 firm is the answer?

Ouh. I managed to get it running. It was busybox that was corrupted. I used the 1.17.1 version to get it running.

i am amazed about the sound. It sounds better than my PC, with a setting of 62, i am using the volume at 10 and i think I'm going to be deaf. jaja.

Using a pair of Sennheiser IE7 Headphones.
[Galaxy S I9000 Android Development] tanzhjoash:
noob needs help

hi, sorry a noob here,

can some1 please give me a step-by-step on how to change the setting from default to 62 or any other value?

what i did was, i typed this into my terminal emulator

$su

# cd /

# busybox tar zxvf /sdcard/alsa-utils-binaries.tar.gz.zip

# alsa_amixer set 'Playback Headset' 56

and i got this:

Simple mixer control 'playback headset' ,0

capabilities: volume

Playback channels: Front left - Front right

Capture channels: Front left - Front right

Limits: 0 - 63

front left: 62 [98%]

front right: 62 [98%]

->Is this what i need to do? or am i supposed to do some other thing that requires me to use text editor or .sh or something?? i'm blurr

->Do i have to perform this each time i want to listen to music?

->I'm on JP3 froyo and i use a portable amp connected to UM3x iems, is the 62

setting the best if i want sound quality?

->Last question: do i still have to tweak the Fir_coeff Table settings to 0 every boot?

thanks!
[Galaxy S I9000 Android Development] riwarren:
I'll install JM5 tomorrow and report back.

I've got a Zero DAC highly modded with fully discrete D/A section/IC and all caps replaced with high quality Black Gates, as well as a vintage Sansui B1000 Power Amp its feeding to, powering Yamaha YH-100 Orthodynamic headphones. For those who do not know, those headphones have a completely flat response rate due to their design, so I can do a real proper analysis on whether samsung resolved the issue or not.
[Galaxy S I9000 Android Development] supercurio:
You got it !

Right now this tweak is only temporary like explained before.

62 is not necessarily the best gain to choose. The whole point is to be able to change the gain to get the lowest noise & distortions at the appropriate listening volume ;)

The SGS may look bad compared to your actual setup ^^

Is the Yamaha YH-100 difficult to drive properly because of his technical specificities ?

If you think you can analyze the output accurately without RMAA thanks to your training, I fully trust your judgment.

Anyway if you've never used RightMark Audio Analyzer, give it a try. This is a pretty capable software and it's free. I'm sure you'll love what you can do with it ;)
[Galaxy S I9000 Android Development] The.Opethian:
I don't have any equipment to test it but JM5 which I'm running on now, definitely sounds a lot better, but not as loud (which makes me think, has this issue got something to do with EU regulations about maximum volume?).

BlackBerry devices can only go so much (say about volume 20), and if you keep pressing the volume up button (for 5 more times) it will give you a warning message asking you if you'd like to disable the "lock" and increase the volume further with a message saying it could "damage your hearing".

Hopefully something like that could be incorporated here. :)
[Galaxy S I9000 Android Development] joplin48:
Problem with Headphones and Samsung Galaxy S

Hi

Can anyone tell me if Samsung is aware of this problem with Headphones?:confused:

Is this a hardware or software problem?:confused:

I notice yesterday that Samsung knows about the Gps problem and is planning on correcting it witha firmware update.

Thanks:cool:
[Galaxy S I9000 Android Development] riwarren:
Yes, I do not normally use my SGS for audio purposes. Difficult to drive? yes, I drive them with a Sansui B1000 Power Amplifier meant for speakers. They're 150ohms, and very inefficient, however, when driven properly are utterly amazing.

I do not personally like RMAA. Its too unreliable. You get crosstalk and power supply noise from the computer.

Didnt have time to flash firmware today, will get to it tomorrow and post what I find out.
[Galaxy S I9000 Android Development] lethalfriend:
Well i just flashed a new firmware from JM5 to I9000ZSJH1 and i was surprised that default sound is very diffrent on both. I found JH1 sound pretty loud and good than JM5. I think even on default loudness it's pretty high and there is not much need to apply any mod on it in normal scenarios.

Guys give this firmware a try and then go for a better patch or modding.
[Galaxy S I9000 Android Development] cba1986:
To bad that that firmware doesn't have spanish. :(

Another thing.

The audio chip on the SGS support stereo radio?

Becouse of reading in this forum i found out that the radio on our cel plays in mono.

I want to know if it is software or hardware problem.
[Galaxy S I9000 Android Development] supercurio:
I take a little break from on the audio part of the Galaxy S to build with gilksen a definite and "clean" Lag Fix.

Both projects have much in common ;)
[Galaxy S I9000 Android Development] cba1986:
Anybody know something about this?
[Galaxy S I9000 Android Development] Warrior4Jah:
I also installed JM5; music sounds better, there is less bass on my Ep630 which makes it sound better.

I do have to say that I did not notice much when applying the fix on page 1, however this firmware seems to improve things.

So JM5 is the most permanent anwser for now?
[Galaxy S I9000 Android Development] MoWa22:
May I suggest that you edit your first post to avoid people reading through the whole thread pressing a lot of strange buttons only to find out it might already be a non-issue on their phone, or it will soon be fixed in an official firmware... :)
[Galaxy S I9000 Android Development] Warrior4Jah:
Removed post
[Galaxy S I9000 Android Development] supercurio:
Every Samsung firmware enable the FM only in Mono.

But I have a good news :

grep -i sterero GalaxyS/modules/fm_si4709/Si4709_dev.c

./Si4709_dev.h:extern int Si4709_dev_STEREO_SET(void);
./Si4709_ioctl.h:#define Si4709_IOC_STEREO_SET	_IO(Si4709_IOC_MAGIC, 20)
Fichier binaire ./Si4709_driver.o concordant
./Si4709_dev.c:int Si4709_dev_STEREO_SET(void);
./Si4709_dev.c:int Si4709_dev_STEREO_SET(void)
./Si4709_dev.c: debug("Si4709_dev_STEREO_SET called");
./Si4709_dev.c: debug("Si4709_dev_STEREO_SET called when DS is invalid");
./Si4709_dev.c: debug("Si4709_dev_STEREO_SET i2c_write failed");
Fichier binaire ./Si4709_main.o concordant
./Si4709_regs.h:#define STEREO 1
./Si4709_regs.h:static inline int STATUSRSSI_STEREO_STATUS(u16 data)
./Si4709_regs.h: return STEREO;
./Si4709_regs.h:#define STEREO_SELECT 0
./Si4709_regs.h: return STEREO_SELECT;
./Si4709_main.c:	case Si4709_IOC_STEREO_SET:
./Si4709_main.c:	debug("Si4709_IOC_STEREO_SET called");
./Si4709_main.c:	if( (ret = Si4709_dev_STEREO_SET()) < 0 )
./Si4709_main.c:	debug("Si4709_IOC_STEREO_SET failed");
./Si4709_main.c: debug("Si4709_IOC_STEREO_SET 0x%x",Si4709_IOC_STEREO_SET );

int Si4709_dev_STEREO_SET(void)
{
int ret = 0;
u16 powercfg = 0;

debug("Si4709_dev_STEREO_SET called");

mutex_lock(&(Si4709_dev.lock));

powercfg = Si4709_dev.registers[POWERCFG];

if( Si4709_dev.valid == eFALSE )
{
debug("Si4709_dev_STEREO_SET called when DS is invalid");
ret = -1;
}
else
{
POWERCFG_BITSET_MONO_LOW(&Si4709_dev.registers[POWERCFG]);
POWERCFG_BITSET_RESERVED(&Si4709_dev.registers[POWERCFG]);

if( (ret = i2c_write( POWERCFG )) < 0 )
{
debug("Si4709_dev_STEREO_SET i2c_write failed");
Si4709_dev.registers[POWERCFG] = powercfg;
}
}

mutex_unlock(&(Si4709_dev.lock));

return ret;
}

Conclusion : this chip can probably do stereo, and if so we will find a way to enable it !
[Galaxy S I9000 Android Development] cba1986:
Thank you so much supercurio.

I hope that Samsung fix this.
[Galaxy S I9000 Android Development] }{Alienz}{:
Interesting, so supercurio, what exactly will you be working on?
[Galaxy S I9000 Android Development] Nitromind:
Hi guys, first of all let me congratulate you all, particularly supercurio, for the magnificent work done here!!

Now, i have read all the 37 pages of this thread, and i think it may be time for a little sum up (to help the people who don´t understand about audio and coding, like myself)... :)

Currently, what´s the best solution you recomend:

- the fix proposed here (page 30 of this thread - also, is this definite or erased on reboot like the first temporary fix) or a firmware update (wich one? - JM5 seems ok, supercurio confirmed, and what about the newer ones like GYJH1)?

- could someone please make a step by step "howto" with all the little details, explaining how to apply the fix?

- is there anything else in the works and expected to come in the next days?

Once again, thanks a lot, and sorry for the "step by step" noob request... I just want to make sure i do things right and i don´t understand a thing about programing!

Keep up the good work!! :)
[Galaxy S I9000 Android Development] Bhonka:
There is no permanent fix thus far.

At the moment we can change the headset volume however it resets if the headphone plug is removed or a different application which initiates audio is opened.

You have to have root on your phone to attempt the temp fix.
[Galaxy S I9000 Android Development] Eskilden:
Gotta say. Tried the improvement in the first post. It does help, but if I listen to any of the really heavy metal songs, the vocals are just not there :/
[Galaxy S I9000 Android Development] }{Alienz}{:
Yup hopefully someone can figure out how to save it and then this whole issue would be resolved lol.
[Galaxy S I9000 Android Development] supercurio:
Completly flat response :eek:

That's pretty unique for headphones isn't it ?

What did you found in this test :)

Is the SGS response headphone flat and free from any dynamics compression or other processing ?
[Galaxy S I9000 Android Development] supercurio:
Yep JM5 is the way to go for now ;)
[Galaxy S I9000 Android Development] supercurio:
I'm working on the lowest levels : Linux kernel :)

I must say.. that you're really brave for having reading the whole thread :D

And that's very nice to you to say hello here as a first post ;)

For now you can use XWJM5 firmware (or just flasghin XWJM5 kernel with odin, without changing everything)

Hey Eskilden. Interesting feedback, i think i know what you talk about.

Which firmware/kernel do you use (and modifications if any), and what was the hardware you're used to ?
[Galaxy S I9000 Android Development] cba1986:
There are any diference if we apply the service mode fix on JM5?
[Galaxy S I9000 Android Development] Chainfire:
I hear exactly no difference using JM2 on EU I9000 with Sennheiser PMX-100's - and I'm anal about audio and video :/
[Galaxy S I9000 Android Development] Antdroid:
After i heard this news, its like heaven to my ears, after i changed the settings with SSM, its like Galaxy to my ears! thanks for the fix!
[Galaxy S I9000 Android Development] praveen6585:
there is definitely a difference after the first page tweak.. but im still a bit biased towards the untweaked sound.. maybe it has something to do with my earphones.. im using Sony E818.. brilliant pair of earphones if anyone wants to try..
[Galaxy S I9000 Android Development] zaures:
Man that makes a huge difference, Thanks!
[Galaxy S I9000 Android Development] m3talm0rph:
supercurio YOU ARE GREAT!
[Galaxy S I9000 Android Development] carlocb:
supercurio is indeed GREAT!

If anybody's interested, I just published a little app on this forum which basically does the same thing as the proposed scripts, but imho is quicker/cleaner because you can enable/disable the tweak anytime you like just pressing a button! It was intended just for me, but I figured I could share it, hope it's useful! ;)
[Galaxy S I9000 Android Development] supercurio:
Never experienced this, but be sure that you disabled the "TV out" setting.
[Galaxy S I9000 Android Development] supercurio:
New mission for you guys...

Now let's find out which scripts / set these parameters, and fix them.

Somebody have an idea where to look at ?

In kernel source/.config ? In scripts included in the initrd ?

This quick fix is nice, but everything is lost at reboot.
[Galaxy S I9000 Android Development] Spybreak:
Now THIS is what I was noticing every time I tried to listen to music on my Galaxy. I just made some direct comparisons to my iPhone 4 after this fix and they pretty much sound the same using a pair of Sennheiser 280 pros.

Why the hell would Samsung think it was a good idea to screw up the audio output.

Now please find a way to make this permanent.
[Galaxy S I9000 Android Development] Waky:
i'm having the same problem :confused:
[Galaxy S I9000 Android Development] supercurio:
Off topic

Ok so please make a dedicated topic, describing your firmware version, headphone used etc.

You'll have more adequate responses.

Check maybe this topic too : http://samsunggalaxysforums.com/showthread.php/320-get-headset-to-work-as-a..headset

good luck !
[Galaxy S I9000 Android Development] buddy01:
SGS DOES have the wolfson chip

"Edinburgh, UK, 14 June 2010 – Wolfson Microelectronics plc has announced that its innovative ultra low power audio hub solution, the WM8994, has been selected by Samsung for inclusion in its breakthrough new smartphones, Wave and Galaxy S."

source: http://www.wolfsonmicro.com/media_c...ower_audio_hub_selected_for_samsungs_latest_/
[Galaxy S I9000 Android Development] supercurio:
Yep I confirm that

$ cat /proc/asound/card1/pcm0p/info | busybox grep id

id: PCM FOR VT WM8994 PCM-0

Here are the specs.

http://www.wolfsonmicro.com/products/audio_hubs/WM8994/

The hardware may play 8kHz to 96kHz sampling rates, but i got a clean output only with 44100Hz.

On Samsung music player, 48kHz is resampled to 44.1kHz with a medium quality algorithm .

I don't know if 24bit streams get to the DAC with full precision.

About the DAC equalizer default settings, i've not found anything in current Samsung Opensource sources for now.
[Galaxy S I9000 Android Development] Bhonka:
Sounds pretty good on my Atrio M5's.

Could be a tad punchier.
[Galaxy S I9000 Android Development] h4m74ro:
Very nice supercurio :D

Now I hope I don't ever need to turn off my Galaxy again

or just that something happens in a coming firmware :rolleyes:
[Galaxy S I9000 Android Development] supercurio:
I agree with you and was waiting for a confirmation.

After some hours of known music listening, i find some sort of coloration, and everything is a bit excessively "smooth", like the extreme opposite of "harsh".

That's nice, but does not fit very well to some genres.

WM8994 DSP have a "Programmable dynamic range controller".

Maybe this DAC is really sound as smooth as butter or maybe there is still some processing applied.

If this is the case, that's a multiband compressor, quite subtle, but when I listen to FLACs, want the raw PCM signal without any processing :rolleyes:
[Galaxy S I9000 Android Development] supercurio:
We really need an alternative to the ServiceMode app.

Scriptable, able to start with Android, this could be a durable fix.

And.. almost clean !

Hey Samsung, wake up, fix your default sound config !
[Galaxy S I9000 Android Development] Cutefox:
can someone post the default settings? just incase if we want to revert back?
[Galaxy S I9000 Android Development] supercurio:
You'll find them in the first post.

Or you can just reboot.
[Galaxy S I9000 Android Development] NeoXTC:
Have u tried 5.1? I not an audiophile but i can see the diff between normal and 5.1 But then that's maybe cos I"m using stereo headphones and enabling 5.1? :)

Anyway it's good to know we can tweak the audio to sounding good. but I use the samsung one so I don't think it'll make a difference with me :)
[Galaxy S I9000 Android Development] supercurio:
When listening to music, "5.1" is just a gimmick effect that produces a strange frequency response and tries to increase stereo separation between left and right channels.

I'ts anything but appropriate for music listening to my taste, but everybody taste different :D

The samsung one... samsung earphones ?

Sure, you'll get more musicality with this settings, they restore an accurate signal reproduction.
[Galaxy S I9000 Android Development] NeoXTC:
ah I c. I shall try it. I'm hardly ever picky with my music ahah maybe this will be the start to me being more picky :) I shall now try.
[Galaxy S I9000 Android Development] Bhonka:
Are you using the default music app or something else?

I'm using http://development.piratemedia.tv/2010-06-06-music-mod-v1-6-mdpi-hdpi/ atm.
[Galaxy S I9000 Android Development] supercurio:
Default music app and a MPD client (MPDroid) to stream.

I've dug a bit more into the kernel source, and found the code responsible of switching from a mode to another (connecting pins the the appropriate DAC, etc)

In only 3 place in wm8994_aries.c, we can find

wm8994_write(codec, WM8994_AIF1_DAC1_EQ_GAINS_1, 0x0000)

0x0000 is nothing like what we find on the phone running.

For now my guess is that this equalizer (and maybe some other settings about multiband compression) is set by the hardware itself by default, and that we need to disable it manually.
[Galaxy S I9000 Android Development] twit_xp:
Someone please sticky this thread! :D

Currently on UE Super-Fi 10 pros and the sound quality (after the fix) is awesome!

Edit: Looks like my Cowon D2 wont be coming to work with me anymore :)
[Galaxy S I9000 Android Development] elbasso:
SO......... where is it :confused:?
[Galaxy S I9000 Android Development] daigoro64:
Please allow me to search it for you. It is here: http://xdaforums.com/showthread.php?t=758326
[Galaxy S I9000 Android Development] °Dexter°:
Awesome difference! I was blaming it on the headphones (the ones included,i'm not an audiophile :D),but now it's really good...thanks so much (i already tried it in the past,but i didn't read that it resets after reboot,and i rebooted straight after the fix,to "apply" it :D,i didn't notice difference in fact...now it's a joy to listen music :D).

Shame on Samsung and its awful software "solutions"
[Galaxy S I9000 Android Development] gjarnling:
amazing work all! works great, blasting my head off with my atomic floyds :-) keep it up!
[Galaxy S I9000 Android Development] mets3214:
for the fir_coeff ones i put 0 as input by accident and its all like this

fir_coeff 0:0x0

fir_coeff 1:0x0

etc..

How do I fix this?
[Galaxy S I9000 Android Development] supercurio:
Not in my tests − concerning the EQ −
[Galaxy S I9000 Android Development] supercurio:
I think JM2 is all right too. Thank you for sharing the info
[Galaxy S I9000 Android Development] supercurio:
You shouldn't expect less on you Galaxy S :D

0 is the desired value, and becomes is displayed as 0x0 by Service Mode because these values are considered as hexadecimals.
[Galaxy S I9000 Android Development] mets3214:
but isnt it supposed to be like this

[1]fir_coreff 0 : 0xffff49

[2]fir_coreff 0 : 0xfffce6

[3]fir_coreff 0 : 0xfffab3

[4]fir_coreff 0 : 0xfffccb

[5]fir_coreff 0 : 0xfff0e9

[6]fir_coreff 0 : 0xffffc7

[7]fir_coreff 0 : 0x3e4a

instead of how mine is

[1]fir_coreff 0 : 0x0

[2]fir_coreff 1 : 0x0

[3]fir_coreff 2 : 0x0

[4]fir_coreff 3 : 0x0

[5]fir_coreff 4 : 0x0

[6]fir_coreff 5 : 0x0

[7]fir_coreff 6 : 0x0
[Galaxy S I9000 Android Development] supercurio:
You mean every fir_coreff is at 0 after boot ?

If not, they are at 0 because you set them to 0.
[Galaxy S I9000 Android Development] °Dexter°:
Mets,you're doing good,coeff voices maintain 1-2-3 numbers,values must be set to 0x0
[Galaxy S I9000 Android Development] The.Opethian:
I recommend that we update the original post with the specific information. A lot of people are very specific in regards to these things, especially if it means playing with the phones default settings via a special menu. After all, 3 does not equal 0 right? :)
[Galaxy S I9000 Android Development] cba1986:
Thanks for the answer. The only thing that we need now is how to solve the GPS issue.
[Galaxy S I9000 Android Development] supercurio:
Done! 10car
[Galaxy S I9000 Android Development] cba1986:
You can give us a pointer to that "work" that you and gilksen are doing?
[Galaxy S I9000 Android Development] supercurio:
Sure :)

A really ambitious − and clean − lagfix.

http://xdaforums.com/showthread.php?p=7741089#post7741089
[Galaxy S I9000 Android Development] yipcanjo:
Did anyone find a way to make these values *stick* after a reboot? I too found the default MAX volume a tad too quiet -- especially if I was outdoors, which I frequently am. So far, setting the MAX to "100" seems pretty good, but I'll be bummed to lose it when I reboot.

Anyway to have the system quickly change that value upon booting up?

{Sorry...wrong thread :( }
[Galaxy S I9000 Android Development] cba1986:
Sounds Wonderful. This kernel will include the permanent audio fix?

Keep up the good work!!!
[Galaxy S I9000 Android Development] mets3214:
I did the fix and it sounds better but still worse than my iphone 4. My iphone 4 goes louder and is clearer and has better bass
[Galaxy S I9000 Android Development] cba1986:
Did you do the trick in the page 30 post 300?
[Galaxy S I9000 Android Development] gilsken:
After some tries to patch the Service Mode but unsuccesfully , we are moving forward to patch the kernel directly. In the meantime, we also tried to fix the lag fix by mounting natively the /data in ext4 instead of rfs filesystem. At the moment, supercurio posted here the solution for this issue. And I've just finished a new application (mixget.apk) which is a widget that allows you to preset the media volume in 3 profiles (ear,standard,boost) and also plays with the alsa_amixer to setup the headset's output at a correct level. At this moment, I need more tests before release it. Its installation is very simple: no need adb or su just install my update.zip and reboot in recovery mode to install it. If you want to try it as beta tester, please pm me.
[Galaxy S I9000 Android Development] }{Alienz}{:
I may be interested gilsken.