[ALSA - driver 0002132]: No sound from speakers

bugtrack
2006-06-11T20:38:35Z

Last Modified: 06-11-2006 22:38 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-11-06 05:29
----------------------------------------------------------------------
It seem that snd_es1371_codec_read() cannot read the correct value.

The first thing is to trace the read/write of codec registers by adding
printk statement.

static void snd_es1371_codec_write(struct snd_ac97 *ac97,
unsigned short reg, unsigned short val)
{
struct ensoniq *ensoniq = ac97->private_data;
unsigned int t, x;
+ printk(KERN_INFO "codec write %.2x = %.4x\n",reg,val);
mutex_lock(&ensoniq->src_mutex);
for (t = 0; t < POLL_COUNT; t++) {

for (t = 0; t < POLL_COUNT; t++) {
if ((x = inl(ES_REG(ensoniq, 1371_CODEC))) & ES_1371_CODEC_RDY) {
mutex_unlock(&ensoniq->src_mutex);
+ printk(KERN_INFO "codec read %.2x : %x\n",reg, x);
return ES_1371_CODEC_READ(x);
}
}

----------------------------------------------------------------------
bzbarsky - 06-11-06 22:38
----------------------------------------------------------------------
Attached the new dmesg output with those changes, as well as the same
output grepped for "codec".