Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "David Gómez" <dabisu@gmail.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Intel8x0 still broken in 2.6.9-ac16
Date: Mon, 20 Dec 2004 19:14:42 +0100	[thread overview]
Message-ID: <s5hllbsvnu5.wl@alsa2.suse.de> (raw)
In-Reply-To: <ae4c71570412170938139bd546@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]

At Fri, 17 Dec 2004 18:38:54 +0100,
David Gómez wrote:
> 
> Hi Takashi ;)
> 
> On Fri, 17 Dec 2004 16:39:28 +0100, Takashi Iwai <tiwai@suse.de> wrote:
> > > codec_write 0: semaphore is not ready for register 0x2
> > > codec_write 0: semaphore is not ready for register 0x2
> > > codec_write 0: semaphore is not ready for register 0x2
> > 
> > This implies that wrong SDI's are assigned to the codec or GLOB_STA
> > register shows something different.
> > 
> > Please attach /proc/asound/card0/intel8x0 and
> 
> [huma@miller] [~] % cat /proc/asound/card0/intel8x0 
> Intel8x0
> 
> Global control        : 0x00000000
> Global status         : 0x08700000
> SDM                   : 0x00000008
> AC'97 codecs ready    : none
> AC'97 codecs SDIN     : 0 0 0

The GLOB_STA register shows a weird value.
That's why codecs can't get probed.

Could you try the attached patch and check the kernel messages?

> 
> > /proc/asound/card0/codec97#0/* files for debugging.
> 
> 0-0/0: Conexant id 30

Ok, that's only a garbage.  Forget it...


Takashi

[-- Attachment #2: Type: text/plain, Size: 1122 bytes --]

Index: alsa-kernel/pci/intel8x0.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/intel8x0.c,v
retrieving revision 1.179
diff -u -r1.179 intel8x0.c
--- alsa-kernel/pci/intel8x0.c	15 Dec 2004 15:23:13 -0000	1.179
+++ alsa-kernel/pci/intel8x0.c	20 Dec 2004 18:13:06 -0000
@@ -1952,6 +1952,7 @@
 				codecs++;
 			if (glob_sta & ICH_TCR)
 				codecs++;
+			printk(KERN_DEBUG "XXX codec probing: codecs = %d, glob_sta = 0x%08x\n", codecs, glob_sta);
 			chip->in_sdin_init = 1;
 			for (i = 0; i < codecs; i++) {
 				snd_intel8x0_codec_read_test(chip, i);
@@ -2142,6 +2143,7 @@
 			snd_printk(KERN_ERR "codec_ready: codec is not ready [0x%x]\n", igetdword(chip, ICHREG(GLOB_STA)));
 			return -EIO;
 		}
+		printk(KERN_DEBUG "XXX GLOB_STA reads 0x%08x\n", status);
 
 		if (chip->device_type == DEVICE_INTEL_ICH4)
 			/* ICH4 can have three codecs */
@@ -2156,6 +2158,7 @@
 			do_delay(chip);
 			status |= igetdword(chip, ICHREG(GLOB_STA)) & nstatus;
 		}
+		printk(KERN_DEBUG "XXX GLOB_STA reads end: 0x%08x\n", status);
 
 	} else {
 		/* resume phase */

  reply	other threads:[~2004-12-20 18:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-16 22:54 Intel8x0 still broken in 2.6.9-ac16 David Gómez
2004-12-17 15:39 ` Takashi Iwai
2004-12-17 17:38   ` David Gómez
2004-12-20 18:14     ` Takashi Iwai [this message]
     [not found]       ` <ae4c71570412201519597d596a@mail.gmail.com>
2004-12-21 10:20         ` Takashi Iwai
     [not found]           ` <ae4c715704122111563be9a075@mail.gmail.com>
2004-12-22 14:53             ` Takashi Iwai
2004-12-22 19:22               ` David Gómez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hllbsvnu5.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=dabisu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox