diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-10-24 08:25:32 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-10-24 08:36:40 -0400 |
commit | a5606f85611267047206d8ba055bc0e4ba166ad3 (patch) | |
tree | e7ddca0bee0ce3ffb002afb3f4715f49a9573214 /include/sound/memalloc.h | |
parent | 95f74c41b2e53f541f2f66c8ba3dac1601ebd409 (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>
Diffstat (limited to 'include/sound/memalloc.h')
-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 { | |||
52 | #else | 52 | #else |
53 | #define SNDRV_DMA_TYPE_DEV_SG SNDRV_DMA_TYPE_DEV /* no SG-buf support */ | 53 | #define SNDRV_DMA_TYPE_DEV_SG SNDRV_DMA_TYPE_DEV /* no SG-buf support */ |
54 | #endif | 54 | #endif |
55 | #ifdef CONFIG_GENERIC_ALLOCATOR | ||
55 | #define SNDRV_DMA_TYPE_DEV_IRAM 4 /* generic device iram-buffer */ | 56 | #define SNDRV_DMA_TYPE_DEV_IRAM 4 /* generic device iram-buffer */ |
57 | #else | ||
58 | #define SNDRV_DMA_TYPE_DEV_IRAM SNDRV_DMA_TYPE_DEV | ||
59 | #endif | ||
56 | 60 | ||
57 | /* | 61 | /* |
58 | * info for buffer allocation | 62 | * info for buffer allocation |