snd_pcm_add_chmap_ctls
Prev | Chapter 5. Sound Devices | Next

## 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.

Prev | Up | Next
snd_pcm_period_elapsed | Home | snd_hwdep_new