diff options
Diffstat (limited to 'sound/firewire/speakers.c')
-rw-r--r-- | sound/firewire/speakers.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/firewire/speakers.c b/sound/firewire/speakers.c index 3fc257da180c..cbe6bb9e53b6 100644 --- a/sound/firewire/speakers.c +++ b/sound/firewire/speakers.c | |||
@@ -778,9 +778,10 @@ static int __devexit fwspk_remove(struct device *dev) | |||
778 | { | 778 | { |
779 | struct fwspk *fwspk = dev_get_drvdata(dev); | 779 | struct fwspk *fwspk = dev_get_drvdata(dev); |
780 | 780 | ||
781 | mutex_lock(&fwspk->mutex); | ||
782 | amdtp_out_stream_pcm_abort(&fwspk->stream); | 781 | amdtp_out_stream_pcm_abort(&fwspk->stream); |
783 | snd_card_disconnect(fwspk->card); | 782 | snd_card_disconnect(fwspk->card); |
783 | |||
784 | mutex_lock(&fwspk->mutex); | ||
784 | fwspk_stop_stream(fwspk); | 785 | fwspk_stop_stream(fwspk); |
785 | mutex_unlock(&fwspk->mutex); | 786 | mutex_unlock(&fwspk->mutex); |
786 | 787 | ||
@@ -796,8 +797,8 @@ static void fwspk_bus_reset(struct fw_unit *unit) | |||
796 | fcp_bus_reset(fwspk->unit); | 797 | fcp_bus_reset(fwspk->unit); |
797 | 798 | ||
798 | if (cmp_connection_update(&fwspk->connection) < 0) { | 799 | if (cmp_connection_update(&fwspk->connection) < 0) { |
799 | mutex_lock(&fwspk->mutex); | ||
800 | amdtp_out_stream_pcm_abort(&fwspk->stream); | 800 | amdtp_out_stream_pcm_abort(&fwspk->stream); |
801 | mutex_lock(&fwspk->mutex); | ||
801 | fwspk_stop_stream(fwspk); | 802 | fwspk_stop_stream(fwspk); |
802 | mutex_unlock(&fwspk->mutex); | 803 | mutex_unlock(&fwspk->mutex); |
803 | return; | 804 | return; |