Method

ALSACtlCardread_elem_tlv

Declaration [src]

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

Description [src]

Read Type/Length/Value data from element pointed by the identifier and fulfil the given array of bytes with the data.

The call of function executes ioctl(2) system call with SNDRV_CTL_IOCTL_TLV_READ 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 argument will be modified by the function.
 The length of the array is specified in the container_count argument.
 The instance takes ownership of the data, and is responsible for freeing it.
container_count gsize*
 

The number of quadlets in the container.

 The argument will be modified by the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE when the overall operation finishes successfully, else FALSE.