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/07/04 04:33:52 UTC

[incubator-nuttx] 04/04: boards: cxd56xx: Fix warning of cxd56 audio driver

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 12fb49d0a371aa73929ecc833c969eecbc545dd8
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Sun Jul 4 12:42:32 2021 +0900

    boards: cxd56xx: Fix warning of cxd56 audio driver
    
    Only when CONFIG_AUDIO_CXD56 is enabled, board_audio_initialize_driver
    function is available.
---
 boards/arm/cxd56xx/common/src/cxd56_audio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/boards/arm/cxd56xx/common/src/cxd56_audio.c b/boards/arm/cxd56xx/common/src/cxd56_audio.c
index 692fa16..023b8c0 100644
--- a/boards/arm/cxd56xx/common/src/cxd56_audio.c
+++ b/boards/arm/cxd56xx/common/src/cxd56_audio.c
@@ -453,6 +453,7 @@ void board_audio_finalize(void)
   board_audio_i2s_disable();
 }
 
+#ifdef CONFIG_AUDIO_CXD56
 /****************************************************************************
  * Name: board_audio_initialize_driver
  *
@@ -530,3 +531,4 @@ int board_audio_initialize_driver(int minor)
 
   return ret;
 }
+#endif /* CONFIG_AUDIO_CXD56 */