All of lore.kernel.org
 help / color / mirror / Atom feed
* Memory allocation and the "prealloc" procfile
@ 2005-04-04  9:03 Andy Robinson
  2005-04-05 17:16 ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Robinson @ 2005-04-04  9:03 UTC (permalink / raw)
  To: ALSA devel

I'm using Mandrake 10.1 on a DELL Precision M60.
Soundcard is Intel 82801DB-ICH4
ALSA version 1.0.6

By default, /proc/asound/card0/pcm0p/sub0/prealloc contains the number
64 and SNDCTL_DSP_GETOSPACE reports a total of 16k bytes output space
available. If I
echo 128 >/proc/asound/card0/pcm0p/sub0/prealloc
then SNDCTL_DSP_GETOSPACE reports a total of 32k bytes.

My question is, what is the rest of the "prealloc" memory being used
for? And how can I change the amounts used for whatever other purposes,
so as to get a bigger SNDCTL_DSP_GETOSPACE buffer? It's not such a
problem for me but one of my users reports that with a 128k "prealloc",
he still gets only 4k from SNDCTL_DSP_GETOSPACE. Is it perhaps an ALSA
version issue?

I've asked before about this but still not found the answer. I'd be
grateful for any help.

I did look at the source but found it a bit difficult, as an ALSA
newbie, to see where the decision is being made.

Andy Robinson, Seventh String Software, www.seventhstring.com



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <20050405192033.6B8A88993B@sc8-sf-spam1.sourceforge.net>]
[parent not found: <20050408154303.E61098C466@sc8-sf-spam1.sourceforge.net>]

end of thread, other threads:[~2005-04-08 16:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-04  9:03 Memory allocation and the "prealloc" procfile Andy Robinson
2005-04-05 17:16 ` Takashi Iwai
     [not found] <20050405192033.6B8A88993B@sc8-sf-spam1.sourceforge.net>
2005-04-06 12:03 ` Andy Robinson
     [not found] <20050408154303.E61098C466@sc8-sf-spam1.sourceforge.net>
2005-04-08 16:07 ` Andy Robinson

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.