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/incubator-nuttx.git

commit e9e15689d0e58bf4e4ebd232454942bf3d855f34
Author: Tobias Johansson <tobias.johans...@sony.com>
AuthorDate: Wed Nov 17 13:40:45 2021 +0100

    drivers: audio: Close MQ in cxd56 SRC
    
    Closes the message queue file handle when the sample
    rate converter is de-initialized.
    
    Signed-off-by: Tobias Johansson <tobias.johans...@sony.com>
---
 drivers/audio/cxd56_src.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/audio/cxd56_src.c b/drivers/audio/cxd56_src.c
index 0134841..9438f3d 100644
--- a/drivers/audio/cxd56_src.c
+++ b/drivers/audio/cxd56_src.c
@@ -529,6 +529,8 @@ int cxd56_src_deinit(void)
     file_close(&dump_file_post);
 #endif
 
+  file_mq_close(&g_src.mq);
+
   return OK;
 }
 

Reply via email to