Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.co.uk>
To: ALSA development <alsa-devel@alsa-project.org>
Subject: snd-xfi programming, some guidelines.
Date: Sun, 19 Oct 2008 10:20:51 +0100	[thread overview]
Message-ID: <48FAFBF3.4070106@superbug.co.uk> (raw)

Hi,

I have not had time to review the current work on the snd-xfi, but I
have provided input if I think it would be useful.

I have one more piece of information that might help.
The xfi has two ways to talk to all the registers.
1) ioports using ioport pointer offset write method as familiar with
older emu10k1 cards.
2) iomem using simple memory writes.

The same registers on the xfi card can be accessed via both methods.
There is some guidance as to when to use each. I.e. Do not use iomem for
everything.
There are some registers that take longer to write to than others.
Unfortunately, the datasheet does not tell me which these slow are, so
trial and error might be required.
Now, if one uses the iomem to write to these registers that take a long
time to update, it ties up the entire PCI bus for the entire duration,
so this is not a good idea. So, the recommendation is that one should
use ioports to access these slow registers as this will not block the
PCI bus.

I suggest putting a timer round each ioport and iomem write to find the
slow ones.

Kind Regards

James

                 reply	other threads:[~2008-10-19  9:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=48FAFBF3.4070106@superbug.co.uk \
    --to=james@superbug.co.uk \
    --cc=alsa-devel@alsa-project.org \
    /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