[alsa-devel] WM8727 & AT91SAM9G45: not enough memory
conn intel
connintel at gmail.com
Wed Aug 10 07:47:41 CEST 2011
Dear Friends,
While searching further into the mailinglist I came across
http://mailman.alsa-project.org/pipermail/alsa-devel/2010-August/031209.html
having the similar issue.
I have also tried running "cat /dev/urandom > /dev/audio" and found
following output same as in the link above:
# cat /dev/urandom > /dev/audio
atmel_ssc_startup: SSC_SR=0x204
atmel_ssc_hw_params: RCMR=00010721 RFMR=0000008f TCMR=00010702 TFMR=0000008f
atmel_ssc_dai: Starting clock
atmel_ssc_dai,hw_params: SSC initialized
atmel-pcm: hw_params: DMA for SSC0 PCM out initialized
(dma_bytes=32768, period_size=8192)
transmit enabled SSC_SR=0x000104cf
atmel-pcm:buffer_size = 8192,dma_area = ffac1000, dma_bytes = 32768
atmel-pcm: trigger: period_ptr=77962000, xpr=2006319104, xcr=4096,
xnpr=2006327296, xncr=4096
sr=65731 imr=0
ALSA sound/core/pcm_lib.c:1708: playback write error (DMA or IRQ trouble?)
ALSA sound/core/pcm_lib.c:1708: playback write error (DMA or IRQ trouble?)
cat: write error: Input/output error
ALSA sound/core/pcm_native.c:1482: playback drain error (DMA or IRQ trouble?)
atmel-pcm:buffer_size = 8192,dma_area = ffac1000, dma_bytes = 32768
atmel_ssc_shutdown: transmit disabled SSC_SR=0x000000c0
atmel_ssc_dau: Stopping clock
Andras: Can you please share if you are able to solve the issue? If
yes, where should I look into?
Any suggestions/thoughts will be helpful.
Have a Good Day,
Ankur.
On Tue, Aug 9, 2011 at 5:43 PM, conn intel <connintel at gmail.com> wrote:
> Dear Friends,
>
> I am using WM8727 codec with AT91SAM9G45 processor. I have implemented
> machine code as http://pastebin.com/axadqGhd .
>
> After insterting the module I got following output:
> # insmod sam9g45_wm8727.ko
> atmel-pcm:preallocate_dma_buffer: area=ffadf000, addr=77c40000, size=32768
> asoc: WM8727 <-> atmel-ssc0 mapping ok
>
> I am getting following error when I tried to play the wav file using
> command "aplay -D default sample_16.wav ":
>
> atmel_ssc_startup: SSC_SR=0x192
> Playing WAVE 'sample_16.wav' : Signed 16 bit Little Endian, Rate 44100
> Hz, Stereo
> atmel_ssc_hw_params: RCMR=00010721 RFMR=0000008f TCMR=00010702 TFMR=0000008f
> atmel_ssc_dai: Starting clock
> atmel_ssc_dai,hw_params: SSC initialized
> atmel-pcm: hw_params: DMA for SSC0 PCM out initialized
> (dma_bytes=32768, period_size=8192)
> transmit enabled SSC_SR=0x000104c3
> aplayatmel_ssc_shutdown: transmit disabled SSC_SR=0x000000c3
> :atmel_ssc_dau: Stopping clock
> set_params:1167: not enough memory
>
>
> Does anyone throw some light where and how to solve the issue? Kindly
> share if one needs further information.
>
> Have a Good Day,
> Thank you,
> Ankur.
>
More information about the Alsa-devel
mailing list