]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/sound/pcm_oss.h
[ALSA] Clean up PCM codes (take 2)
[linux-2.6-omap-h63xx.git] / include / sound / pcm_oss.h
index fddaddde47b4f1803a66216c76394ebdb0c7d80f..1d522aaa66dfdbc6d1511d90f90da61d5b2f5a7a 100644 (file)
@@ -56,8 +56,10 @@ struct snd_pcm_oss_runtime {
        size_t mmap_bytes;
        char *buffer;                           /* vmallocated period */
        size_t buffer_used;                     /* used length from period buffer */
+#ifdef CONFIG_SND_PCM_OSS_PLUGINS
        struct snd_pcm_plugin *plugin_first;
        struct snd_pcm_plugin *plugin_last;
+#endif
        unsigned int prev_hw_ptr_interrupt;
 };
 
@@ -68,12 +70,11 @@ struct snd_pcm_oss_file {
 struct snd_pcm_oss_substream {
        unsigned oss: 1;                        /* oss mode */
        struct snd_pcm_oss_setup *setup;                /* active setup */
-       struct snd_pcm_oss_file *file;
 };
 
 struct snd_pcm_oss_stream {
        struct snd_pcm_oss_setup *setup_list;   /* setup list */
-        struct semaphore setup_mutex;
+       struct mutex setup_mutex;
        struct snd_info_entry *proc_entry;
 };