linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <bh40@calva.net>
To: Dan Malek <dan@netx4.com>,
	paulus@linuxcare.com, linuxppc-dev@lists.linuxppc.org
Subject: Re: dmasound problems
Date: Tue, 30 Nov 1999 16:44:39 +0100	[thread overview]
Message-ID: <19991130164439.032538@mailhost.mipsys.com> (raw)
In-Reply-To: <38431D61.4977E59B@netx4.com>


On Mon, Nov 29, 1999, Dan Malek <dan@netx4.com> wrote:

>If these are actually a power and reset to the audio codec, there
>are timing constraints.  Usually, you have to power up and hold
>reset at least 50 milliseconds before releasing reset (Crystal
>codec specs).
>
>This is why it may work with XMON if you set/clear bits
>individually, but not work when you run the code.

This was indeed a couple of timing issue (not only with those FCR bits
BTW). I traced MacOS and it sets both bits almost at the same time, so I
beleive this is not a reset issue, but I have to wait 1 sec
(mdelay(1000)) after setting the power bit and before programming the
chip if I want it to work. I tried various smaller delays, but 1s seems
the correct value. (with lower delays, I could still access the chip
registers and read the revision number, but I had no sound).

I still have one problem with the console beep not coming back after
sleep (if I launch mpg123, it plays fine and my beep is back. Also,
sleeping while mpg123 is playing correctly resume the play). This chip
seems to be very sensitive to timings in general.

A fix will be with my other patches (ibook, ...). Also, the sound chip is
now correctly powered off when the machine goes to sleep (or when
dmasound module is removed).


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

  reply	other threads:[~1999-11-30 15:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-30  0:28 dmasound problems BenH
1999-11-30  0:42 ` Dan Malek
1999-11-30 15:44   ` Benjamin Herrenschmidt [this message]
1999-11-30 15:49     ` Dan Malek
1999-11-30 17:34       ` Benjamin Herrenschmidt

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=19991130164439.032538@mailhost.mipsys.com \
    --to=bh40@calva.net \
    --cc=dan@netx4.com \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=paulus@linuxcare.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;
as well as URLs for NNTP newsgroup(s).