Function

ALSAHwdepget_device_info

Declaration [src]

gboolean
alsahwdep_get_device_info (
  guint card_id,
  guint device_id,
  ALSAHwdepDeviceInfo** device_info,
  GError** error
)

Description [src]

Get the information according to given numeric IDs for card and device.

The call of function executes open(2), close(2), and ioctl(2) system call with SNDRV_CTL_IOCTL_HWDEP_INFO command for ALSA control character device.

Parameters

card_id guint
 

The numeric value for sound card to query.

device_id guint
 

The numeric value of hwdep device to query.

device_info ALSAHwdepDeviceInfo
 

The information of the device.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE when the overall operation finishes successfully, else FALSE.