diff options
author | Seungbae Shin <seungbae.shin@samsung.com> | 2018-08-02 10:31:59 +0900 |
---|---|---|
committer | Seungbae Shin <seungbae.shin@samsung.com> | 2018-08-06 16:07:50 +0900 |
commit | c1ab82f1c74e9060446a13121ffd898342dd28e5 (patch) | |
tree | b6cb58fbb9061ebfe75415ebbd2bb9aaa2cd08c7 /tizen-audio.c | |
parent | 8dab939f22e28efa0524c4115f386723be1560dd (diff) | |
download | audio-hal-sc7727-c1ab82f1c74e9060446a13121ffd898342dd28e5.tar.gz audio-hal-sc7727-c1ab82f1c74e9060446a13121ffd898342dd28e5.tar.bz2 audio-hal-sc7727-c1ab82f1c74e9060446a13121ffd898342dd28e5.zip |
Fix for hal unit testsubmit/tizen/20180806.072201
- Join vbc voice/voip thread properly on the exit.
- Init/Deinit mutex control properly.
[Version] 0.1.25
[Issue Type] BUG
Change-Id: I3fad7b4590fb32ddeb30f3d5c1c2089b1d924ba6
Diffstat (limited to 'tizen-audio.c')
-rw-r--r-- | tizen-audio.c | 9 |
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 +} |