summaryrefslogtreecommitdiff
path: root/tizen-audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'tizen-audio.c')
-rw-r--r--tizen-audio.c46
1 files changed, 1 insertions, 45 deletions
diff --git a/tizen-audio.c b/tizen-audio.c
index b674f62..b7df609 100644
--- a/tizen-audio.c
+++ b/tizen-audio.c
@@ -23,12 +23,7 @@
#include "tizen-audio-internal.h"
-int audio_get_revision (void)
-{
- return AUDIO_REVISION;
-}
-
-audio_return_t audio_init (void **userdata, void *platform_data)
+audio_return_t audio_init (void **userdata)
{
audio_mgr_t *am;
audio_return_t ret = AUDIO_RET_OK;
@@ -37,8 +32,6 @@ audio_return_t audio_init (void **userdata, void *platform_data)
AUDIO_LOG_ERROR("am malloc failed");
return AUDIO_ERR_RESOURCE;
}
- am->platform_data = platform_data;
- memset(&am->cb_intf, 0, sizeof(audio_cb_interface_t));
if (AUDIO_IS_ERROR((ret = _audio_device_init(am)))) {
AUDIO_LOG_ERROR("device init failed");
goto error_exit;
@@ -82,43 +75,6 @@ audio_return_t audio_deinit (void **userdata)
return AUDIO_RET_OK;
}
-audio_return_t audio_reset_volume (void **userdata)
-{
- audio_mgr_t *am = (audio_mgr_t *)*userdata;
- audio_return_t ret = AUDIO_RET_OK;
-
- if (am) {
- _audio_volume_deinit(am);
-
- if (AUDIO_IS_ERROR((ret = _audio_volume_init(am)))) {
- AUDIO_LOG_ERROR("stream init failed");
- goto error_exit;
- }
- }
-
- return AUDIO_RET_OK;
-
-error_exit:
- if (am)
- free(am);
- *userdata = NULL;
-
- return ret;
-}
-
-audio_return_t audio_set_callback (void *userdata, audio_cb_interface_t *cb_interface)
-{
- audio_mgr_t *am = (audio_mgr_t *)userdata;
-
- if (am) {
- memcpy(&am->cb_intf, cb_interface, sizeof(audio_cb_interface_t));
- return AUDIO_RET_OK;
- } else {
- return AUDIO_ERR_PARAMETER;
- }
-}
-
-
static const unsigned int SAMPLES_PER_PERIOD_DEFAULT = 1536; /* Frames */
static const unsigned int PERIODS_PER_BUFFER_FASTMODE = 4;
static const unsigned int PERIODS_PER_BUFFER_DEFAULT = 6;