Distribution:Ubuntoo Breazy Hardware Environment: notebook samsung nv5000, sound: ES1988 Allegro-1 Software Environment:alsa 1.0.9 Problem Description: No sound after boot if headphone pluged.Only chenching volume halp to make it back .If phone not pluged - every thing working properly. This laptop have headphone output with usb for remotecontrol. I never use this controll - I jast don't have it. Plugging the headphone enabling usb-device: T: Bus=01 Lev=02 Prnt=02 Port=02 Cnt=03 Dev#= 7 Spd=12 MxCh= 0 D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=04e8 ProdID=5001 Rev= 1.00 C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms May be here is the problem. I'm reporting this bug becouse windows don't have this problem.
Created attachment 6259 [details] lspci
This bug looks fany but this is realy problem for me. I tryed "alsactl restore" but it's not help. I'f i cheng master it make only 50% back and after this i need to change PCM too after this is workin. With change i meen one point up or down. If volume is hi it's make realy streng impuls, after chang, wich can braece the pnones.
Did any earlier version of the kernel work correctly? If so, which versions?
Tested kernels: ubuntu-2.6.12-9-686; and vanilla 2.6.13; 2.6.14-rc1;2.6.14-rc3. I made more test to finde the problem, loaded module after boot, disabled usb and etc. If heaphone pluged before power_on - come this problem. If after power_on but before kernel init all working properly. Test One: plug in headphone, start laptop, kernel init, load module snd_mastro3, come sound impuls!!! (with test two or with windows there is no impuls), alsactr restore, play (no sound), alsamixer +1 ore -1 volume and pcm, play (working :-)) ) Test Two: Start, plug in, kernel init, load module, alsactl restore, play (working) May be on test one sound chip come with wrong configuration.
I made smole script wich help me boot with sound, and placet it to /etc/rc2.d/ directory. =================================start======================================= #!/bin/bash echo "Chonfiguring alsa" alsactl restore amixer set PCM,0 1+ # I tryed with 1%+ but it dasn't halp, only 1+ ore 1- amixer set PCM,0 1- amixer set Master,0 1+ amixer set Master,0 1- alsactl restore =============================end=====================================
How about the patch below?
Created attachment 6324 [details] Fix volume initialization
I tryed this patch too and it didn't helped. I tryed other script wich "reset" sound card. alsactl power off && alsactl poweron it's help to restore sound after boot.
I think this is power managmen issue. Windows on sturt_up fter two second disable and enable agene some divices: like usb, lan and may be sound (last one i can't check. Other i checked with multimetr). The same issue with on power off: windows disable usb, lan and sound before compleet poweroff (tested) Why there is no sound after boot? Becouse Jack Sense set to "On" on power_on - sound card starting not properly (jast bugy hardware), and need to be reseted, jast like with "alsactl power off && alsactl poweron" script. May be it's will be properly to reset devices like this before enabling.
Is this issue still present in kernel 2.6.16.5?
Yes. It is.
Thanks for this information. For the record, this is also tracked as https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1484
i don't have this hardware anymore.