This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 15c1c9d42e sim_alsa: set paused to false when executing close
15c1c9d42e is described below

commit 15c1c9d42edc551f789d67d1767619abfd51a2c3
Author: yangsen5 <[email protected]>
AuthorDate: Mon Dec 16 15:27:49 2024 +0800

    sim_alsa: set paused to false when executing close
    
    Signed-off-by: yangsen5 <[email protected]>
---
 arch/sim/src/sim/posix/sim_alsa.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/sim/src/sim/posix/sim_alsa.c 
b/arch/sim/src/sim/posix/sim_alsa.c
index 708b03c46f..cd3280a5c0 100644
--- a/arch/sim/src/sim/posix/sim_alsa.c
+++ b/arch/sim/src/sim/posix/sim_alsa.c
@@ -303,6 +303,7 @@ static int sim_audio_close(struct sim_audio_s *priv)
   host_uninterruptible(snd_pcm_close, priv->pcm);
 
   priv->pcm = NULL;
+  priv->paused = false;
 
   return 0;
 }

Reply via email to