diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-10-24 14:25:32 +0200 |
---|---|---|
committer | Nicolin Chen <b42378@freescale.com> | 2013-11-05 18:56:43 +0800 |
commit | fd489eda0674a05341fa878664aa649f47fb649f (patch) | |
tree | ffcaa552b86ca8f2ac8731d6fc346bca012fc1ed /include | |
parent | 8f9ac7996b7322841de7526964e4dba995b96a01 (diff) |
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>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/memalloc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/memalloc.h b/include/sound/memalloc.h index 510aec437f72..af9983970417 100644 --- a/include/sound/memalloc.h +++ b/include/sound/memalloc.h @@ -52,7 +52,11 @@ struct snd_dma_device { #else #define SNDRV_DMA_TYPE_DEV_SG SNDRV_DMA_TYPE_DEV /* no SG-buf support */ #endif +#ifdef CONFIG_GENERIC_ALLOCATOR #define SNDRV_DMA_TYPE_DEV_IRAM 4 /* generic device iram-buffer */ +#else +#define SNDRV_DMA_TYPE_DEV_IRAM SNDRV_DMA_TYPE_DEV +#endif /* * info for buffer allocation |