Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sound/soc/sof/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@ static int sof_pcm_hw_free(struct snd_pcm_substream *substream)

snd_pcm_lib_free_pages(substream);

cancel_work_sync(&spcm->stream[substream->stream].period_elapsed_work);

if (ret < 0)
return ret;

Expand Down Expand Up @@ -522,6 +520,8 @@ static int sof_pcm_close(struct snd_pcm_substream *substream)
*/
}

cancel_work_sync(&spcm->stream[substream->stream].period_elapsed_work);

return 0;
}

Expand Down