Merge tag 'folio-5.18d' of git://git.infradead.org/users/willy/pagecache
[linux-2.6-microblaze.git] / include / sound / pcm.h
index 36da42c..6b99310 100644 (file)
@@ -401,6 +401,8 @@ struct snd_pcm_runtime {
        wait_queue_head_t tsleep;       /* transfer sleep */
        struct fasync_struct *fasync;
        bool stop_operating;            /* sync_stop will be called */
+       struct mutex buffer_mutex;      /* protect for buffer changes */
+       atomic_t buffer_accessing;      /* >0: in r/w operation, <0: blocked */
 
        /* -- private section -- */
        void *private_data;