diff options
author | Jie Yang <yang.jie@intel.com> | 2015-10-16 17:57:46 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-10-16 14:31:38 +0200 |
commit | 90bbaf66ee7b946952f1e82a0069639dea5fd893 (patch) | |
tree | e3850c14dde524593c99cf0487a8694601376a22 /sound/core/Makefile | |
parent | dab9981756dbc3c50c194811f176f0d658c171af (diff) | |
download | linux-90bbaf66ee7b946952f1e82a0069639dea5fd893.tar.gz linux-90bbaf66ee7b946952f1e82a0069639dea5fd893.tar.bz2 linux-90bbaf66ee7b946952f1e82a0069639dea5fd893.zip |
ALSA: timer: add config item to export PCM timer disabling for expert
PCM timer is not always used. For embedded device, we need an interface
to disable it when it is not needed, to shrink the kernel size and
memory footprint, here add CONFIG_SND_PCM_TIMER for it.
When both CONFIG_SND_PCM_TIMER and CONFIG_SND_TIMER is unselected,
about 25KB saving bonus we can get.
Please be noted that when disabled, those stubs who using pcm timer
(e.g. dmix, dsnoop & co) may work incorrectlly.
Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/Makefile')
-rw-r--r-- | sound/core/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/core/Makefile b/sound/core/Makefile index 3354f91e003a..48ab4b8f8279 100644 --- a/sound/core/Makefile +++ b/sound/core/Makefile @@ -13,8 +13,9 @@ snd-$(CONFIG_SND_OSSEMUL) += sound_oss.o snd-$(CONFIG_SND_VMASTER) += vmaster.o snd-$(CONFIG_SND_JACK) += ctljack.o jack.o -snd-pcm-y := pcm.o pcm_native.o pcm_lib.o pcm_timer.o pcm_misc.o \ +snd-pcm-y := pcm.o pcm_native.o pcm_lib.o pcm_misc.o \ pcm_memory.o memalloc.o +snd-pcm-$(CONFIG_SND_PCM_TIMER) += pcm_timer.o snd-pcm-$(CONFIG_SND_DMA_SGBUF) += sgbuf.o snd-pcm-$(CONFIG_SND_PCM_ELD) += pcm_drm_eld.o snd-pcm-$(CONFIG_SND_PCM_IEC958) += pcm_iec958.o |