You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/11/22 09:38:27 UTC

[incubator-nuttx] 07/07: drivers: audio: Fix build warning in cxd56

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 c7e604b20bb6f778fd97532a5d2b6b7c20e564e6
Author: Tobias Johansson <to...@sony.com>
AuthorDate: Wed Nov 17 14:53:54 2021 +0100

    drivers: audio: Fix build warning in cxd56
    
    Signed-off-by: Tobias Johansson <to...@sony.com>
---
 drivers/audio/cxd56.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/audio/cxd56.c b/drivers/audio/cxd56.c
index 6fd645d..4fadf9b 100644
--- a/drivers/audio/cxd56.c
+++ b/drivers/audio/cxd56.c
@@ -1320,7 +1320,7 @@ static void _process_audio_with_src(cxd56_dmahandle_t hdl, uint16_t err_code)
         {
           struct ap_buffer_s *apb;
 
-          apb = dq_get(&dev->up_runq);
+          apb = (struct ap_buffer_s *) dq_get(&dev->up_runq);
           spin_unlock_irqrestore(&dev->lock, flags);
           dev->dev.upper(dev->dev.priv, AUDIO_CALLBACK_DEQUEUE, apb, OK);
           flags = spin_lock_irqsave(&dev->lock);