[alsa-devel] set_params:1073: not enough memory

Takashi Iwai tiwai at suse.de
Mon Feb 2 14:14:02 CET 2009


At Thu, 29 Jan 2009 22:43:05 +0000,
maarten van es wrote:
> 
> Hello all,
> 
> I am trying to get alsa to work using buildroot to crosscompile to
> i686-linux-uclibc. I am using the latest git version of alsa-lib and a
> recent git version of alsa-util. I am stuck with the same error as in
> the message included below when using aplay. So far I have been able
> to narrow this down to the function set_params in aplay.c, lines 1070,
> 1071:
> 
> chunk_bytes = chunk_size * bits_per_frame / 8;
> audiobuf = realloc(audiobuf, chunk_bytes);
> 
> chunk_size is 0 here and obviously the realloc fails.
> 
> Any ideas on what's going on here?

No idea yet.  But can you reproduce the same problem with glibc?


Takashi

> For the record, "aplay -L" lists the correct devices, "aplay -D null
> test.wav" works ok and the card works correctly using alsa version
> 1.0.16 on standard suse 11.0.
> 
> Best regards
> Maarten van Es
> 
> 
> 
> 
> Hello all,
> 
> I'm trying to get alsa 1.0.18 working on a ARM PXA processor and I'm
> stuck with the following error message:
> 
> aplay /Sinus.raw -fcd
> Playing raw data '/Sinus.raw' : Signed 16 bit Little Endian, Rate 44100
> Hz, Stereo
> aplay: set_params:1073: not enough memory
> 
> alsa kernel was compiled with alsa 1.0.16, alsa.conf, located in
> /usr/share/alsa is the basic:
> 
> pcm.!default {
> 	type hw
> 	card 0
> 	}
> 
> 	ctl.!default {
> 	type hw
> 	card 0
>          }
> 
> also aplay -l and alsaconf store show the message:
> 
> ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL hw:0
> 
> However the card shows up /proc/asound/cards and alsamixer is able to
> access it.
> 
> Any ideas?
> 
> Best regards
> 
> Michael
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 


More information about the Alsa-devel mailing list