diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-10-24 12:25:32 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-10-24 12:36:40 (GMT) |
commit | a5606f85611267047206d8ba055bc0e4ba166ad3 (patch) | |
tree | e7ddca0bee0ce3ffb002afb3f4715f49a9573214 /include/sound | |
parent | 95f74c41b2e53f541f2f66c8ba3dac1601ebd409 (diff) | |
download | linux-fsl-qoriq-a5606f85611267047206d8ba055bc0e4ba166ad3.tar.xz |
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>
Diffstat (limited to 'include/sound')
-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 510aec4..af99839 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 |