Name

snd_ctl_new — create a control instance from the template

Synopsis

struct snd_kcontrol * snd_ctl_new (struct snd_kcontrol *  control,
 unsigned int  access);

Arguments

control

the control template

access

the default control access

Description

Allocates a new struct snd_kcontrol instance and copies the given template to the new instance. It does not copy volatile data (access).

Returns the pointer of the new instance, or NULL on failure.