[ALSA] usb-audio: properly lock hwptr_done accesses
authorClemens Ladisch <clemens@ladisch.de>
Mon, 15 Aug 2005 06:25:50 +0000 (08:25 +0200)
committerJaroslav Kysela <perex@suse.cz>
Tue, 30 Aug 2005 06:45:50 +0000 (08:45 +0200)
commitdaa150ef7d437d17973210f47a1c58623415df94
treee41056adf7f00cad4681051d4b7d6b524ea8a68f
parent9624ea812c7afd2e403c56366cadddb9ecfb88c6
[ALSA] usb-audio: properly lock hwptr_done accesses

USB generic driver
Take the substream lock when reading hwptr_done to avoid a race
condition with the updates in the URB callbacks.

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