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-pcm.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-pcm.c')
-rw-r--r-- | tizen-audio-pcm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tizen-audio-pcm.c b/tizen-audio-pcm.c index 21fa107..74c062e 100644 --- a/tizen-audio-pcm.c +++ b/tizen-audio-pcm.c @@ -24,7 +24,7 @@ #include "tizen-audio-internal.h" #include "tizen-audio-impl.h" -audio_return_e _audio_pcm_init(audio_hal_t *ah) +audio_return_e _audio_pcm_init(audio_hal_s *ah) { AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER); @@ -39,7 +39,7 @@ audio_return_e _audio_pcm_init(audio_hal_t *ah) return AUDIO_RET_OK; } -audio_return_e _audio_pcm_deinit(audio_hal_t *ah) +audio_return_e _audio_pcm_deinit(audio_hal_s *ah) { AUDIO_RETURN_VAL_IF_FAIL(ah, AUDIO_ERR_PARAMETER); @@ -54,7 +54,7 @@ audio_return_e audio_pcm_open(void *audio_handle, const char *card, const char * uint32_t period_size, uint32_t periods, void **pcm_handle) { audio_return_e audio_ret = AUDIO_RET_OK; - audio_hal_t *ah = NULL; + audio_hal_s *ah = NULL; AUDIO_RETURN_VAL_IF_FAIL(audio_handle, AUDIO_ERR_PARAMETER); AUDIO_RETURN_VAL_IF_FAIL(pcm_handle, AUDIO_ERR_PARAMETER); @@ -65,7 +65,7 @@ audio_return_e audio_pcm_open(void *audio_handle, const char *card, const char * if ((audio_ret = _pcm_open(card, device, direction, sample_spec, period_size, periods, pcm_handle))) return audio_ret; - ah = (audio_hal_t*)audio_handle; + ah = (audio_hal_s*)audio_handle; ah->device.pcm_count++; AUDIO_LOG_INFO("Opening PCM handle %p", *pcm_handle); @@ -99,7 +99,7 @@ audio_return_e audio_pcm_stop(void *audio_handle, void *pcm_handle) audio_return_e audio_pcm_close(void *audio_handle, void *pcm_handle) { audio_return_e audio_ret = AUDIO_RET_OK; - audio_hal_t *ah = NULL; + audio_hal_s *ah = NULL; AUDIO_RETURN_VAL_IF_FAIL(audio_handle, AUDIO_ERR_PARAMETER); AUDIO_RETURN_VAL_IF_FAIL(pcm_handle, AUDIO_ERR_PARAMETER); @@ -108,7 +108,7 @@ audio_return_e audio_pcm_close(void *audio_handle, void *pcm_handle) return audio_ret; pcm_handle = NULL; - ah = (audio_hal_t*)audio_handle; + ah = (audio_hal_s*)audio_handle; ah->device.pcm_count--; AUDIO_LOG_INFO("PCM handle close success (count:%d)", ah->device.pcm_count); |