Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932436AbbEZNlp (ORCPT ); Tue, 26 May 2015 09:41:45 -0400 Received: from mga09.intel.com ([134.134.136.24]:65470 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752575AbbEZNKR (ORCPT ); Tue, 26 May 2015 09:10:17 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,498,1427785200"; d="scan'208";a="715693433" From: Jie Yang To: tiwai@suse.de, broonie@kernel.org Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, liam.r.girdwood@intel.com, yang.jie@intel.com, vivian.zhang@intel.com Subject: [PATCH v2 1/2] ALSA: Kconfig: add config menu for reduced memory footprint Date: Tue, 26 May 2015 21:13:56 +0800 Message-Id: <1432646037-23803-2-git-send-email-yang.jie@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432646037-23803-1-git-send-email-yang.jie@intel.com> References: <1432646037-23803-1-git-send-email-yang.jie@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1366 Lines: 47 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 root config menu for those configuration, and disable procfs once reduced memory footprint is selected. Signed-off-by: Jie Yang --- sound/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sound/Kconfig b/sound/Kconfig index 5a240e0..84c9e58 100644 --- a/sound/Kconfig +++ b/sound/Kconfig @@ -68,6 +68,22 @@ menuconfig SND if SND +menuconfig SND_REDUCED_MEMORY_FOOTPRINT + bool "Reduced Memory Footprint Support" + default n + help + Say 'Y' to enable Reduced Memory Footprint Support, which may + reduce code size and data footprint as much as possible. + +config SND_PROC_FS + bool "Sound Proc FS Support" if SND_REDUCED_MEMORY_FOOTPRINT + 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. + source "sound/core/Kconfig" source "sound/drivers/Kconfig" -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/