ALSA: timer: add config item to export PCM timer disabling for expert
authorJie Yang <yang.jie@intel.com>
Fri, 16 Oct 2015 09:57:46 +0000 (17:57 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 16 Oct 2015 12:31:38 +0000 (14:31 +0200)
commit90bbaf66ee7b946952f1e82a0069639dea5fd893
treee3850c14dde524593c99cf0487a8694601376a22
parentdab9981756dbc3c50c194811f176f0d658c171af
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>
include/sound/pcm.h
sound/core/Kconfig
sound/core/Makefile
sound/core/pcm_lib.c
sound/core/pcm_native.c