Skip to content

Commit 413a226

Browse files
ranj063lgirdwood
authored andcommitted
ASoC: SOF: intel: hda-stream: Clear the current position when releasing stream
After the host DMA ID is released, reset the curr_pos to 0 for a clean start for subsequent stream starts. This is not needed for PCM streams but for compressed streams. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 5f1567b commit 413a226

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ static int _hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stre
317317
if (s->direction == direction && s->stream_tag == stream_tag) {
318318
s->opened = false;
319319
found = true;
320+
s->curr_pos = 0;
320321
if (pair)
321322
link_stream = hext_stream;
322323
} else if (!(hda_stream->flags & SOF_HDA_STREAM_DMI_L1_COMPATIBLE)) {

0 commit comments

Comments
 (0)