Set avail_min to period_size 33/261833/2 submit/tizen/20210729.024139
authorJaechul Lee <jcsing.lee@samsung.com>
Tue, 27 Jul 2021 05:38:28 +0000 (14:38 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Tue, 27 Jul 2021 07:42:07 +0000 (16:42 +0900)
avail_min would be set to period_size inside the function if the
value is lower than the period size.

[Version] 0.1.12
[Issue Type] Update

Change-Id: Iaa8796c48d78a118f57c28a0bed44f881cc67fc0
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
packaging/audio-hal-exynos9110.spec
tizen-audio-impl-pcm.c

index 6a0bb6e..4715cb4 100644 (file)
@@ -1,6 +1,6 @@
 Name:       audio-hal-exynos9110
 Summary:    TIZEN Audio HAL for Exynos9110(TW3)
-Version:    0.1.11
+Version:    0.1.12
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index c48b7d0..3c98ef0 100644 (file)
@@ -864,7 +864,7 @@ audio_return_e _pcm_set_params(void *pcm_handle, uint32_t direction, void *sampl
         return AUDIO_ERR_PARAMETER;
     }
 
-    if ((err = snd_pcm_sw_params_set_avail_min(pcm_handle, swparams, 1024)) < 0) {
+    if ((err = snd_pcm_sw_params_set_avail_min(pcm_handle, swparams, period_size)) < 0) {
         AUDIO_LOG_ERROR("snd_pcm_sw_params_set_avail_min() failed : %d", err);
         return AUDIO_ERR_PARAMETER;
     }