ALSA bug 0002948
Hi,
I'll apologize up front if this post seems a little incoherent, I've been trying to find a solution to this bug for a few months now and this is sort of a collection of observations that I've made and I'm hoping someone might read this and a light will go on...
The problem is no sound from a stac9200 on various gateway models, although it's possible to get sound from the mic port, never from the hp or internal stereo speakers. I recently used a windows utility called "regmon" to log the registry events that occurred during a jack cycle on the hp port. I expected to see something like this:
...
stsystra.exe:2380 SetValue HKLM\Software\Sigmatel\GlobalState\STSysTray\1.0\JackPresenced SUCCESS 0x0
...
indicating an event on port D, but instead got:
...
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompRatio SUCCESS 0xC8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompAttack SUCCESS 0x26B6
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompRelease SUCCESS 0x26B6
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompThreshDb SUCCESS 0xFFFFFDA8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\MakeupGainDB SUCCESS 0xC8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateRatio SUCCESS 0x258
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateAttack SUCCESS 0x2706
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateRelease SUCCESS 0x2706
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateThreshDb SUCCESS 0xFFFFDCD8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\Flags SUCCESS 0x9
...
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompRatio SUCCESS 0xE74
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompAttack SUCCESS 0x26AC
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompRelease SUCCESS 0x26AC
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompThreshDb SUCCESS 0x0
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\MakeupGainDB SUCCESS 0x0
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateRatio SUCCESS 0x64
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateAttack SUCCESS 0x2328
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateRelease SUCCESS 0x2328
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateThreshDb SUCCESS 0xFFFFDCD8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\Flags SUCCESS 0xB
...
and upon removal:
...
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompRatio SUCCESS 0xC8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompAttack SUCCESS 0x26B6
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompRelease SUCCESS 0x26B6
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompThreshDb SUCCESS 0xFFFFFDA8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\MakeupGainDB SUCCESS 0xC8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateRatio SUCCESS 0x258
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateAttack SUCCESS 0x2706
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateRelease SUCCESS 0x2706
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateThreshDb SUCCESS 0xFFFFDCD8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\Flags SUCCESS 0x8
...
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompRatio SUCCESS 0xE74
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompAttack SUCCESS 0x26AC
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompRelease SUCCESS 0x26AC
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompThreshDb SUCCESS 0x0
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\MakeupGainDB SUCCESS 0x0
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateRatio SUCCESS 0x64
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateAttack SUCCESS 0x2328
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateRelease SUCCESS 0x2328
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateThreshDb SUCCESS 0xFFFFDCD8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\Flags SUCCESS 0xA
...
Notice how the "Flags" key changes? I don't understand much of this, but it seems like the output is being manipulated via digital post-processing rather than re-tasking of the analog pin widgets. I had also been trying to make sense of the following line in the windows driver file:
InitVerbs: 03, a0, 45, 01;
which I'd guessed earlier could be interpreted as verb 0x3a0 and payload of 0x4501, (amplifier gain/mute, set input amp, port B(?), unmute, gain step 1) which actually makes some sense in this context, since if the flags key is referencing pin widgets the input mux should be unmuted if it's to be used as the limiter.
So if I'm actually on the right track here, how would something like this be implemented in ALSA? Via /etc/asoundrc? I tried setting the digital mixer as the default pcm device and now the gnome-volume-applet shows the device as being muted, and is unable to unmute it. Nothing is muted in alsamixer though, so I'm guessing that I didn't do this correctly in any event.
Another potentially interesting observation is that in the windows sound control options there is both a master volume control and a "Wave" volume control which seem to be bound together somehow even though they are independent controls. ie: the wave control appears to have the exact same function as the master volume.
Lastly, the system beep (which for what it's worth "sounds digital" to my untrained ears), works prior to the snd-hda-intel module being loaded, but not afterwards, even when unloaded. Is there any debugging code aready in alsa that would produce a copy of /proc/asound/card0/codec#0 prior to any codec initialization?
If anyone can make some suggestions I'd be quite grateful. Also, if there is any specific debugging results you'd like to see let me know and I'll append them to the bug report.
Thanks,
-brian
Well, to start, which version of the driver are you running? (cat /proc./asound/version).
Also, what model Gateway? What is the output from
http://bulletproof.servebeer.com/alsa/scripts/alsa-info.sh
These tidbits will help to get your system supported. What Windows does during use and what Alsa does can be completely different due to numerous factors. But for the Sigmatel codecs, the key is the initialization settings for the pins. Once these are set properly, the sound will work almost the same (well, alsa doesn't have the bloat that Windows has).
Tobin
Quoted 193 lines · Brian Hinz
Hi,
I'll apologize up front if this post seems a little incoherent, I've been trying to find a solution to this bug for a few months now and this is sort of a collection of observations that I've made and I'm hoping someone might read this and a light will go on...
The problem is no sound from a stac9200 on various gateway models, although it's possible to get sound from the mic port, never from the hp or internal stereo speakers. I recently used a windows utility called "regmon" to log the registry events that occurred during a jack cycle on the hp port. I expected to see something like this:
...
stsystra.exe:2380 SetValue HKLM\Software\Sigmatel\GlobalState\STSysTray\1.0\JackPresenced SUCCESS0x0
...indicating an event on port D, but instead got:
...
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompRatio SUCCESS0xC8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompAttack SUCCESS0x26B6
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompRelease SUCCESS0x26B6
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompThreshDb SUCCESS0xFFFFFDA8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\MakeupGainDB SUCCESS0xC8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateRatio SUCCESS0x258
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateAttack SUCCESS0x2706
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateRelease SUCCESS0x2706
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateThreshDb SUCCESS0xFFFFDCD8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\Flags SUCCESS0x9
...
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompRatio SUCCESS0xE74
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompAttack SUCCESS0x26AC
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompRelease SUCCESS0x26AC
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompThreshDb SUCCESS0x0
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\MakeupGainDB SUCCESS0x0
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateRatio SUCCESS0x64
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateAttack SUCCESS0x2328
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateRelease SUCCESS0x2328
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateThreshDb SUCCESS0xFFFFDCD8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\Flags SUCCESS0xB
...and upon removal:
...
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompRatio SUCCESS0xC8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompAttack SUCCESS0x26B6
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompRelease SUCCESS0x26B6
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompThreshDb SUCCESS0xFFFFFDA8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\MakeupGainDB SUCCESS0xC8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateRatio SUCCESS0x258
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateAttack SUCCESS0x2706
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateRelease SUCCESS0x2706
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateThreshDb SUCCESS0xFFFFDCD8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\Flags SUCCESS0x8
...
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompRatio SUCCESS0xE74
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompAttack SUCCESS0x26AC
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompRelease SUCCESS0x26AC
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompThreshDb SUCCESS0x0
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\MakeupGainDB SUCCESS0x0
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateRatio SUCCESS0x64
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateAttack SUCCESS0x2328
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateRelease SUCCESS0x2328
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateThreshDb SUCCESS0xFFFFDCD8
SetValue HKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\Flags SUCCESS0xA
...Notice how the "Flags" key changes? I don't understand much of this, but it seems like the output is being manipulated via digital post-processing rather than re-tasking of the analog pin widgets. I had also been trying to make sense of the following line in the windows driver file:
InitVerbs: 03, a0, 45, 01;
which I'd guessed earlier could be interpreted as verb
0x3a0and payload of0x4501, (amplifier gain/mute, set input amp, port B(?), unmute, gain step 1) which actually makes some sense in this context, since if the flags key is referencing pin widgets the input mux should be unmuted if it's to be used as the limiter.So if I'm actually on the right track here, how would something like this be implemented in ALSA? Via
/etc/asoundrc? I tried setting the digital mixer as the default pcm device and now the gnome-volume-applet shows the device as being muted, and is unable to unmute it. Nothing is muted in alsamixer though, so I'm guessing that I didn't do this correctly in any event.Another potentially interesting observation is that in the windows sound control options there is both a master volume control and a "Wave" volume control which seem to be bound together somehow even though they are independent controls. ie: the wave control appears to have the exact same function as the master volume.
Lastly, the system beep (which for what it's worth "sounds digital" to my untrained ears), works prior to the snd-hda-intel module being loaded, but not afterwards, even when unloaded. Is there any debugging code aready in alsa that would produce a copy of /proc/asound/card0/codec#0 prior to any codec initialization?
If anyone can make some suggestions I'd be quite grateful. Also, if there is any specific debugging results you'd like to see let me know and I'll append them to the bug report.
Thanks,
-brian_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Signature · 5 lines
Tobin Davis Real Users are afraid they'll break the machine -- but they're never afraid to break your face.
Hi Tobin,
Thanks for responding. I've added the output of the alsa-info.sh as an attachment to the issue report page:
https://bugtrack.alsa-project.org/alsa-bug/file_download.php?file_id=2210&type=bug
The model I'm struggling with is an NX100X, the bug was initially opened in regards to an MX3414 and others have reported the same trouble with an ML3109. The only reason that I mention this is that they all use the same ini file and windows driver, can't say with any real certainty if the hardware is identical, but they are all using stac9200 and agere softmodem codecs (the one that was reported recently as being claimed by the patch_si3054 erroneously, so I've removed that id from patch_si3054.c and also used probe_mask=1). I'm currently using an hg build from about two days ago.
As for the pin configs, I've read the datasheet front to back several times and as near as I can tell they are correct. What is shipped with the gateway driver seems like a very generic set of values - very similar to what the codec datasheet specifies as the defaults. These values are also what the windows registry reports, but those reported by microsoft's "uaatest" utility (from the MS hardware compatibility testsuite) seem to make a lot more sense, and since they are from a direct probe of the codec I've stuck with these. I've tried every variant that makes sense to me, but so far the only port that produces sound is the mic.
I also removed the motherboard from the laptop and probed around a bit with a continuity meter. The only notable thing that I could get from this was that I did not have continuity from any of the pins in the speaker connector to any of the pins on the codec - so I assume that there is an external amp somewhere, though I couldn't locate it. Is it possible that the modem is somehow involved? I've tried setting the EAPD bit but nothing there either... (however GPIO3 doubles as the SPDIF in and also controls EAPD, and the windows driver does have a "GPIO: "3": hex:85" line - I emailed IDT and asked what the significance of this was but never got a response).
Thanks,
-brian
Quoted 287 lines
From: Tobin Davis <[email protected]>
To: Brian Hinz <[email protected]>
CC: [email protected]
Subject: Re: [alsa-devel] ALSA bug 0002948
Date: Mon, 03 Sep 2007 15:44:00 -0700Well, to start, which version of the driver are you running? (cat /proc./asound/version).
Also, what model Gateway? What is the output from
http://bulletproof.servebeer.com/alsa/scripts/alsa-info.shThese tidbits will help to get your system supported. What Windows does during use and what Alsa does can be completely different due to numerous factors. But for the Sigmatel codecs, the key is the initialization settings for the pins. Once these are set properly, the sound will work almost the same (well, alsa doesn't have the bloat that Windows has).
Tobin
Quoted 3 lines · Brian Hinz
Hi,
I'll apologize up front if this post seems a little incoherent, I've
been
Quoted 1 line
trying to find a solution to this bug for a few months now and this is
sort
Quoted 1 line
of a collection of observations that I've made and I'm hoping someone
might
Quoted 3 lines
read this and a light will go on...
The problem is no sound from a stac9200 on various gateway models,
although
Quoted 1 line
it's possible to get sound from the mic port, never from the hp or
internal
Quoted 1 line
stereo speakers. I recently used a windows utility called "regmon" to
log
Quoted 6 lines
the registry events that occurred during a jack cycle on the hp port. I expected to see something like this:
...
stsystra.exe:2380 SetValue HKLM\Software\Sigmatel\GlobalState\STSysTray\1.0\JackPresenced SUCCESS
0x0Quoted 7 lines
...
indicating an event on port D, but instead got:
...
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompRatio
Quoted 3 lines
SUCCESS
0xC8
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompAttack
Quoted 3 lines
SUCCESS
0x26B6
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompRelease
Quoted 3 lines
SUCCESS
0x26B6
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompThreshDb
Quoted 3 lines
SUCCESS
0xFFFFFDA8
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\MakeupGainDB
Quoted 3 lines
SUCCESS
0xC8
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateRatio
Quoted 3 lines
SUCCESS
0x258
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateAttack
Quoted 3 lines
SUCCESS
0x2706
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateRelease
Quoted 3 lines
SUCCESS
0x2706
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateThreshDb
Quoted 3 lines
SUCCESS
0xFFFFDCD8
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\Flags
Quoted 4 lines
SUCCESS
0x9
...
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompRatio
Quoted 3 lines
SUCCESS
0xE74
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompAttack
Quoted 3 lines
SUCCESS
0x26AC
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompRelease
Quoted 3 lines
SUCCESS
0x26AC
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompThreshDb
Quoted 3 lines
SUCCESS
0x0
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\MakeupGainDB
Quoted 3 lines
SUCCESS
0x0
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateRatio
Quoted 3 lines
SUCCESS
0x64
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateAttack
Quoted 3 lines
SUCCESS
0x2328
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateRelease
Quoted 3 lines
SUCCESS
0x2328
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateThreshDb
Quoted 3 lines
SUCCESS
0xFFFFDCD8
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\Flags
Quoted 8 lines
SUCCESS
0xB
...and upon removal:
...
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompRatio
Quoted 3 lines
SUCCESS
0xC8
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompAttack
Quoted 3 lines
SUCCESS
0x26B6
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompRelease
Quoted 3 lines
SUCCESS
0x26B6
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\CompThreshDb
Quoted 3 lines
SUCCESS
0xFFFFFDA8
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\MakeupGainDB
Quoted 3 lines
SUCCESS
0xC8
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateRatio
Quoted 3 lines
SUCCESS
0x258
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateAttack
Quoted 3 lines
SUCCESS
0x2706
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateRelease
Quoted 3 lines
SUCCESS
0x2706
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\GateThreshDb
Quoted 3 lines
SUCCESS
0xFFFFDCD8
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Compressor\Flags
Quoted 4 lines
SUCCESS
0x8
...
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompRatio
Quoted 3 lines
SUCCESS
0xE74
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompAttack
Quoted 3 lines
SUCCESS
0x26AC
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompRelease
Quoted 3 lines
SUCCESS
0x26AC
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\CompThreshDb
Quoted 3 lines
SUCCESS
0x0
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\MakeupGainDB
Quoted 3 lines
SUCCESS
0x0
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateRatio
Quoted 3 lines
SUCCESS
0x64
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateAttack
Quoted 3 lines
SUCCESS
0x2328
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateRelease
Quoted 3 lines
SUCCESS
0x2328
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\GateThreshDb
Quoted 3 lines
SUCCESS
0xFFFFDCD8
SetValueHKLM\System\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings\filter\Rear\Presets\_Initial\Render\Limiter\Flags
Quoted 4 lines
SUCCESS
0xA
...Notice how the "Flags" key changes? I don't understand much of this,
but it
Quoted 2 lines
seems like the output is being manipulated via digital post-processing rather than re-tasking of the analog pin widgets. I had also been
trying to
Quoted 5 lines
make sense of the following line in the windows driver file:
InitVerbs: 03, a0, 45, 01;
which I'd guessed earlier could be interpreted as verb
0x3a0and payloadof
Quoted 1 line
0x4501, (amplifier gain/mute, set input amp, port B(?), unmute, gainstep 1)
Quoted 1 line
which actually makes some sense in this context, since if the flags key
is
Quoted 1 line
referencing pin widgets the input mux should be unmuted if it's to be
used
Quoted 3 lines
as the limiter.
So if I'm actually on the right track here, how would something like
this be
Quoted 1 line
implemented in ALSA? Via
/etc/asoundrc? I tried setting the digitalmixer
Quoted 1 line
as the default pcm device and now the gnome-volume-applet shows the
device
Quoted 1 line
as being muted, and is unable to unmute it. Nothing is muted in
alsamixer
Quoted 4 lines
though, so I'm guessing that I didn't do this correctly in any event.
Another potentially interesting observation is that in the windows sound control options there is both a master volume control and a "Wave"
volume
Quoted 2 lines
control which seem to be bound together somehow even though they are independent controls. ie: the wave control appears to have the exact
same
Quoted 3 lines
function as the master volume.
Lastly, the system beep (which for what it's worth "sounds digital" to
my
Quoted 1 line
untrained ears), works prior to the snd-hda-intel module being loaded,
but
Quoted 1 line
not afterwards, even when unloaded. Is there any debugging code aready
in
Quoted 1 line
alsa that would produce a copy of /proc/asound/card0/codec#0 prior to
any
Quoted 3 lines
codec initialization?
If anyone can make some suggestions I'd be quite grateful. Also, if
there
Quoted 11 lines
is any specific debugging results you'd like to see let me know and I'll append them to the bug report.
Thanks,
-brian_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel--
Tobin DavisReal Users are afraid they'll break the machine -- but they're never afraid to break your face.