ALSA: ak411x: Fix race of reinit() calls
[sfrench/cifs-2.6.git] / include / sound / ak4114.h
index e681df2c95e1efc28b5a232d92479b241ca4d03b..b6feb7e225f2624570ace761e22ad3faf73f2c44 100644 (file)
@@ -169,6 +169,7 @@ struct ak4114 {
        ak4114_read_t * read;
        void * private_data;
        atomic_t wq_processing;
+       struct mutex reinit_mutex;
        spinlock_t lock;
        unsigned char regmap[6];
        unsigned char txcsb[5];