sim/alsa: clear AUDIO_APB_FINAL flag before DEQUEUE

Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
This commit is contained in:
qiaohaijiao1 2024-01-18 17:54:28 +08:00 committed by Xiang Xiao
parent eba292f4b9
commit 54e128367d

View file

@ -633,6 +633,7 @@ static int sim_audio_flush(struct audio_lowerhalf_s *dev)
struct ap_buffer_s *apb;
apb = (struct ap_buffer_s *)dq_remfirst(&priv->pendq);
apb->flags &= ~AUDIO_APB_FINAL;
#ifdef CONFIG_AUDIO_MULTI_SESSION
priv->dev.upper(priv->dev.priv, AUDIO_CALLBACK_DEQUEUE, apb, OK, NULL);
#else