---
name: "snd_dmaengine_pcm_open"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_dmaengine_pcm_open"
---

# snd\_dmaengine\_pcm\_open(9)

Open a dmaengine based PCM substream

## NAME

snd\_dmaengine\_pcm\_open - Open a dmaengine based PCM substream

## SYNOPSIS

**int snd\_dmaengine\_pcm\_open(struct snd\_pcm\_substream \*** *substream***, struct dma\_chan \*** *chan***);**

## ARGUMENTS

*substream*

PCM substream

*chan*

DMA channel to use for data transfers

## DESCRIPTION

Returns 0 on success, a negative error code otherwise.

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.

## COPYRIGHT
