sim/alsa: clear AUDIO_APB_FINAL flag before DEQUEUE
Signed-off-by: qiaohaijiao1 <qiaohaijiao1@xiaomi.com>
This commit is contained in:
parent
eba292f4b9
commit
54e128367d
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue