audio_manager_set_headphone_volume_unsafe_zone()

Set the use of the unsafe range of the headphone output volume.

Synopsis:

#include <audio/audio_manager_volume.h>
 
int audio_manager_set_headphone_volume_unsafe_zone(bool enable)

Arguments:

enable

true if the extra volume range is allowed, false otherwise.

Library:

libaudio_manager

Description:

The audio_manager_set_headphone_volume_unsafe_zone() function sets the enable status of the unsafe volume range of the headphone output to allow an extra volume range to the headphone output.

A process must have either an effective user ID of root, or the authman capability of access_audio_manager, to use this function.

Note that this function is intended for use by system components. Therefore, it is not suitable for all applications.

Returns:

EOK upon success, negative errno upon failure.