From: Takashi Iwai Date: Thu, 8 Nov 2012 07:52:45 +0000 (+0100) Subject: ALSA: usb-audio: Fix crash at re-preparing the PCM stream X-Git-Tag: v3.7-rc5~10^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f58161ba1b05a968e5136824b5a16b714b6a5317;p=pandora-kernel.git ALSA: usb-audio: Fix crash at re-preparing the PCM stream There are bug reports of a crash with USB-audio devices when PCM prepare is performed immediately after the stream is stopped via trigger callback. It turned out that the problem is that we don't wait until all URBs are killed. This patch adds a new function to synchronize the pending stop operation on an endpoint, and calls in the prepare callback for avoiding the crash above. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=49181 Reported-and-tested-by: Artem S. Tashkinov Cc: [v3.6] Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed