summaryrefslogtreecommitdiff
path: root/tizen-audio-routing.c
diff options
context:
space:
mode:
Diffstat (limited to 'tizen-audio-routing.c')
-rw-r--r--tizen-audio-routing.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/tizen-audio-routing.c b/tizen-audio-routing.c
index 96528f6..67cf98c 100644
--- a/tizen-audio-routing.c
+++ b/tizen-audio-routing.c
@@ -141,9 +141,9 @@ static uint32_t __convert_device_string_to_enum(audio_hal_t *ah, const char *ver
return device;
}
-static audio_return_t __set_devices(audio_hal_t *ah, const char *verb, device_info_t *devices, uint32_t num_of_devices)
+static audio_return_e __set_devices(audio_hal_t *ah, const char *verb, device_info_s *devices, uint32_t num_of_devices)
{
- audio_return_t audio_ret = AUDIO_RET_OK;
+ audio_return_e audio_ret = AUDIO_RET_OK;
uint32_t new_device = 0;
const char *active_devices[MAX_DEVICES] = {NULL,};
int i = 0, j = 0, dev_idx = 0;
@@ -209,7 +209,7 @@ static audio_return_t __set_devices(audio_hal_t *ah, const char *verb, device_in
return audio_ret;
}
-static audio_return_t __save_route_infos(audio_hal_t *ah, device_info_t *devices, int32_t num_of_devices)
+static audio_return_e __save_route_infos(audio_hal_t *ah, device_info_s *devices, int32_t num_of_devices)
{
int i = 0;
@@ -218,11 +218,11 @@ static audio_return_t __save_route_infos(audio_hal_t *ah, device_info_t *devices
for (i = 0; i < MAX_DIRECTION; i++) {
if (!ah->saved_route_infos[i]) {
- ah->saved_route_infos[i] = malloc(sizeof(audio_route_info_t));
- memset(ah->saved_route_infos[i], 0, sizeof(audio_route_info_t));
+ ah->saved_route_infos[i] = malloc(sizeof(audio_route_info_s));
+ memset(ah->saved_route_infos[i], 0, sizeof(audio_route_info_s));
- ah->saved_route_infos[i]->device_infos = malloc(sizeof(device_info_t));
- memcpy(ah->saved_route_infos[i]->device_infos, devices, sizeof(device_info_t));
+ ah->saved_route_infos[i]->device_infos = malloc(sizeof(device_info_s));
+ memcpy(ah->saved_route_infos[i]->device_infos, devices, sizeof(device_info_s));
ah->saved_route_infos[i]->num_of_devices = num_of_devices;
@@ -254,10 +254,10 @@ static void __reset_saved_route_infos(void *audio_handle)
}
}
-static audio_return_t __update_route_ap_playback_capture(audio_hal_t *ah, audio_route_info_t *route_info)
+static audio_return_e __update_route_ap_playback_capture(audio_hal_t *ah, audio_route_info_s *route_info)
{
- audio_return_t audio_ret = AUDIO_RET_OK;
- device_info_t *devices = NULL;
+ audio_return_e audio_ret = AUDIO_RET_OK;
+ device_info_s *devices = NULL;
const char *verb = mode_to_verb_str[VERB_NORMAL];
AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER);
@@ -281,9 +281,9 @@ static audio_return_t __update_route_ap_playback_capture(audio_hal_t *ah, audio_
return audio_ret;
}
-static audio_return_t __update_route_voicecall(audio_hal_t *ah, device_info_t *devices, int32_t num_of_devices)
+static audio_return_e __update_route_voicecall(audio_hal_t *ah, device_info_s *devices, int32_t num_of_devices)
{
- audio_return_t audio_ret = AUDIO_RET_OK;
+ audio_return_e audio_ret = AUDIO_RET_OK;
const char *verb = mode_to_verb_str[VERB_VOICECALL];
AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER);
@@ -329,9 +329,9 @@ static audio_return_t __update_route_voicecall(audio_hal_t *ah, device_info_t *d
return audio_ret;
}
-static audio_return_t __update_route_voip(audio_hal_t *ah, device_info_t *devices, int32_t num_of_devices)
+static audio_return_e __update_route_voip(audio_hal_t *ah, device_info_s *devices, int32_t num_of_devices)
{
- audio_return_t audio_ret = AUDIO_RET_OK;
+ audio_return_e audio_ret = AUDIO_RET_OK;
const char *verb = mode_to_verb_str[VERB_NORMAL];
AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER);
@@ -350,9 +350,9 @@ static audio_return_t __update_route_voip(audio_hal_t *ah, device_info_t *device
return audio_ret;
}
-static audio_return_t __update_route_voice_recognition(audio_hal_t *ah, device_info_t *devices, int32_t num_of_devices)
+static audio_return_e __update_route_voice_recognition(audio_hal_t *ah, device_info_s *devices, int32_t num_of_devices)
{
- audio_return_t audio_ret = AUDIO_RET_OK;
+ audio_return_e audio_ret = AUDIO_RET_OK;
const char *verb = mode_to_verb_str[VERB_NORMAL];
AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER);
@@ -386,9 +386,9 @@ static audio_return_t __update_route_voice_recognition(audio_hal_t *ah, device_i
return audio_ret;
}
-static audio_return_t __update_route_voice_information(audio_hal_t *ah, device_info_t *devices, int32_t num_of_devices)
+static audio_return_e __update_route_voice_information(audio_hal_t *ah, device_info_s *devices, int32_t num_of_devices)
{
- audio_return_t audio_ret = AUDIO_RET_OK;
+ audio_return_e audio_ret = AUDIO_RET_OK;
const char *verb = mode_to_verb_str[VERB_NORMAL];
AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER);
@@ -422,9 +422,9 @@ static audio_return_t __update_route_voice_information(audio_hal_t *ah, device_i
return audio_ret;
}
-static audio_return_t __update_route_reset(audio_hal_t *ah, uint32_t direction)
+static audio_return_e __update_route_reset(audio_hal_t *ah, uint32_t direction)
{
- audio_return_t audio_ret = AUDIO_RET_OK;
+ audio_return_e audio_ret = AUDIO_RET_OK;
const char *active_devices[MAX_DEVICES] = {NULL,};
int i = 0, dev_idx = 0;
@@ -489,9 +489,9 @@ static audio_return_t __update_route_reset(audio_hal_t *ah, uint32_t direction)
return audio_ret;
}
-audio_return_t _audio_routing_init(audio_hal_t *ah)
+audio_return_e _audio_routing_init(audio_hal_t *ah)
{
- audio_return_t audio_ret = AUDIO_RET_OK;
+ audio_return_e audio_ret = AUDIO_RET_OK;
AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER);
@@ -505,9 +505,9 @@ audio_return_t _audio_routing_init(audio_hal_t *ah)
return audio_ret;
}
-audio_return_t _audio_routing_deinit(audio_hal_t *ah)
+audio_return_e _audio_routing_deinit(audio_hal_t *ah)
{
- audio_return_t audio_ret = AUDIO_RET_OK;
+ audio_return_e audio_ret = AUDIO_RET_OK;
AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER);
@@ -517,11 +517,11 @@ audio_return_t _audio_routing_deinit(audio_hal_t *ah)
return audio_ret;
}
-audio_return_t audio_update_route(void *audio_handle, audio_route_info_t *info)
+audio_return_e audio_update_route(void *audio_handle, audio_route_info_s *info)
{
- audio_return_t audio_ret = AUDIO_RET_OK;
+ audio_return_e audio_ret = AUDIO_RET_OK;
audio_hal_t *ah = (audio_hal_t *)audio_handle;
- device_info_t *devices = NULL;
+ device_info_s *devices = NULL;
AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER);
AUDIO_RETURN_VAL_IF_FAIL(info, AUDIO_ERR_PARAMETER);
@@ -560,9 +560,9 @@ audio_return_t audio_update_route(void *audio_handle, audio_route_info_t *info)
return audio_ret;
}
-audio_return_t audio_update_route_option(void *audio_handle, audio_route_option_t *option)
+audio_return_e audio_update_route_option(void *audio_handle, audio_route_option_s *option)
{
- audio_return_t audio_ret = AUDIO_RET_OK;
+ audio_return_e audio_ret = AUDIO_RET_OK;
audio_hal_t *ah = (audio_hal_t *)audio_handle;
AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER);