ALSA: firewire-speakers: fix hang when unplugging a running device
commit2725fb2c0e7081f99dd2a24b3b2ea9a93b0d236d
authorClemens Ladisch <clemens@ladisch.de>
Wed, 30 Mar 2011 06:27:26 +0000 (30 08:27 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Wed, 30 Mar 2011 06:27:26 +0000 (30 08:27 +0200)
tree38b0b35c2d680c2c289c504ca8b0ba61620890df
parent7365ec51bd8653d141bc98b5632f2c53580d2b36
ALSA: firewire-speakers: fix hang when unplugging a running device

When aborting a PCM stream, the xrun is signaled only if the stream is
running.  When disconnecting a PCM stream, calling snd_card_disconnect()
too early would change the stream into a non-running state and thus
prevent the xrun from being noticed by user space.

To prevent this, move the snd_card_disconnect() call after the xrun.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/firewire/speakers.c