All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Schlichting <Florian.Schlichting@gmx.de>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: debugging nm256: some results, many questions
Date: Mon, 13 Mar 2006 22:55:34 +0800	[thread overview]
Message-ID: <20060313145534.GA7995@tigerbay> (raw)
In-Reply-To: <s5h4q22mu89.wl%tiwai@suse.de>

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

On Mon, Mar 13, 2006 at 12:58:46PM +0100, Takashi Iwai wrote:
> 
> The writes in snd_nm256_ac97_reset() break the PM resume.  You should
> check reg_accessed[] and use the cached value if already written.

Yes, I just noticed the broken PM resume... The following is just to
check that I don't misunderstand things:

I originally wanted to write the initial values in snd_nm256_mixer(),
but there ac97 is still an ac97_template_t and doesn't have a register
cache. Still, reg_accessed[] is set there, meaning "register may be
touched". Consequently, in snd_nm256_ac97_reset() all usable
reg_accessed[] are already set, which the first time means nothing (and
all registers should be written), but during a resume means the value
shouldn't be touched... So there needs to be another way to distinguish
between these two states.

(I couldn't find any documentation about reg_accessed[], which to me
seems to indicate both "register can be accessed" and later "register
value is cached" - which really are two different things and I wonder
whether they should be kept apart?)

Assuming that when first initialized, all cache registers are set to
0x0000, which is also a valid volume setting, I could probably test for
a non-zero value in AC97_VENDOR_ID1, which would mean I've already done
the initial writing to the cache and it's a resume; otherwise all
registers are to be written.

> Additionally, we may use a static resolution table to skip the volume
> resolution detection with the latest ac97_codec.

I couldn't find any indication of that in 1.0.11rc3. Can you give me a
hint?

Florian

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-03-13 14:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-23 18:52 debugging nm256: some results, many questions Florian Schlichting
2006-02-24 18:15 ` Takashi Iwai
2006-03-11 17:44   ` Florian Schlichting
2006-03-13  6:46     ` Florian Schlichting
2006-03-13 11:58       ` Takashi Iwai
2006-03-13 14:55         ` Florian Schlichting [this message]
2006-03-13 15:50           ` Takashi Iwai
2006-03-14 19:59             ` Florian Schlichting
2006-03-14 20:16               ` Takashi Iwai
2006-03-15  6:09                 ` Florian Schlichting
2006-03-15  9:55                   ` Takashi Iwai
2006-03-15 13:23                     ` Florian Schlichting
2006-03-15 15:42                       ` Takashi Iwai
2006-03-16  1:42                         ` thanks Florian Schlichting

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=20060313145534.GA7995@tigerbay \
    --to=florian.schlichting@gmx.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=tiwai@suse.de \
    /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.