summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorDana Conrad <dconrad@fastmail.com>2021-08-07 09:43:17 -0500
committerDana Conrad <dconrad@fastmail.com>2021-08-07 09:43:17 -0500
commita2bbd1a549097b6e6400ea9e3cafaab1dcac78df (patch)
tree923fa4d02fb772f5a5595a4e0fc37a13d02f9a8d /firmware
parent56b0dde5451ddedfd85c82391536e310cd05e1a8 (diff)
Fix warnings from 56b0dde545
Need a default bit depth in pcm-x1000.c Change-Id: I2c6af227975d2f47609b51090638012d8406ec1e
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/mips/ingenic_x1000/pcm-x1000.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/pcm-x1000.c b/firmware/target/mips/ingenic_x1000/pcm-x1000.c
index ce2fbb17a9..73c568c950 100644
--- a/firmware/target/mips/ingenic_x1000/pcm-x1000.c
+++ b/firmware/target/mips/ingenic_x1000/pcm-x1000.c
@@ -48,6 +48,11 @@ static void pcm_play_dma_int_cb(int event);
static void pcm_rec_dma_int_cb(int event);
#endif
+/* if not otherwise defined, set to 16 */
+#if !defined(PCM_NATIVE_BITDEPTH)
+# define PCM_NATIVE_BITDEPTH 16
+#endif
+
void pcm_play_dma_init(void)
{
/* Ungate clock, assign pins. NB this overlaps with pins labeled "sa0-sa4"