audio_manager_get_device_capability()

Get the capabilities of a given audio device.

Synopsis:

#include <audio/audio_manager_device.h>
 
int audio_manager_get_device_capability(audio_manager_device_t dev, audio_manager_device_capability_t *cap_mask)

Arguments:

dev

The type of the audio device to query.

cap_mask

The capabilities of the audio device, given as a mask of audio_manager_device_capability_t.

Library:

libaudio_manager

Description:

The audio_manager_get_device_capability() function returns the capabilities of a given audio device indicating whether it is capable of output and/or input.

Returns:

EOK upon success, negative errno upon failure.