From: Lee Revell <rlrevell@joe-job.com>
To: Adrian McMenamin <adrian@mcmen.demon.co.uk>
Cc: linux-sh <linuxsh-dev@lists.sourceforge.net>,
alsa-devel@alsa-project.org
Subject: Re: kernel threads etc
Date: Mon, 06 Mar 2006 18:48:10 -0500 [thread overview]
Message-ID: <1141688891.25487.91.camel@mindpipe> (raw)
In-Reply-To: <1141687750.9230.24.camel@localhost.localdomain>
On Mon, 2006-03-06 at 23:29 +0000, Adrian McMenamin wrote:
> On Mon, 2006-03-06 at 18:11 -0500, Lee Revell wrote:
> > On Mon, 2006-03-06 at 22:27 +0000, Adrian McMenamin wrote:
> > > I have an interrupt handler in my sound driver that calls this:
> >
> > You never explained why you want to create a kernel thread rather than
> > implementing copy/silence callbacks like the docs say.
> >
> > Lee
>
> Because what the documents actually say is: "Some chips have their own
> hardware buffers and the DMA transfer from the host memory is not
> available."
>
> Well, DMA is very much available. Though I can see that: "Another case
> is that the chip uses a PCI memory-map region for the buffer" could be
> similar.
>
Sorry, I guess I'm still not getting it.
You say things like this:
"I admit that my dma code as it is today won't work properly - the dma
transfer function tries to fill the whole of the ring buffer everytime
it is called. But it is only being called once - which is the real
problem! I can fix the dma issue I am sure, but it is not the blockage
at the moment.
When the pointer callback returned incorrect values the dma function did
get called more than once and the sample was all tranferred, if in a
useless way. But now it sends the correct value (and I've tested it as
such)such) it doesn't and the playback is stuck in an endless loop
merely playing the first part of the sample."
What exactly is this "DMA function" doing? If you have to write a
function to transfer the samples from host memory to the device - how is
that DMA?
When I think of soundcard DMA I mean that you tell the card where in
host memory the buffer is, then to start the DMA, and from then on,
until you stop it, the device will automatically write audio into that
area of host memory until you tell it to stop.
Lee
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
next prev parent reply other threads:[~2006-03-06 23:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1141684061.9230.15.camel@localhost.localdomain>
2006-03-06 23:11 ` kernel threads etc Lee Revell
2006-03-06 23:29 ` Adrian McMenamin
2006-03-06 23:38 ` Adrian McMenamin
[not found] ` <1141687750.9230.24.camel@localhost.localdomain>
2006-03-06 23:48 ` Lee Revell [this message]
2006-03-07 0:11 ` Adrian McMenamin
[not found] ` <1141690313.9230.32.camel@localhost.localdomain>
2006-03-07 0:22 ` Lee Revell
2006-03-07 21:19 ` Adrian McMenamin
2006-03-07 21:29 ` Lee Revell
2006-03-07 21:32 ` Adrian McMenamin
[not found] ` <1141767139.9232.17.camel@localhost.localdomain>
2006-03-07 21:36 ` Lee Revell
2006-03-07 23:28 ` Adrian McMenamin
2006-03-07 0:26 ` Lee Revell
[not found] ` <1141688305.9230.26.camel@localhost.localdomain>
2006-03-06 23:49 ` Lee Revell
2006-03-06 22:27 Adrian McMenamin
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=1141688891.25487.91.camel@mindpipe \
--to=rlrevell@joe-job.com \
--cc=adrian@mcmen.demon.co.uk \
--cc=alsa-devel@alsa-project.org \
--cc=linuxsh-dev@lists.sourceforge.net \
/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.