All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Mathieu Rondonneau <mathieu.rondonneau@polymtl.ca>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Using preallocate pci, isa or nothing?
Date: Wed, 11 Feb 2004 20:49:39 +0100	[thread overview]
Message-ID: <s5hfzdh9z1o.wl@alsa2.suse.de> (raw)
In-Reply-To: <007101c3f0df$30d2f210$c4f9cb18@win2K>

At Wed, 11 Feb 2004 14:39:47 -0600,
Mathieu Rondonneau wrote:
> 
> 
> 
> > At Sun, 8 Feb 2004 18:29:10 -0600,
> > Mathieu Rondonneau wrote:
> > >
> > > Hi,
> > > I'm sorry for the html format, these are some questions according to my
> > > problems.
> > >
> > > I'm writing an ALSA driver for a CSB337 board (AT91RM9200). There is no
> PCI
> > > or ISA on this board. Should I preallocate memory with:
> > > snd_pcm_lib_preallocate_pages_for_all,
> > > snd_pcm_lib_preallocate_isa_pages_for_all() or
> > > snd_pcm_lib_preallocate_pci_pages_for_all()?
> > >
> > > There is a specific DMA (PDC) on the AT91RM9200, so i'm trying to use
> > > snd_pcm_lib_preallocate_pages_for_all() but seems complicated to
> understand
> > > what is needed by the ALSA pcm and what i have to write.
> > > What does the function snd_..._pointer() mean? should i need it if i
> don't
> > > use ISA or PCI mecanism?
> > > What does the function snd_pcm_period_elapsed() mean? Should i need it
> if i
> > > don't use ISA or PCI mecanism?
> >
> > did you take a look at my document?
> >
> > http://www.alsa-project.org/~iwai/writing-an-alsa-driver/
> >
> >
> > Takashi
> >
> 
> Yes I did, and i thank you for your work, your document is very helpfull.
> But, i'm not familiar with ALSA driver development.
> Could I use PCI or ISA mecanism (memory allocation and dma) even if there
> are no PCI or ISA bus in my board?

then, no.

but note that the functions you asked above have basically nothing to
do with PCI or ISA.  the whole preallocation meachanism is provided
for the abstraction regardless of BUS type.
also, pcm and control callbacks are also irrelevant to BUS type.


Takashi


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

  reply	other threads:[~2004-02-11 19:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-09  0:29 Using preallocate pci, isa or nothing? Mathieu Rondonneau
2004-02-11 12:25 ` Takashi Iwai
2004-02-11 20:39   ` Mathieu Rondonneau
2004-02-11 19:49     ` Takashi Iwai [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-02-07  2:45 using " Mathieu Rondonneau

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=s5hfzdh9z1o.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=mathieu.rondonneau@polymtl.ca \
    /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.