]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/sound/pcm.h
ALSA: pcm: More fine-grained PCM link locking
[linux.git] / include / sound / pcm.h
index e1c747c70883757d61183b67ff6e2c315a1cac70..3bde24575a99aa54c5d9827ef92abafa47db845f 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/mm.h>
 #include <linux/bitops.h>
 #include <linux/pm_qos.h>
+#include <linux/refcount.h>
 
 #define snd_pcm_substream_chip(substream) ((substream)->private_data)
 #define snd_pcm_chip(pcm) ((pcm)->private_data)
@@ -439,6 +440,7 @@ struct snd_pcm_group {              /* keep linked substreams */
        spinlock_t lock;
        struct mutex mutex;
        struct list_head substreams;
+       refcount_t refs;
 };
 
 struct pid;