[ALSA - driver 0002132]: No sound from speakers

bugtrack
2006-06-12T03:26:06Z

Last Modified: 06-12-2006 05:26 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.
======================================================================

----------------------------------------------------------------------
Raymond - 06-12-06 05:23
----------------------------------------------------------------------
It seem that some delay is needed to wait for those flags changed

/* 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;
+ /* add 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;
+ /* add delay */
}
outl(ES_1371_CODEC_READS(reg), ES_REG(ensoniq, 1371_CODEC));

----------------------------------------------------------------------
rlrevell - 06-12-06 05:26
----------------------------------------------------------------------
What if you use the *_p variants of outl, outw, etc?

man 2 outl_p