From: Stefan Schoenleitner <dev.c0debabe@gmail.com>
To: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Error with custom driver: playback drain error (DMA or IRQ trouble?)
Date: Mon, 07 Sep 2009 16:25:07 +0200 [thread overview]
Message-ID: <4AA517C3.5030409@gmail.com> (raw)
In-Reply-To: <1252330155.3283.5.camel@localhost>
Hi,
at the moment I'm trying to implement a custom driver which will use SPI
to transfer the PCM samples to a speech codec chip.
Since I guess that I will also have some problems with getting the SPI
timing right for the speech codec chip, I'm planning to bitbang the data.
For this reason in the driver I'm using non-dma transfers and the
copy/silence callbacks.
However, with my current code the content of the PCM buffer is only
copied a few times.
After that it seems to get stuck followed by the error:
ALSA sound/core/pcm_native.c:1499: playback drain error (DMA or IRQ
trouble?)
The code for the driver is available on pastebin here:
http://pastebin.com/m110336f0
Why do I get the drain error, why does the PCM sample transfer get stuck ?
cheers,
stefan
next prev parent reply other threads:[~2009-09-07 14:25 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-05 12:24 Problems with safe API and snd-cs46xx Sophie Hamilton
2009-09-07 12:32 ` Takashi Iwai
2009-09-07 13:29 ` Tony Vroon
2009-09-07 14:18 ` Raymond Yau
2009-09-07 14:25 ` Stefan Schoenleitner [this message]
2009-09-07 15:01 ` Takashi Iwai
2009-09-07 15:07 ` Raymond Yau
2009-09-07 15:15 ` Takashi Iwai
2009-09-07 22:47 ` Lennart Poettering
2009-09-07 23:10 ` Sophie Hamilton
2009-09-08 6:29 ` Takashi Iwai
2009-09-08 7:46 ` Sophie Hamilton
2009-09-08 8:53 ` Takashi Iwai
2009-09-09 11:04 ` Takashi Iwai
2009-09-09 12:29 ` Sophie Hamilton
2009-09-09 12:35 ` Takashi Iwai
2009-09-09 14:07 ` Lennart Poettering
2009-09-09 14:14 ` Takashi Iwai
2009-09-09 14:27 ` Lennart Poettering
2009-09-09 14:37 ` Takashi Iwai
2009-09-10 8:47 ` Raymond Yau
2009-09-08 13:38 ` Lennart Poettering
2009-09-08 14:42 ` Takashi Iwai
2009-09-09 2:18 ` Raymond Yau
2009-09-07 15:02 ` Sophie Hamilton
2009-09-07 17:04 ` Sophie Hamilton
2009-09-07 17:27 ` Takashi Iwai
2009-09-07 19:06 ` Sophie Hamilton
2009-09-08 6:38 ` Takashi Iwai
2009-09-08 8:19 ` Sophie Hamilton
2009-09-08 9:03 ` Takashi Iwai
2009-09-08 13:18 ` Raymond Yau
2009-09-08 13:21 ` Takashi Iwai
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=4AA517C3.5030409@gmail.com \
--to=dev.c0debabe@gmail.com \
--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 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.