Check whether a given audio device is kept alive by the system.
#include <audio/audio_manager_device.h>
int audio_manager_is_device_kept_alive(audio_manager_device_t dev, bool *keep_alive)
The type of the audio device to check against.
true if the specified audio device is kept alive, false otherwise.
The audio_manager_is_device_kept_alive() function checks whether a given audio device is currently kept alive by the system even when no audio streams are active. This is typically done to avoid excessive audio artifacts caused by hardware transitions.
EOK upon success, negative errno upon failure.