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 <alin.jerpelea@sony.com>
This commit is contained in:
parent
d572b06a6c
commit
43b21a4693
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user