diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2015-02-21 17:55:00 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-02-23 11:11:24 +0300 |
commit | dec84316dd53c90e93b4ee849483bd4bd1e9a585 (patch) | |
tree | 3725938633e83ba9bf303e171323bbb911a0ba9f /sound/firewire/fireworks/fireworks_stream.c | |
parent | d23c2cc4485d10f0cedfef99dd2961d9652b1b3f (diff) | |
download | linux-dec84316dd53c90e93b4ee849483bd4bd1e9a585.tar.xz |
ALSA: fireworks/bebob/dice/oxfw: make it possible to shutdown safely
A part of these drivers, especially BeBoB driver, are programmed to wait
some events. Thus the drivers should not destroy any data in .remove()
context.
This commit moves some destructors from 'struct fw_driver.remove()' to
'struct snd_card.private_free()' to shutdown safely.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: <stable@vger.kernel.org> # 3.19+
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/fireworks/fireworks_stream.c')
-rw-r--r-- | sound/firewire/fireworks/fireworks_stream.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/firewire/fireworks/fireworks_stream.c b/sound/firewire/fireworks/fireworks_stream.c index f817b7ae097e..c55db1bddc80 100644 --- a/sound/firewire/fireworks/fireworks_stream.c +++ b/sound/firewire/fireworks/fireworks_stream.c @@ -324,12 +324,8 @@ void snd_efw_stream_update_duplex(struct snd_efw *efw) void snd_efw_stream_destroy_duplex(struct snd_efw *efw) { - mutex_lock(&efw->mutex); - destroy_stream(efw, &efw->rx_stream); destroy_stream(efw, &efw->tx_stream); - - mutex_unlock(&efw->mutex); } void snd_efw_stream_lock_changed(struct snd_efw *efw) |