---
name: "snd_pcm_add_chmap_ctls"
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_pcm_add_chmap_ctls"
---

# snd\_pcm\_add\_chmap\_ctls(9)

create channel-mapping control elements

## NAME

snd\_pcm\_add\_chmap\_ctls - create channel-mapping control elements

## SYNOPSIS

**int snd\_pcm\_add\_chmap\_ctls(struct snd\_pcm \*** *pcm***, int** *stream***, const struct snd\_pcm\_chmap\_elem \*** *chmap***, int** *max\_channels***, unsigned long** *private\_value***, struct snd\_pcm\_chmap \*\*** *info\_ret***);**

## ARGUMENTS

*pcm*

the assigned PCM instance

*stream*

stream direction

*chmap*

channel map elements (for query)

*max\_channels*

the max number of channels for the stream

*private\_value*

the value passed to each kcontrol's private\_value field

*info\_ret*

store struct snd\_pcm\_chmap instance if non-NULL

## DESCRIPTION

Create channel-mapping control elements assigned to the given PCM stream(s).

## RETURN

Zero if successful, or a negative error value.

## COPYRIGHT
