/* Pauses the audio DMA Stream/Channel playing from the Media.  */
HAL_StatusTypeDef HAL_I2S_DMAPause(I2S_HandleTypeDef *hi2s)
/* Pauses the audio DMA Stream/Channel playing from the Media.  */
HAL_StatusTypeDef HAL_I2S_DMAPause(I2S_HandleTypeDef *hi2s)
{
	__HAL_LOCK(hi2s);
	if (hi2s->State == HAL_I2S_STATE_BUSY_TX)
	{
		CLEAR_BIT(hi2s->Instance->CR, I2S_CR_TXDMA_EN);
	}
	if (hi2s->State == HAL_I2S_STATE_BUSY_RX)
	{
		CLEAR_BIT(hi2s->Instance->CR, I2S_CR_RXDMA_EN);
	}
	__HAL_UNLOCK(hi2s);
	return HAL_OK;
}