From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: ens1371/ac97 broken on my machine Date: Wed, 21 May 2003 12:59:37 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20030521063408.GA11993@imladris> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20030521063408.GA11993@imladris> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Cameron Hutchison Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Wed, 21 May 2003 16:34:08 +1000, Cameron Hutchison wrote: > > The driver for the ens1371 chipset no longer works on my laptop. > It used to work in version 0.9.0rc3, but in version 0.9.2 and 0.93a, it > no longer works. When I try to run alsamixer, I get the error "No mixer > elems found" > > Details: > Distribution: Debian GNU/Linux (unstable) > Kernel: Linux 2.4.19, 2.4.20, 2.4.21rc2 > Alsa kernel version: 0.9.2, 0.9.3a > lspci output (with and without -n): > 00:09.0 Class 0401: 1102:8938 > 00:09.0 Multimedia audio controller: Creative Labs ES1371 > > I've tracked the issue back to the AC97 codec where it creates the mixer > elements (in function snd_ac97_mixer(), file ac97_codec.c), in > particular, this piece of code: > > /* test for AC'97 */ > /* test if we can write to the record gain volume register */ > snd_ac97_write_cache(ac97, AC97_REC_GAIN, 0x8a06); > if ((err = snd_ac97_read(ac97, AC97_REC_GAIN)) == 0x8a06) { > ac97->scaps |= AC97_SCAP_AUDIO; > ac97->caps = snd_ac97_read(ac97, AC97_RESET); > ac97->ext_id = snd_ac97_read(ac97, AC97_EXTENDED_ID); > if (ac97->ext_id == 0xffff) /* invalid combination */ > ac97->ext_id = 0; > } > > It seems that snd_ac97_read() does not read back the value 0x8a06 and > never sets AC97_SCAP_AUDIO, which means the mixer elements never get > created. i put a workaround code for ens1371 to avoid this. can you try the cvs version? thanks, Takashi ------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge