[ALSA - driver 0002132]: No sound from speakers

bugtrack
2006-06-12T03:18:37Z

Last Modified: 06-12-2006 05:18 CEST
======================================================================
Summary: No sound from speakers
Description:
Alsa seems to detect the sound card, but when I try to actually play
something there is no sound from the speakers.
======================================================================

----------------------------------------------------------------------
bzbarsky - 06-12-06 04:36
----------------------------------------------------------------------
I tried replacing the cond_resched() with msleep(50) and then msleep(200)
when that didn't help. Still no sound, but now ac97#0-0+regs a different
value for 0:00 (not for 0:7c or 0:7e, though):

0:00 = 4300
0:02 = 0d50
....
0:7c = 0000
0:7e = 4e53

The dmesg output has the following changes:

-codec write 0e = 8001
-codec write 0e = 8041
+codec write 0e = 805f

-codec write 12 = 0101
+codec write 12 = 0808

+codec write 1a = 0101

all the "codec read" lines are still what they used to be...

----------------------------------------------------------------------
Raymond - 06-12-06 05:18
----------------------------------------------------------------------
It seem to add some delay

/* wait for not busy (state 0) first to avoid
transition states */
for (t = 0; t < POLL_COUNT; t++) {
if ((inl(ES_REG(ensoniq, 1371_SMPRATE)) & 0x00870000) ==
0x00000000)
break;
+ /* delay */
}
/* wait for a SAFE time to write addr/data and then do it, dammit */
for (t = 0; t < POLL_COUNT; t++) {
if ((inl(ES_REG(ensoniq, 1371_SMPRATE)) & 0x00870000) ==
0x00010000)
break;
+ /* delay */
}
outl(ES_1371_CODEC_READS(reg), ES_REG(ensoniq, 1371_CODEC));