All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cameron Hutchison <camh+alsa@xdna.net>
To: alsa-devel@lists.sourceforge.net
Subject: ens1371/ac97 broken on my machine
Date: Wed, 21 May 2003 16:34:08 +1000	[thread overview]
Message-ID: <20030521063408.GA11993@imladris> (raw)

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've successfully used this sound hardware with alsa for the last three
years.

Can anyone help?



-------------------------------------------------------
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

             reply	other threads:[~2003-05-21  6:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-21  6:34 Cameron Hutchison [this message]
2003-05-21 10:59 ` ens1371/ac97 broken on my machine Takashi Iwai
     [not found]   ` <20030522045314.GA24245@imladris>
2003-05-22  9:50     ` Takashi Iwai
2003-06-16  4:47   ` Cameron Hutchison

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=20030521063408.GA11993@imladris \
    --to=camh+alsa@xdna.net \
    --cc=alsa-devel@lists.sourceforge.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.