From cec499fa9a1d92b9f1fd2bf58e77ad8515bd7b7a Mon Sep 17 00:00:00 2001 From: yangsen5 Date: Mon, 16 Dec 2024 15:27:49 +0800 Subject: [PATCH] sim_alsa: set paused to false when executing close Signed-off-by: yangsen5 --- 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; }