snd_dmaengine_pcm_open_request_chan(9)

snd_dmaengine_pcm_open_request_chan9

Open a dmaengine based pcm substream and request channel

Usage

int snd_dmaengine_pcm_open_request_chan(struct snd_pcm_substream * substream, dma_filter_fn filter_fn, void * filter_data);

Arguments

substream

PCM substream

filter_fn

Filter function used to request the DMA channel

filter_data

Data passed to the DMA filter function

Overview

Returns 0 on success, a negative error code otherwise.

This function will request a DMA channel using the passed filter function and data. The function should usually be called from the pcm open callback. Note that this function will use private_data field of the substream's runtime. So it is not available to your pcm driver implementation.

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