diff options
author | Jaechul Lee <jcsing.lee@samsung.com> | 2024-07-17 10:55:12 +0900 |
---|---|---|
committer | Jaechul Lee <jcsing.lee@samsung.com> | 2024-09-04 12:00:54 +0900 |
commit | b335e416f1115448bcce6395e99fe924aa55c35e (patch) | |
tree | 4e4d7b7570979ba37539b58742043333f7a4253b | |
parent | 48a7d25fd2d9f045fb15b788574854a5700b9c9a (diff) | |
download | audio-alsa-b335e416f1115448bcce6395e99fe924aa55c35e.tar.gz audio-alsa-b335e416f1115448bcce6395e99fe924aa55c35e.tar.bz2 audio-alsa-b335e416f1115448bcce6395e99fe924aa55c35e.zip |
Move out alloaction functionaccepted/tizen/unified/x/20240906.021647accepted/tizen/unified/dev/20240910.111618accepted/tizen/unified/20240905.164045accepted/tizen_unified_dev
[Version] 0.0.6
[Issue Type] Update
Change-Id: I5b9d682892fc1d51d27c5f2a44822dda812a5a64
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
-rw-r--r-- | hal-backend-audio.c | 14 | ||||
-rw-r--r-- | packaging/hal-backend-audio-alsa.spec | 2 |
2 files changed, 6 insertions, 10 deletions
diff --git a/hal-backend-audio.c b/hal-backend-audio.c index 3181fa6..ea0ca64 100644 --- a/hal-backend-audio.c +++ b/hal-backend-audio.c @@ -28,9 +28,12 @@ static int audio_alsa_init(void **data) { hal_backend_audio_funcs *funcs; - funcs = calloc(1, sizeof(hal_backend_audio_funcs)); + if (!data) + return AUDIO_ERR_PARAMETER; + + funcs = *(hal_backend_audio_funcs **)data; if (!funcs) - return -ENOMEM; + return AUDIO_ERR_PARAMETER; funcs->init = audio_init; funcs->deinit = audio_deinit; @@ -64,18 +67,11 @@ static int audio_alsa_init(void **data) funcs->add_message_cb = audio_add_message_cb; funcs->remove_message_cb = audio_remove_message_cb; - *data = (void *)funcs; - return 0; } static int audio_alsa_exit(void *data) { - if (!data) - return -EINVAL; - - free(data); - return 0; } diff --git a/packaging/hal-backend-audio-alsa.spec b/packaging/hal-backend-audio-alsa.spec index c205c9b..819b285 100644 --- a/packaging/hal-backend-audio-alsa.spec +++ b/packaging/hal-backend-audio-alsa.spec @@ -1,6 +1,6 @@ Name: hal-backend-audio-alsa Summary: TIZEN Audio HAL using ALSA -Version: 0.0.5 +Version: 0.0.6 Release: 0 Group: System/Libraries License: Apache-2.0 |