---
name: "snd_hwparams_to_dma_slave_config"
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_hwparams_to_dma_slave_config"
---

# snd\_hwparams\_to\_dma\_slave\_config(9)

Convert hw\_params to dma\_slave\_config

## NAME

snd\_hwparams\_to\_dma\_slave\_config - Convert hw\_params to dma\_slave\_config

## SYNOPSIS

**int snd\_hwparams\_to\_dma\_slave\_config(const struct snd\_pcm\_substream \*** *substream***, const struct snd\_pcm\_hw\_params \*** *params***, struct dma\_slave\_config \*** *slave\_config***);**

## ARGUMENTS

*substream*

PCM substream

*params*

hw\_params

*slave\_config*

DMA slave config

## DESCRIPTION

This function can be used to initialize a dma\_slave\_config from a substream and hw\_params in a dmaengine based PCM driver implementation.

## COPYRIGHT
