ALSA: Add ifdef CONFIG_GENERIC_ALLOCATOR for SNDRV_DMA_TYPE_IRAM code
authorTakashi Iwai <tiwai@suse.de>
Thu, 24 Oct 2013 12:25:32 +0000 (14:25 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Oct 2013 12:36:40 +0000 (14:36 +0200)
commita5606f85611267047206d8ba055bc0e4ba166ad3
treee7ddca0bee0ce3ffb002afb3f4715f49a9573214
parent95f74c41b2e53f541f2f66c8ba3dac1601ebd409
ALSA: Add ifdef CONFIG_GENERIC_ALLOCATOR for SNDRV_DMA_TYPE_IRAM code

It turned out that we can't use gen_pool_*() functions on archs
without CONFIG_GENERIC_ALLOCATOR (resulting in missing symbols), since
linux/genalloc.h doesn't provide dummy functions for all.  We'd be
able to fix linux/genalloc.h size, but I take an easier path for
now...

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/memalloc.h
sound/core/memalloc.c
sound/core/pcm_native.c