audio: AUDIO-TRACKSWITCH has no fade-out. [1/1]
PD#SWPL-198609
Problem:
there is no sleep between pause and flush when asink
just called flush.So,the fade-out waveform will be flushed.
Solution:
add sleep to ensure fade-out waveform can
be shown.
Verify:
t5w
Change-Id: I41d3c400663a5677a5909f319d7bc008256f6637
Signed-off-by: dongyang.zhang <dongyang.zhang@amlogic.com>
diff --git a/audio_hal/audio_hw.c b/audio_hal/audio_hw.c
index 364ba30..7b61d14 100644
--- a/audio_hal/audio_hw.c
+++ b/audio_hal/audio_hw.c
@@ -1790,8 +1790,9 @@
out->pause_status = true;
pthread_mutex_unlock(&out->lock);
pthread_mutex_unlock(&adev->lock);
+ //audio easing duration is 32ms.
+ aml_audio_sleep(32000);
}
-
audio_header_info_reset(out->pheader);
avsync_ctx_reset(out->avsync_ctx);