ALSA: ak411x: Fix race of reinit() calls
[linux-2.6-microblaze.git] / include / sound / ak4113.h
index f4fbf68..58c1456 100644 (file)
@@ -287,6 +287,7 @@ struct ak4113 {
        ak4113_read_t *read;
        void *private_data;
        atomic_t wq_processing;
+       struct mutex reinit_mutex;
        spinlock_t lock;
        unsigned char regmap[AK4113_WRITABLE_REGS];
        struct snd_kcontrol *kctls[AK4113_CONTROLS];