snd_pcm_lib_malloc_pages(9)

snd_pcm_lib_malloc_pages9

Allocate the dma buffer

Usage

int snd_pcm_lib_malloc_pages(struct snd_pcm_substream * substream, size_t size);

Arguments

substream

the substream to allocate the DMA buffer to

size

the requested buffer size in bytes

Overview

Allocates the DMA buffer on the BUS type given earlier to snd_pcm_lib_preallocate_xxx_pages.

Return

1 if the buffer is changed, 0 if not changed, or a negative code on failure.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.