diff options
Diffstat (limited to 'sound/firewire/amdtp.c')
-rw-r--r-- | sound/firewire/amdtp.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sound/firewire/amdtp.c b/sound/firewire/amdtp.c index 95fc2eaf11dc..3badc70124ab 100644 --- a/sound/firewire/amdtp.c +++ b/sound/firewire/amdtp.c | |||
@@ -1006,11 +1006,7 @@ void amdtp_stream_pcm_abort(struct amdtp_stream *s) | |||
1006 | struct snd_pcm_substream *pcm; | 1006 | struct snd_pcm_substream *pcm; |
1007 | 1007 | ||
1008 | pcm = ACCESS_ONCE(s->pcm); | 1008 | pcm = ACCESS_ONCE(s->pcm); |
1009 | if (pcm) { | 1009 | if (pcm) |
1010 | snd_pcm_stream_lock_irq(pcm); | 1010 | snd_pcm_stop_xrun(pcm); |
1011 | if (snd_pcm_running(pcm)) | ||
1012 | snd_pcm_stop(pcm, SNDRV_PCM_STATE_XRUN); | ||
1013 | snd_pcm_stream_unlock_irq(pcm); | ||
1014 | } | ||
1015 | } | 1011 | } |
1016 | EXPORT_SYMBOL(amdtp_stream_pcm_abort); | 1012 | EXPORT_SYMBOL(amdtp_stream_pcm_abort); |