/* De-Initializes the I2S and DMA for the board.  */
__WEAKDEF void BSP_I2S_DeInit(void)
/* De-Initializes the I2S and DMA for the board.  */
__WEAKDEF void BSP_I2S_DeInit(void)
{
    DMA_TransCompleteIntCmd(BSP_WM8731_DMA_UNIT, (BSP_WM8731_DMA_SD_INT_CH | BSP_WM8731_DMA_SDIN_INT_CH), DISABLE);
    (void)DMA_ChCmd(BSP_WM8731_DMA_UNIT, BSP_WM8731_DMA_SD_CH, DISABLE);
    (void)DMA_ChCmd(BSP_WM8731_DMA_UNIT, BSP_WM8731_DMA_SDIN_CH, DISABLE);
    I2S_FuncCmd(BSP_WM8731_I2S_UNIT, I2S_FUNC_RX | I2S_FUNC_TX, DISABLE);
    I2S_SWReset(BSP_WM8731_I2S_UNIT, I2S_RST_TYPE_ALL);
}