summaryrefslogtreecommitdiff
path: root/tizen-audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'tizen-audio.c')
-rw-r--r--tizen-audio.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tizen-audio.c b/tizen-audio.c
index c7a3098..c61f063 100644
--- a/tizen-audio.c
+++ b/tizen-audio.c
@@ -34,6 +34,11 @@ audio_return_t audio_init(void **audio_handle)
AUDIO_LOG_ERROR("failed to malloc()");
return AUDIO_ERR_RESOURCE;
}
+
+ if ((ret = _audio_ctrl_init(ah))) {
+ AUDIO_LOG_ERROR("failed to _audio_ctrl_init(), ret(0x%x)", ret);
+ goto error_exit;
+ }
if ((ret = _audio_volume_init(ah))) {
AUDIO_LOG_ERROR("failed to _audio_volume_init(), ret(0x%x)", ret);
goto error_exit;
@@ -81,8 +86,10 @@ audio_return_t audio_deinit(void *audio_handle)
_audio_pcm_deinit(ah);
_audio_modem_deinit(ah);
_audio_comm_deinit(ah);
+ _audio_ctrl_deinit(ah);
+
free(ah);
ah = NULL;
return AUDIO_RET_OK;
-} \ No newline at end of file
+}