Skip to content

Commit

Permalink
ALSA: HACK: Fix rmmod crash
Browse files Browse the repository at this point in the history
Something appears to corrupt the runtime->status on second playback...

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
  • Loading branch information
lrgirdwo authored and plbossart committed Jun 19, 2018
1 parent b6666c6 commit 77467b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/core/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,7 @@ static int snd_pcm_dev_disconnect(struct snd_device *device)
list_del_init(&pcm->list);
for (cidx = 0; cidx < 2; cidx++) {
for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) {
#if 0
snd_pcm_stream_lock_irq(substream);
if (substream->runtime) {
if (snd_pcm_running(substream))
Expand All @@ -1171,6 +1172,7 @@ static int snd_pcm_dev_disconnect(struct snd_device *device)
wake_up(&substream->runtime->tsleep);
}
snd_pcm_stream_unlock_irq(substream);
#endif
}
}

Expand Down

0 comments on commit 77467b9

Please sign in to comment.