diff options
-rw-r--r-- | drivers/staging/line6/pcm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/line6/pcm.c b/drivers/staging/line6/pcm.c index 4795f1284906..0dd08ef51398 100644 --- a/drivers/staging/line6/pcm.c +++ b/drivers/staging/line6/pcm.c | |||
@@ -392,8 +392,11 @@ static int snd_line6_pcm_free(struct snd_device *device) | |||
392 | */ | 392 | */ |
393 | static void pcm_disconnect_substream(struct snd_pcm_substream *substream) | 393 | static void pcm_disconnect_substream(struct snd_pcm_substream *substream) |
394 | { | 394 | { |
395 | if (substream->runtime && snd_pcm_running(substream)) | 395 | if (substream->runtime && snd_pcm_running(substream)) { |
396 | snd_pcm_stream_lock_irq(substream); | ||
396 | snd_pcm_stop(substream, SNDRV_PCM_STATE_DISCONNECTED); | 397 | snd_pcm_stop(substream, SNDRV_PCM_STATE_DISCONNECTED); |
398 | snd_pcm_stream_unlock_irq(substream); | ||
399 | } | ||
397 | } | 400 | } |
398 | 401 | ||
399 | /* | 402 | /* |