diff options
author | Sangchul Lee <sc11.lee@samsung.com> | 2016-05-19 17:14:22 +0900 |
---|---|---|
committer | Sangchul Lee <sc11.lee@samsung.com> | 2016-05-27 15:48:02 +0900 |
commit | f34bfc637ad6652b24a75da389c36691fda49025 (patch) | |
tree | 4e39869cf4ac33f510e12fad944d8981d58a416e /tizen-audio.h | |
parent | f9601397f1066e6dcca2db048d36a8193b9504a0 (diff) | |
download | audio-hal-sc7727-f34bfc637ad6652b24a75da389c36691fda49025.tar.gz audio-hal-sc7727-f34bfc637ad6652b24a75da389c36691fda49025.tar.bz2 audio-hal-sc7727-f34bfc637ad6652b24a75da389c36691fda49025.zip |
Restructure filessubmit/tizen/20160530.013417accepted/tizen/mobile/20160602.022129
- add tizen-audio-impl.h and tizen-audio-impl-xxx.c for implemetation layer that could be code variation as per HW
- rename files
- remove unused functions
- rename functions according to rules("__" prefix for static functions)
[Version] 0.1.10
[Profile] Mobile
[Issue Type] Refactoring
Change-Id: Ib222389161b53efc58832384b1a86542f1de42df
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Diffstat (limited to 'tizen-audio.h')
-rw-r--r-- | tizen-audio.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tizen-audio.h b/tizen-audio.h index fcaf018..0bfac13 100644 --- a/tizen-audio.h +++ b/tizen-audio.h @@ -4,7 +4,7 @@ /* * audio-hal * - * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ #include <stdint.h> /* Error code */ -#define AUDIO_IS_ERROR(ret) (ret < 0) typedef enum audio_return { AUDIO_RET_OK = 0, AUDIO_ERR_UNDEFINED = (int32_t)0x80001000, @@ -90,10 +89,9 @@ typedef struct audio_interface { audio_return_t (*update_route_option)(void *audio_handle, audio_route_option_t *option); /* Stream */ audio_return_t (*notify_stream_connection_changed)(void *audio_handle, audio_stream_info_t *info, uint32_t is_connected); - /* Buffer attribute */ audio_return_t (*get_buffer_attr)(void *audio_handle, uint32_t direction, const char *latency, uint32_t samplerate, int format, uint32_t channels, uint32_t *maxlength, uint32_t *tlength, uint32_t *prebuf, uint32_t* minreq, uint32_t *fragsize); - /* PCM device */ + /* PCM */ audio_return_t (*pcm_open)(void *audio_handle, void **pcm_handle, uint32_t direction, void *sample_spec, uint32_t period_size, uint32_t periods); audio_return_t (*pcm_start)(void *audio_handle, void *pcm_handle); audio_return_t (*pcm_stop)(void *audio_handle, void *pcm_handle); |