preallocate_pages_for_all
snd_pcm_lib_preallocate_pages_for_all() preallocates the buffers for the first 4 substreams by default. Can I change that number from the driver ? I would like to preallocate a buffer only for the first subdev, or maybe for the first, the 3rd, the 5th...
--
Giuliano.
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
Quoted 4 lines · Giuliano Pochini
snd_pcm_lib_preallocate_pages_for_all()preallocates the buffers for the first 4 substreams by default. Can I change that number from the driver ? I would like to preallocate a buffer only for the first subdev, or maybe for the first, the 3rd, the 5th...
Then use snd_pcm_lib_preallocate_pages() function directly in your own loop.
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
Quoted 6 lines · On Sun, 16 May 2004 15:55:29 +0200 (CEST) Jaroslav Kysela <[email protected]> wrote:
Quoted 4 lines
snd_pcm_lib_preallocate_pages_for_all()preallocates the buffers for the first 4 substreams by default. Can I change that number from the driver ? I would like to preallocate a buffer only for the first subdev, or maybe for the first, the 3rd, the 5th...Then use
snd_pcm_lib_preallocate_pages()function directly in your own loop.
Right. I didn't see that I could pass size = 0.
--
Giuliano.
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click