audio_manager_set_device_keep_alive()

[privilege]Wakeup a given audio device and keep it up.

Synopsis:

#include <audio/audio_manager_device.h>
 
int audio_manager_set_device_keep_alive(audio_manager_device_t dev, bool keep_alive)

Arguments:

dev

The audio device.

keep_alive

True, if the audio device is to be kept alive; false, otherwise.

Library:

libaudio_manager

Description:

The audio_manager_set_device_keep_alive() function puts the given audio device into non-sleep mode. In this mode, the audio device never gets turned off, regardless of whether there are any audio streams active or not.

Returns:

EOK upon success, negative errno upon failure.