projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: snd-usb: add snd_usb_audio-wide mutex
[deliverable/linux.git]
/
sound
/
usb
/
card.c
diff --git
a/sound/usb/card.c
b/sound/usb/card.c
index 4a7be7b98331538228a49e13c81faf6b7f8243b7..6bc88b7ce4fd61cd55282b976fc75816c07f1d28 100644
(file)
--- a/
sound/usb/card.c
+++ b/
sound/usb/card.c
@@
-276,6
+276,7
@@
static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif)
static int snd_usb_audio_free(struct snd_usb_audio *chip)
{
+ mutex_destroy(&chip->mutex);
kfree(chip);
return 0;
}
@@
-336,6
+337,7
@@
static int snd_usb_audio_create(struct usb_device *dev, int idx,
return -ENOMEM;
}
+ mutex_init(&chip->mutex);
mutex_init(&chip->shutdown_mutex);
chip->index = idx;
chip->dev = dev;
This page took
0.029124 seconds
and
5
git commands to generate.