.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SND_PCM_LIB_MALLOC_PAGES" "9" "09 October 2005" "" ""
.SH NAME
snd_pcm_lib_malloc_pages \- allocate the DMA buffer
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int snd_pcm_lib_malloc_pages (snd_pcm_substream_t * \fIsubstream\fB, size_t \fIsize\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIsubstream\fB\fR
the substream to allocate the DMA buffer to
.TP
\fB\fIsize\fB\fR
the requested buffer size in bytes
.SH "DESCRIPTION"
.PP
Allocates the DMA buffer on the BUS type given earlier to
\fBsnd_pcm_lib_preallocate_xxx_pages\fR\&.
.PP
Returns 1 if the buffer is changed, 0 if not changed, or a negative
code on failure.