diff options
author | Jaechul Lee <jcsing.lee@samsung.com> | 2021-02-05 11:28:26 +0900 |
---|---|---|
committer | Jaechul Lee <jcsing.lee@samsung.com> | 2021-02-05 11:28:26 +0900 |
commit | 2b94e88f8fb684c7ec4460a397d5ab0972e36183 (patch) | |
tree | 7beb47d6c2f1e43c6dc4bbccdbd869dce25f75a2 /tizen-audio-impl-ctrl.c | |
parent | 58ad926b713565a914a1e13c9af2e54e900a8fee (diff) | |
download | audio-hal-sc7727-2b94e88f8fb684c7ec4460a397d5ab0972e36183.tar.gz audio-hal-sc7727-2b94e88f8fb684c7ec4460a397d5ab0972e36183.tar.bz2 audio-hal-sc7727-2b94e88f8fb684c7ec4460a397d5ab0972e36183.zip |
typdef postfix is changed to {enum}_e and {struct}_s
enum and structure are changed for better readability. In case of enum,
{enum}_t is changed to {enum}_'e', and {struct}_t is changed to
{struct}_'s'
[Version] 0.1.37
[Issue Type] Readability enhance
Change-Id: Icdf038f51a65387f1f11ef75f506b6b6d6ee9236
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
Diffstat (limited to 'tizen-audio-impl-ctrl.c')
-rw-r--r-- | tizen-audio-impl-ctrl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tizen-audio-impl-ctrl.c b/tizen-audio-impl-ctrl.c index 2c86a79..07a81a2 100644 --- a/tizen-audio-impl-ctrl.c +++ b/tizen-audio-impl-ctrl.c @@ -47,7 +47,7 @@ static void __dump_mixer_param(char *dump, long *param, int size) } #endif -audio_return_e _mixer_control_init(audio_hal_t *ah) +audio_return_e _mixer_control_init(audio_hal_s *ah) { AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER); @@ -55,7 +55,7 @@ audio_return_e _mixer_control_init(audio_hal_t *ah) return AUDIO_RET_OK; } -audio_return_e _mixer_control_deinit(audio_hal_t *ah) +audio_return_e _mixer_control_deinit(audio_hal_s *ah) { AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER); @@ -63,7 +63,7 @@ audio_return_e _mixer_control_deinit(audio_hal_t *ah) return AUDIO_RET_OK; } -audio_return_e _mixer_control_set_param(audio_hal_t *ah, const char* ctl_name, snd_ctl_elem_value_t* param, int size) +audio_return_e _mixer_control_set_param(audio_hal_s *ah, const char* ctl_name, snd_ctl_elem_value_t* param, int size) { AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER); @@ -71,7 +71,7 @@ audio_return_e _mixer_control_set_param(audio_hal_t *ah, const char* ctl_name, s return AUDIO_RET_OK; } -audio_return_e _mixer_control_get_value(audio_hal_t *ah, const char *ctl_name, int *val) +audio_return_e _mixer_control_get_value(audio_hal_s *ah, const char *ctl_name, int *val) { snd_ctl_t *handle; snd_ctl_elem_value_t *control; @@ -153,7 +153,7 @@ close: return AUDIO_ERR_UNDEFINED; } -audio_return_e _mixer_control_set_value(audio_hal_t *ah, const char *ctl_name, int val) +audio_return_e _mixer_control_set_value(audio_hal_s *ah, const char *ctl_name, int val) { snd_ctl_t *handle; snd_ctl_elem_value_t *control; @@ -232,7 +232,7 @@ close: return AUDIO_ERR_UNDEFINED; } -audio_return_e _mixer_control_set_value_string(audio_hal_t *ah, const char* ctl_name, const char* value) +audio_return_e _mixer_control_set_value_string(audio_hal_s *ah, const char* ctl_name, const char* value) { AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER); AUDIO_RETURN_VAL_IF_FAIL(ctl_name, AUDIO_ERR_PARAMETER); @@ -242,7 +242,7 @@ audio_return_e _mixer_control_set_value_string(audio_hal_t *ah, const char* ctl_ } -audio_return_e _mixer_control_get_element(audio_hal_t *ah, const char *ctl_name, snd_hctl_elem_t **elem) +audio_return_e _mixer_control_get_element(audio_hal_s *ah, const char *ctl_name, snd_hctl_elem_t **elem) { AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER); AUDIO_RETURN_VAL_IF_FAIL(ctl_name, AUDIO_ERR_PARAMETER); |