[ALSA] PCM midlevel & PCM OSS - make procfs & OSS plugin code optional
[firefly-linux-kernel-4.4.55.git] / sound / core / oss / mulaw.c
index 14f5578ec7a7842fce9c16307467a3f883209b19..ed12c81fcf1b94f449d1bc81622cb26068a6af68 100644 (file)
@@ -22,6 +22,9 @@
  */
   
 #include <sound/driver.h>
+
+#ifdef CONFIG_SND_PCM_OSS_PLUGINS
+
 #include <linux/time.h>
 #include <sound/core.h>
 #include <sound/pcm.h>
@@ -306,3 +309,5 @@ int snd_pcm_plugin_build_mulaw(struct snd_pcm_substream *plug,
        *r_plugin = plugin;
        return 0;
 }
+
+#endif