From: Daniel Mack <daniel@zonque.org>
To: "jonsmirl@gmail.com" <jonsmirl@gmail.com>,
alsa-devel mailing list <alsa-devel@alsa-project.org>
Subject: Re: [PATCH] First attempt at a driver for the internal codec on the Allwinner A20.
Date: Wed, 02 Jul 2014 15:20:37 +0200 [thread overview]
Message-ID: <53B40725.5030704@zonque.org> (raw)
In-Reply-To: <CAKON4OzzK-+hYWYFXPySnHuiz++6J-9PkEBzZ6eB+pHLS4vDEQ@mail.gmail.com>
On 07/02/2014 03:05 PM, jonsmirl@gmail.com wrote:
> Missing DMA buffer was caused by missing platform_name.
>
> static struct snd_soc_dai_link cdc_dai = {
> .name = "cdc",
> .stream_name = "CDC PCM",
> .codec_dai_name = "sunxi-codec-dai",
> .cpu_dai_name = "1c22c00.codec",
> .codec_name = "1c22c00.codec",
> .platform_name = "1c22c00.codec",
>
> Something is still messed up...
>
> root@linaro-developer:~# aplay x.wav
> Playing WAVE 'x.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
> aplay: pcm_write:1939: write error: Input/output error
> root@linaro-developer:~#
This error is usually caused by a stuck DMA channel. IOW, the DMA
pointer is not moving forward, and after some seconds, ALSA decides that
something can't be right and shuts down the stream again.
Maybe start with adding printks to your DMA controller's IRQ routine or
something.
Daniel
prev parent reply other threads:[~2014-07-02 13:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-01 15:36 [PATCH] First attempt at a driver for the internal codec on the Allwinner A20 Jon Smirl
2014-07-02 13:05 ` jonsmirl
2014-07-02 13:20 ` Daniel Mack [this message]
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=53B40725.5030704@zonque.org \
--to=daniel@zonque.org \
--cc=alsa-devel@alsa-project.org \
--cc=jonsmirl@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox