File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,7 +136,8 @@ static void dmaengine_pcm_dma_complete(void *arg)
136136 struct dmaengine_pcm_runtime_data * prtd = substream_to_prtd (substream );
137137
138138#ifdef CONFIG_SND_SOC_ROCKCHIP_VAD
139- if (snd_pcm_vad_attached (substream )) {
139+ if (snd_pcm_vad_attached (substream ) &&
140+ substream -> stream == SNDRV_PCM_STREAM_CAPTURE ) {
140141 void * buf = substream -> runtime -> dma_area + prtd -> pos ;
141142
142143 snd_pcm_vad_preprocess (substream , buf ,
Original file line number Diff line number Diff line change @@ -94,7 +94,8 @@ static void dmaengine_mpcm_dma_complete(void *arg)
9494#ifdef CONFIG_SND_SOC_ROCKCHIP_VAD
9595 struct dmaengine_mpcm_runtime_data * prtd = substream_to_prtd (substream );
9696
97- if (snd_pcm_vad_attached (substream )) {
97+ if (snd_pcm_vad_attached (substream ) &&
98+ substream -> stream == SNDRV_PCM_STREAM_CAPTURE ) {
9899 void * buf = substream -> runtime -> dma_area + prtd -> pos ;
99100
100101 snd_pcm_vad_preprocess (substream , buf ,
You can’t perform that action at this time.
0 commit comments