All of lore.kernel.org
 help / color / mirror / Atom feed
* set_params:1073: not enough memory
@ 2009-01-13 12:11 Michael Hirsch
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Hirsch @ 2009-01-13 12:11 UTC (permalink / raw)
  To: Alsa-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* set_params:1073: not enough memory
@ 2009-01-29 22:43 maarten van es
  2009-02-02 13:14 ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: maarten van es @ 2009-01-29 22:43 UTC (permalink / raw)
  To: alsa-devel

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?

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-20 22:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-13 12:11 set_params:1073: not enough memory Michael Hirsch
  -- strict thread matches above, loose matches on Subject: below --
2009-01-29 22:43 maarten van es
2009-02-02 13:14 ` Takashi Iwai
2009-02-20 22:18   ` maarten van es

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.