Function

ALSAHwdepget_hwdep_devnode

Declaration [src]

gboolean
alsahwdep_get_hwdep_devnode (
  guint card_id,
  guint device_id,
  char** devnode,
  GError** error
)

Description [src]

Allocate devnode string for hwdep device and return it when exists.

Nodes under sound subsystem in sysfs are used to gather the information.

Parameters

card_id guint
 

The numeridcal ID of sound card.

device_id guint
 

The numeric ID of hwdep device for the sound card.

devnode char**
 

The string for devnode of hwdep device.

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

Return value

Returns: gboolean
 

TRUE when the overall operation finishes successfully, else FALSE.