1SND_PCM_LIB_PREALLOC(9)             PCM API            SND_PCM_LIB_PREALLOC(9)
2
3
4

NAME

6       snd_pcm_lib_preallocate_pages - pre-allocation for the given DMA type
7

SYNOPSIS

9       int snd_pcm_lib_preallocate_pages(struct snd_pcm_substream * substream,
10                                         int type, struct device * data,
11                                         size_t size, size_t max);
12

ARGUMENTS

14       substream
15           the pcm substream instance
16
17       type
18           DMA type (SNDRV_DMA_TYPE_*)
19
20       data
21           DMA type dependent data
22
23       size
24           the requested pre-allocation size in bytes
25
26       max
27           the max. allowed pre-allocation size
28

DESCRIPTION

30       Do pre-allocation for the given DMA buffer type.
31

RETURN

33       Zero if successful, or a negative error code on failure.
34
36Kernel Hackers Manual 3.10         June 2019           SND_PCM_LIB_PREALLOC(9)
Impressum