From: Takashi Iwai <tiwai@suse.de>
To: Jaroslav Kysela <perex@suse.cz>
Cc: "Gupta, Kshitij" <kshitij@ti.com>, alsa-devel@lists.sourceforge.net
Subject: Re: FW: DMA producer/consumer
Date: Thu, 11 Mar 2004 18:56:38 +0100 [thread overview]
Message-ID: <s5hr7vzjmi1.wl@alsa2.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0403111840580.1961@pnote.perex-int.cz>
At Thu, 11 Mar 2004 18:43:39 +0100 (CET),
Jaroslav wrote:
>
> On Thu, 11 Mar 2004, Takashi Iwai wrote:
>
> > unfortunately, the current implementation of ALSA PCM middle layer
> > isn't well suited for this kind of hardwares. it'll be a bit more
> > complicated than you think.
>
> I don't think that's this case. I'm not sure, if the basic midlevel
> mechanism is understood: The midle level code expects that driver
> start/stop the stream in the trigger callback, so if you can queue
> more 'periods' into the DMA engine, do it and abort/pause the transfer
> only the trigger callback request. You don't need to check appl/hw_ptr
> in the lowlevel code.
hmm, if i understand correctly, this DMA engine needs the update of
DMA queue. i.e. the driver needs to feed chunks manually in prior
to the DMA start, and continues feeding the available chunks after
that as long as the stream is running. this is somewhat analogous
with the case with the external hardware buffer.
correct me if i'm wrong.
Takashi
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
next prev parent reply other threads:[~2004-03-11 17:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-11 4:00 FW: DMA producer/consumer Gupta, Kshitij
2004-03-11 14:44 ` Takashi Iwai
2004-03-11 17:43 ` Jaroslav Kysela
2004-03-11 17:56 ` Takashi Iwai [this message]
2004-03-11 18:00 ` Jaroslav Kysela
-- strict thread matches above, loose matches on Subject: below --
2004-03-12 9:24 Gupta, Kshitij
2004-03-12 9:32 ` Jaroslav Kysela
2004-03-12 9:41 Gupta, Kshitij
2004-03-12 9:49 ` Jaroslav Kysela
2004-03-12 9:59 Gupta, Kshitij
2004-03-12 10:14 ` Jaroslav Kysela
2004-03-12 10:40 Gupta, Kshitij
2004-03-12 11:42 ` Jaroslav Kysela
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=s5hr7vzjmi1.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=kshitij@ti.com \
--cc=perex@suse.cz \
/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.