Skip to content

Commit 669ecaf

Browse files
ranj063ujfalusi
authored andcommitted
ASoC: SOF: intel: hda-stream: Clear the current position when releasing stream
After the host DMA IID 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 24c4bc5 commit 669ecaf

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
@@ -312,6 +312,7 @@ static int _hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stre
312312
if (s->direction == direction && s->stream_tag == stream_tag) {
313313
s->opened = false;
314314
found = true;
315+
s->curr_pos = 0;
315316
if (pair)
316317
link_stream = hext_stream;
317318
} else if (!(hda_stream->flags & SOF_HDA_STREAM_DMI_L1_COMPATIBLE)) {

0 commit comments

Comments
 (0)