audio_dev_set_description, audio_dev_set_version, audio_dev_add_info - set human-readable information fields for an audio device
#include <sys/audio/audio_driver.h> void audio_dev_set_description(audio_dev_t *adev, const char *desc);
void audio_dev_set_version(audio_dev_t *adev, const char *vers);
void audio_dev_add_info(audio_dev_t *adev, const char *info);
pointer to an audio device allocated with audio_dev_alloc(9F)
a short description of the device
a human-readable version for the device
additional human-readable details about the device
Solaris DDI specific (Solaris DDI)
The audio_dev_set_description() and audio_dev_version() functions set strings describing the device for applications to display this information to users.
The audio_dev_add_info() function provides more detailed information, such as codec details. Successive calls to this function are additive. Each addition will represent one line of output in any detailed device report.
The strings are copied by the framework, so drivers may use local or temporary storage for them. They must be properly terminated with null bytes. Only the ASCII character set is supported.
The supplied strings may be truncated to 16 characters by some applications.
These functions may be called from user or kernel context only.
See attributes(5) for descriptions of the following attributes: