Set the status and the codec settings of a given voice service type.
#include <audio/audio_manager_voice_service.h>
int audio_manager_set_voice_service_status_with_codec_settings(audio_manager_voice_service_t service, audio_manager_voice_service_status_t status, const char *codec_name, int codec_rate)
The voice service type that the new status is applied to.
The status to be applied.
The name of the codec the service provider uses.
The audio sample rate the service provider uses.
The audio_manager_set_voice_service_status_with_codec_settings() function sets the status and the codec settings of a given voice service type.
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.
EOK upon success, negative errno upon failure.