snd_ctl_enum_info
Prev | Chapter 5. Sound Devices | Next

## Name

snd_ctl_enum_info — fills the info structure for an enumerated control

## Synopsis

`int snd_ctl_enum_info (` | struct snd_ctl_elem_info * info,
| unsigned int channels,
| unsigned int items,
| const char *const names[]`)`;

## Arguments

`info`

  the structure to be filled

`channels`

  the number of the control's channels; often one

`items`

  the number of control values; also the size of `names`

`names[]`

  an array containing the names of all control values

## Description

Sets all required fields in `info` to their appropriate values. If the control's accessibility is not the default (readable and writable), the caller has to fill `info`->access.

## Return

Zero.

Prev | Up | Next
snd_ctl_find_id | Home | snd_pcm_set_ops