Skip to content

Commit 6603c7b

Browse files
committed
ASoC: SOF: Intel: hda-stream: clear hstream->running flag in hw_params
During hw_params call we make sure that the host DMA is stopped but the hstream->running flag is not explicitly cleared at the same time. If the host DMA fails to stop during previous use then the flag is left set and on next start the host DMA will be left disabled since the trigger:STOP will skip the DMA enable. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent c4c89d5 commit 6603c7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sound/soc/sof/intel/hda-stream.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,9 @@ int hda_dsp_stream_hw_params(struct snd_sof_dev *sdev,
604604
return ret;
605605
}
606606

607+
/* Host DMA is not running */
608+
hstream->running = false;
609+
607610
snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR,
608611
sd_offset + SOF_HDA_ADSP_REG_SD_STS,
609612
SOF_HDA_CL_DMA_SD_INT_MASK,

0 commit comments

Comments
 (0)