ALSA: Kconfig: add config item SND_PROC_FS for expert
authorJie Yang <yang.jie@intel.com>
Wed, 27 May 2015 11:45:44 +0000 (19:45 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 27 May 2015 19:25:17 +0000 (21:25 +0200)
For some embedded devices, we need reduce code size and data
footprint as much as possible, e.g. disabling procfs, hw/sw
params refinement, mmap, dpcm, dapm, compressed API...

Here add SND_PROC_FS item for expert, we can unselect it to
disable sound proc FS and reduce memory footprint.

Signed-off-by: Jie Yang <yang.jie@intel.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/Kconfig

index 937f5c76389990dc0f2bf01368ee8b51fb09c1cc..6c96feeaf01eb08794be6321fa0ac35aba66b3e8 100644 (file)
@@ -182,9 +182,18 @@ config SND_SUPPORT_OLD_API
          Say Y here to support the obsolete ALSA PCM API (ver.0.9.0 rc3
          or older).
 
+config SND_PROC_FS
+        bool "Sound Proc FS Support" if EXPERT
+        depends on PROC_FS
+        default y
+        help
+          Say 'N' to disable Sound proc FS, which may reduce code size about
+          9KB on x86_64 platform.
+          If unsure say Y.
+
 config SND_VERBOSE_PROCFS
        bool "Verbose procfs contents"
-       depends on PROC_FS
+       depends on SND_PROC_FS
        default y
        help
          Say Y here to include code for verbose procfs contents (provides