summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaechul Lee <jcsing.lee@samsung.com>2022-06-24 14:30:55 +0900
committerJaechul Lee <jcsing.lee@samsung.com>2022-06-24 14:30:55 +0900
commit0fb16878cbf300dc82be9742213090d6f9a20d99 (patch)
treea9c9a2fbde85092672f494331826aadfcb5933a9
parent8212e0c6390350248cd1b75e47e683db47021598 (diff)
downloadaudio-hal-exynos9110-0fb16878cbf300dc82be9742213090d6f9a20d99.tar.gz
audio-hal-exynos9110-0fb16878cbf300dc82be9742213090d6f9a20d99.tar.bz2
audio-hal-exynos9110-0fb16878cbf300dc82be9742213090d6f9a20d99.zip
prototype was changed for get_param to use single pointer [Version] 0.1.13 [Issue Type] Update Change-Id: I66fbc4d240f87e707e9e5cf006ec42c7c81f40af Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
-rw-r--r--packaging/audio-hal-exynos9110.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-exynos9110.spec b/packaging/audio-hal-exynos9110.spec
index 4715cb4..7f55a05 100644
--- a/packaging/audio-hal-exynos9110.spec
+++ b/packaging/audio-hal-exynos9110.spec
@@ -1,6 +1,6 @@
Name: audio-hal-exynos9110
Summary: TIZEN Audio HAL for Exynos9110(TW3)
-Version: 0.1.12
+Version: 0.1.13
Release: 0
Group: System/Libraries
License: Apache-2.0
diff --git a/tizen-audio-impl-pcm.c b/tizen-audio-impl-pcm.c
index 3c98ef0..4722a59 100644
--- a/tizen-audio-impl-pcm.c
+++ b/tizen-audio-impl-pcm.c
@@ -691,7 +691,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;
@@ -699,7 +699,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);
@@ -728,7 +728,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 a97c842..051adc0 100644
--- a/tizen-audio-impl.h
+++ b/tizen-audio-impl.h
@@ -39,7 +39,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 bf85ede..486a88a 100644
--- a/tizen-audio-pcm.c
+++ b/tizen-audio-pcm.c
@@ -165,7 +165,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.