alsa: Do not call alsa shutdown functions if alsa wasn't yet initialized.
authorAndre Noll <maan@systemlinux.org>
Fri, 1 May 2009 12:05:47 +0000 (14:05 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 1 May 2009 12:05:47 +0000 (14:05 +0200)
commit3e1a2e10f0f145033d8aa7db512b2c29808014a7
tree2179f0f69536f8a3038ed1282bebaa0d6cbfa6e4
parent349ca46809d2197fb7c11531a456bbb6ba3bf274
alsa: Do not call alsa shutdown functions if alsa wasn't yet initialized.

This might happen if the wng is destroyed before any output was
produced. This bug could trigger

para_audiod: pcm.c:1105: snd_pcm_drain: Assertion `pcm' failed

causing audiod to crash.
alsa_write.c