Add audio/ sub-syste, include/nuttx/audio.h interface, and drivers/audio/vs1053.c driver to NuttX. From Ken Pettit

This commit is contained in:
Gregory Nutt
2013-05-19 15:12:28 -06:00
parent d581b9a849
commit 5b86207177
18 changed files with 1896 additions and 1 deletions
+32
View File
@@ -284,6 +284,18 @@
# define lllvdbg(x...)
#endif
#ifdef CONFIG_DEBUG_AUDIO
# define auddbg(format, arg...) dbg(format, ##arg)
# define audlldbg(format, arg...) lldbg(format, ##arg)
# define audvdbg(format, arg...) vdbg(format, ##arg)
# define audllvdbg(format, arg...) llvdbg(format, ##arg)
#else
# define auddbg(x...)
# define audlldbg(x...)
# define audvdbg(x...)
# define audllvdbg(x...)
#endif
#else /* CONFIG_CPP_HAVE_VARARGS */
/* Variable argument macros NOT supported */
@@ -453,6 +465,18 @@
# define lllvdbg (void)
#endif
#ifdef CONFIG_DEBUG_AUDIO
# define auddbg dbg
# define audlldbg lldbg
# define audvdbg vdbg
# define audllvdbg llvdbg
#else
# define auddbg (void)
# define audlldbg (void)
# define audvdbg (void)
# define audllvdbg (void)
#endif
#endif /* CONFIG_CPP_HAVE_VARARGS */
/* Buffer dumping macros do not depend on varargs */
@@ -559,6 +583,14 @@
# define lvdbgdumpbuffer(m,b,n)
#endif
#ifdef CONFIG_DEBUG_AUDIO
# define auddbgdumpbuffer(m,b,n) dbgdumpbuffer(m,b,n)
# define audvdbgdumpbuffer(m,b,n) vdbgdumpbuffer(m,b,n)
#else
# define auddbgdumpbuffer(m,b,n)
# define audvdbgdumpbuffer(m,b,n)
#endif
/****************************************************************************
* Public Type Declarations
****************************************************************************/