|
@@ -1067,21 +1067,8 @@ static int acp_dma_trigger(struct snd_pcm_substream *substream, int cmd)
|
|
|
case SNDRV_PCM_TRIGGER_STOP:
|
|
|
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
|
|
|
case SNDRV_PCM_TRIGGER_SUSPEND:
|
|
|
- /* For playback, non circular dma should be stopped first
|
|
|
- * i.e Sysram to acp dma transfer channel(rtd->ch1) should be
|
|
|
- * stopped before stopping cirular dma which is acp sram to i2s
|
|
|
- * fifo dma transfer channel(rtd->ch2). Where as in Capture
|
|
|
- * scenario, i2s fifo to acp sram dma channel(rtd->ch2) stopped
|
|
|
- * first before stopping acp sram to sysram which is circular
|
|
|
- * dma(rtd->ch1).
|
|
|
- */
|
|
|
- if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
|
|
|
- acp_dma_stop(rtd->acp_mmio, rtd->ch1);
|
|
|
- ret = acp_dma_stop(rtd->acp_mmio, rtd->ch2);
|
|
|
- } else {
|
|
|
- acp_dma_stop(rtd->acp_mmio, rtd->ch2);
|
|
|
- ret = acp_dma_stop(rtd->acp_mmio, rtd->ch1);
|
|
|
- }
|
|
|
+ acp_dma_stop(rtd->acp_mmio, rtd->ch2);
|
|
|
+ ret = acp_dma_stop(rtd->acp_mmio, rtd->ch1);
|
|
|
rtd->bytescount = 0;
|
|
|
break;
|
|
|
default:
|