snd_ctl_enum_info(9)

snd_ctl_enum_info9

Fills the info structure for an enumerated control

Usage

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

Overview

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.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.