[ALSA] PCM midlevel & PCM OSS - make procfs & OSS plugin code optional
[firefly-linux-kernel-4.4.55.git] / sound / core / oss / linear.c
index 8cbfa415ce409f86ee12ef9f51976fdab83e2625..ef331230b3a6ba01c2d913b693950a443935ace2 100644 (file)
@@ -21,6 +21,9 @@
  */
 
 #include <sound/driver.h>
+
+#ifdef CONFIG_SND_PCM_OSS_PLUGINS
+
 #include <linux/time.h>
 #include <sound/core.h>
 #include <sound/pcm.h>
@@ -156,3 +159,5 @@ int snd_pcm_plugin_build_linear(struct snd_pcm_substream *plug,
        *r_plugin = plugin;
        return 0;
 }
+
+#endif