You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ma...@apache.org on 2020/11/06 02:11:47 UTC
[incubator-nuttx] 02/03: drivers: audio: cxd56: add I2S debugging
This is an automated email from the ASF dual-hosted git repository.
masayuki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 43b21a4693bc5ee681746f8627f4cbc75a1ae3b7
Author: Tobias Johansson <to...@sony.com>
AuthorDate: Thu Nov 5 10:16:18 2020 +0100
drivers: audio: cxd56: add I2S debugging
When audio fails it is usefull to have I2S transfer errors in place
to be able to track the issue
Signed-off-by: Alin Jerpelea <al...@sony.com>
---
drivers/audio/cxd56.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/audio/cxd56.c b/drivers/audio/cxd56.c
index 9f01ccd..a7970ed 100644
--- a/drivers/audio/cxd56.c
+++ b/drivers/audio/cxd56.c
@@ -1334,6 +1334,8 @@ static void cxd56_dma_int_handler(void)
write_reg(REG_I2S1_INT_CTRL_ERR, 1);
err_code = CXD56_AUDIO_ECODE_DMA_TRANS;
+
+ auderr("ERROR: I2S0 transfer failed.\n");
}
if (int_i2s & (1 << REG_I2S1_INT_CTRL_CMB.pos))
@@ -1344,6 +1346,8 @@ static void cxd56_dma_int_handler(void)
write_reg(REG_I2S1_INT_CTRL_CMB, 1);
err_code = CXD56_AUDIO_ECODE_DMA_CMB;
+
+ auderr("ERROR: I2S0 bus error.\n");
}
}
else