Function

ALSACtlElemIdnew_by_name

Declaration [src]

ALSACtlElemId*
alsactl_elem_id_new_by_name (
  ALSACtlElemIfaceType iface,
  guint device_id,
  guint subdevice_id,
  const gchar* name,
  guint index
)

Description [src]

Allocates and return an instance of ALSACtlElemId by the name.

Parameters

iface ALSACtlElemIfaceType
 

The interface of element, one of ALSACtlElemIfaceType.

device_id guint
 

The numeric identifier of device to which the element belongs.

subdevice_id guint
 

The numeric identifier of subdevice to which the element belongs.

name const gchar*
 

The name of element, up to 44 byte (=SNDRV_CTL_ELEM_ID_NAME_MAXLEN) including terminator.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
index guint
 

The index of element in a set of elements with the same name.

Return value

Returns: ALSACtlElemId
 

A ALSACtlElemId.

 The caller of the function takes ownership of the data, and is responsible for freeing it.