From: "Clemens Ladisch" <cladisch@fastmail.net>
To: "Pharaoh ." <pharaoh137@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Input/output error while playing a file using aplay
Date: Tue, 26 Jun 2007 09:21:51 +0200 [thread overview]
Message-ID: <1182842511.3512.1197069785@webmail.messagingengine.com> (raw)
In-Reply-To: <61445c750706251138r290c2a7br6b911be6da7e53ce@mail.gmail.com>
Pharaoh . wrote:
> After rewriting the pointer function
It would really help if you'd show us the code of the version of the
driver that you're currently talking about.
> I am not getting the input/output error but I am getting underruns.
> ...
> ALSA sound/core/pcm_lib.c:167: BUG: stream = 0, pos = 0x1150000, buffer size = 0x4000, period size = 0x800
Here, "pos" is the value returned by your pointer callback. This value
should have been a frame number somewhere in the buffer, i.e., in the
range 0..0x3fff. Apparently, the pointer callback doesn't correctly
calculate this value.
Please remove most printk()s, and add some in the pointer callback to
show both the value that you get from the DMA controller, and the value
that this function returns.
Regards,
Clemens
next prev parent reply other threads:[~2007-06-26 7:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-22 20:12 Input/output error while playing a file using aplay Pharaoh .
2007-06-22 23:16 ` Pharaoh .
2007-06-25 6:56 ` Clemens Ladisch
2007-06-25 8:56 ` Pharaoh .
2007-06-25 11:00 ` Clemens Ladisch
2007-06-25 12:04 ` Pharaoh .
2007-06-25 13:35 ` Pharaoh .
2007-06-25 18:38 ` Pharaoh .
2007-06-26 7:21 ` Clemens Ladisch [this message]
2007-06-26 10:51 ` Pharaoh .
2007-06-26 10:55 ` Pharaoh .
2007-06-26 11:04 ` Pharaoh .
2007-06-26 13:17 ` Clemens Ladisch
2007-06-26 13:43 ` Pharaoh .
2007-06-26 17:17 ` Pharaoh .
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=1182842511.3512.1197069785@webmail.messagingengine.com \
--to=cladisch@fastmail.net \
--cc=alsa-devel@alsa-project.org \
--cc=pharaoh137@gmail.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.