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

archer pushed a commit to branch releases/12.9
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/releases/12.9 by this push:
     new c7dea2b6b7 audio/pcm_decode: fix typo in assert condition
c7dea2b6b7 is described below

commit c7dea2b6b717b535f7446e2323e914b040beee7d
Author: chao an <anchao.arc...@bytedance.com>
AuthorDate: Sun Mar 9 20:17:06 2025 +0800

    audio/pcm_decode: fix typo in assert condition
    
    should be shutdown not start
    
    Signed-off-by: chao an <anchao.arc...@bytedance.com>
---
 audio/pcm_decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/audio/pcm_decode.c b/audio/pcm_decode.c
index 98bf6faed0..007f18c0b3 100644
--- a/audio/pcm_decode.c
+++ b/audio/pcm_decode.c
@@ -804,7 +804,7 @@ static int pcm_shutdown(FAR struct audio_lowerhalf_s *dev)
   /* Defer the operation to the lower device driver */
 
   lower = priv->lower;
-  DEBUGASSERT(lower && lower->ops->start);
+  DEBUGASSERT(lower && lower->ops->shutdown);
 
   audinfo("Defer to lower shutdown\n");
   return lower->ops->shutdown(lower);

Reply via email to