summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaechul Lee <jcsing.lee@samsung.com>2022-06-24 14:18:46 +0900
committerJaechul Lee <jcsing.lee@samsung.com>2022-06-24 14:28:19 +0900
commit1b93dc2a684ea4dfd9b1cecbda564adad3bc8fbc (patch)
tree45a0eb524c91e85ab72741a696de48ff23cf915a
parentaa2fd6a0ca7193622a2c65b4a0e6045bf5eaac1a (diff)
downloadaudio-hal-sc7727-tizen_7.0.tar.gz
audio-hal-sc7727-tizen_7.0.tar.bz2
audio-hal-sc7727-tizen_7.0.zip
prototype was changed for get_param to use single pointer [Version] 0.1.43 [Issue Type] Update Change-Id: I263e1cb7a8a6431c6fbfc2941da0425a4810e245 Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
-rw-r--r--packaging/audio-hal-sc7727.spec2
-rw-r--r--tizen-audio-impl-pcm.c6
-rw-r--r--tizen-audio-impl.h2
-rw-r--r--tizen-audio-pcm.c2
-rw-r--r--tizen-audio.h2
5 files changed, 7 insertions, 7 deletions
diff --git a/packaging/audio-hal-sc7727.spec b/packaging/audio-hal-sc7727.spec
index 495c50b..525ad1d 100644
--- a/packaging/audio-hal-sc7727.spec
+++ b/packaging/audio-hal-sc7727.spec
@@ -1,6 +1,6 @@
Name: audio-hal-sc7727
Summary: TIZEN Audio HAL for SC7727
-Version: 0.1.42
+Version: 0.1.43
Release: 0
Group: System/Libraries
License: Apache-2.0
diff --git a/tizen-audio-impl-pcm.c b/tizen-audio-impl-pcm.c
index 668ab80..9a6f32f 100644
--- a/tizen-audio-impl-pcm.c
+++ b/tizen-audio-impl-pcm.c
@@ -672,7 +672,7 @@ audio_return_e _pcm_recover(void *pcm_handle, int revents)
return AUDIO_RET_OK;
}
-audio_return_e _pcm_get_params(void *pcm_handle, uint32_t direction, void **sample_spec, uint32_t *period_size, uint32_t *periods)
+audio_return_e _pcm_get_params(void *pcm_handle, uint32_t direction, void *sample_spec, uint32_t *period_size, uint32_t *periods)
{
#ifdef __USE_TINYALSA__
audio_pcm_sample_spec_s *ss;
@@ -680,7 +680,7 @@ audio_return_e _pcm_get_params(void *pcm_handle, uint32_t direction, void **samp
unsigned int _start_threshold, _stop_threshold, _silence_threshold;
struct pcm_config *config;
- ss = (audio_pcm_sample_spec_s *)*sample_spec;
+ ss = (audio_pcm_sample_spec_s *)sample_spec;
/* we use an internal API of the tiny alsa library, so it causes warning message during compile */
_pcm_config(pcm_handle, &config);
@@ -709,7 +709,7 @@ audio_return_e _pcm_get_params(void *pcm_handle, uint32_t direction, void **samp
snd_pcm_hw_params_t *hwparams;
snd_pcm_sw_params_t *swparams;
- ss = (audio_pcm_sample_spec_s *)*sample_spec;
+ ss = (audio_pcm_sample_spec_s *)sample_spec;
snd_pcm_hw_params_alloca(&hwparams);
snd_pcm_sw_params_alloca(&swparams);
diff --git a/tizen-audio-impl.h b/tizen-audio-impl.h
index e4a445c..ac967d2 100644
--- a/tizen-audio-impl.h
+++ b/tizen-audio-impl.h
@@ -35,7 +35,7 @@ audio_return_e _pcm_write(void *pcm_handle, const void *buffer, uint32_t frames)
audio_return_e _pcm_read(void *pcm_handle, void *buffer, uint32_t frames);
audio_return_e _pcm_get_fd(void *pcm_handle, int *fd);
audio_return_e _pcm_recover(void *pcm_handle, int revents);
-audio_return_e _pcm_get_params(void *pcm_handle, uint32_t direction, void **sample_spec, uint32_t *period_size, uint32_t *periods);
+audio_return_e _pcm_get_params(void *pcm_handle, uint32_t direction, void *sample_spec, uint32_t *period_size, uint32_t *periods);
audio_return_e _pcm_set_params(void *pcm_handle, uint32_t direction, void *sample_spec, uint32_t period_size, uint32_t periods);
audio_return_e _pcm_set_sw_params(snd_pcm_t *pcm, snd_pcm_uframes_t avail_min, uint8_t period_event);
audio_return_e _pcm_set_hw_params(snd_pcm_t *pcm, audio_pcm_sample_spec_s *sample_spec, uint8_t *use_mmap, snd_pcm_uframes_t *period_size, snd_pcm_uframes_t *buffer_size);
diff --git a/tizen-audio-pcm.c b/tizen-audio-pcm.c
index 74c062e..a51490a 100644
--- a/tizen-audio-pcm.c
+++ b/tizen-audio-pcm.c
@@ -178,7 +178,7 @@ audio_return_e audio_pcm_recover(void *audio_handle, void *pcm_handle, int reven
return audio_ret;
}
-audio_return_e audio_pcm_get_params(void *audio_handle, void *pcm_handle, uint32_t direction, void **sample_spec, uint32_t *period_size, uint32_t *periods)
+audio_return_e audio_pcm_get_params(void *audio_handle, void *pcm_handle, uint32_t direction, void *sample_spec, uint32_t *period_size, uint32_t *periods)
{
audio_return_e audio_ret = AUDIO_RET_OK;
diff --git a/tizen-audio.h b/tizen-audio.h
index 52ed4cb..15ee937 100644
--- a/tizen-audio.h
+++ b/tizen-audio.h
@@ -378,7 +378,7 @@ audio_return_e audio_pcm_recover(void *audio_handle, void *pcm_handle, int reven
* @retval #AUDIO_RET_OK Success
* @see audio_pcm_set_params()
*/
-audio_return_e audio_pcm_get_params(void *audio_handle, void *pcm_handle, uint32_t direction, void **sample_spec, uint32_t *period_size, uint32_t *periods);
+audio_return_e audio_pcm_get_params(void *audio_handle, void *pcm_handle, uint32_t direction, void *sample_spec, uint32_t *period_size, uint32_t *periods);
/**
* @brief Sets hardware and software parameters of a PCM device.