All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Guilhem Tardy <guilhem_tardy@yahoo.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: documentation
Date: Wed, 24 Apr 2002 18:58:20 +0200	[thread overview]
Message-ID: <s5h8z7dghjn.wl@alsa2.suse.de> (raw)
In-Reply-To: <20020424142604.29202.qmail@web11508.mail.yahoo.com>

At Wed, 24 Apr 2002 07:26:04 -0700 (PDT),
Guilhem Tardy wrote:
> 
> Hi,
> 
> I am writing an ALSA driver for a new card. I had doc for 0.5.0, but this is
> outdated and so far had to do with examples in the 0.9.0beta12 distribution
> (mainly dummy.c and cs4281.c). Is there any doc available otherwise?

no, unfortunately not yet.
i posted a very brief info recently on alsa-devel.
please check out the archive.


> Any hint as for what I am facing, given that my card doesn't do DMA.
 
then you have to define copy and silence ops additionally.
copy the data on user buffer to the destination in these ops.
you'll need to reschedule ocasionally to avoid too long code path.
an example is found in gus driver (gus_pcm.c).
you can also use need_resched() to check the rescheduling.


> What is required from my part to support memory mapping from the driver to the
> application? Would this be supported through the OSS compatibility layer, too?

hmm...  mmap without dma?
how do you transfer the data on buffer to hardware?

the copy and silence ops are called when write() is called (more
exactly on alsa it's ioctl) - the thread writing to the device does
actually work like DMA.  on mmap mode, there is no such one.  so you
need an extra thread (or if it's not too heavy then tasklet might be
available) anyway.


Takashi

  reply	other threads:[~2002-04-24 16:58 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-24 14:26 documentation Guilhem Tardy
2002-04-24 16:58 ` Takashi Iwai [this message]
2002-04-24 19:32   ` documentation Guilhem Tardy
2002-04-26 17:54     ` documentation Takashi Iwai
2002-05-03 16:11       ` documentation Guilhem Tardy
2002-05-03 16:22         ` documentation Paul Davis
2002-05-03 16:28         ` documentation Takashi Iwai
2002-04-25  0:05   ` more info Guilhem Tardy
2002-04-25  0:34     ` Paul Davis
  -- strict thread matches above, loose matches on Subject: below --
2020-06-06 17:09 Documentation G.W. Haywood
2020-06-07 21:23 ` Documentation Pablo Neira Ayuso
2020-06-10 12:55   ` Documentation G.W. Haywood
2017-03-27  5:53 documentation Julia Lawall
2011-04-13 23:33 Documentation Eugene Shatsky
2011-04-14  4:44 ` Documentation Jonáš Vidra
2011-04-14 13:54 ` Documentation Edward Shishkin
2011-01-31 21:39 documentation Roberto Spadim
2011-01-31 21:43 ` documentation Mathias Burén
2011-01-31 21:58 ` documentation NeilBrown
2011-01-31 22:14   ` documentation Roberto Spadim
2011-02-01  9:37     ` documentation hansbkk
2011-02-01 13:49       ` documentation Roberto Spadim
2010-12-01 18:00 Documentation David Lambert
2010-12-01 18:06 ` Documentation Stefan Schmidt
2010-12-01 18:39   ` Documentation David Lambert
2010-12-01 18:54     ` Documentation Stefan Schmidt
2010-12-01 22:46       ` Documentation Robert Foerster
2010-12-02 20:37         ` Documentation David Lambert
2010-12-02 20:52           ` Documentation Robert Foerster
2010-12-03  7:35             ` Documentation Christophe Aeschlimann
2010-03-14  0:17 Documentation Giuseppe Macrì
2006-02-10  8:20 Documentation Nico -telmich- Schottelius
2005-10-24 19:05 Documentation Vagin Andrey S.
2004-06-24 17:10 Documentation Tomas Ebenlendr
2004-06-24 22:03 ` Documentation Yoshinori K. Okuji
2004-06-25 13:17   ` Documentation Jeroen Dekkers
2004-06-26 15:05     ` Documentation Yoshinori K. Okuji
2004-05-27 13:12 Documentation Alexander E. Patrakov
2004-05-28 23:25 ` Documentation Greg KH
2004-06-02  6:11 ` Documentation Niko Sauer
2004-05-15 14:28 Documentation Jody
2004-05-17 13:35 ` Documentation Andrey Romanenko
2004-05-17 13:40 ` Documentation Miguel Bolanos
2003-06-06 13:20 Documentation Matthew Wilcox
2002-08-29  9:39 documentation vandana  mehtani
2002-08-29 15:46 ` documentation Dave Wilhardt
2002-03-22 15:32 Documentation Gopakumar.C.E
2002-03-30  7:42 ` Documentation Ralf Baechle
2002-02-02  9:18 Documentation Guillaume Chamberland-Larose
2002-02-02 10:39 ` Documentation Yven J. Leist
2002-02-05 18:18   ` Documentation Randy.Dunlap
2001-11-15 18:03 Documentation war

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=s5h8z7dghjn.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=guilhem_tardy@yahoo.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 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.