Method

ALSACtlCardwrite_elem_tlv

Declaration [src]

gboolean
alsactl_card_write_elem_tlv (
  ALSACtlCard* self,
  const ALSACtlElemId* elem_id,
  const guint32* container,
  gsize container_count,
  GError** error
)

Description [src]

Write the given array of bytes as Type/Length/Value data for element pointed by the identifier.

The call of function executes ioctl(2) system call with SNDRV_CTL_IOCTL_TLV_WRITE command for ALSA control character device.

Parameters

elem_id ALSACtlElemId
 

A ALSACtlElemId.

 The data is owned by the caller of the function.
container An array of guint32
 

The array with qudalets for Type-Length-Value data.

 The length of the array is specified in the container_count argument.
 The data is owned by the caller of the function.
container_count gsize
 

The number of quadlets in the container.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE when the overall operation finishes successfully, else FALSE.