X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fsound%2Fmemalloc.h;h=af998397041768a82ee347665e7040a9a4e44b9c;hb=288342e9cc867421d20f940d0c06b7aa4bf39096;hp=cf15b8213df7e0bd7e25e6d003f23ffd1d375674;hpb=3792a64fdeeb9cab56c22695aaeb0624f1b295b4;p=firefly-linux-kernel-4.4.55.git diff --git a/include/sound/memalloc.h b/include/sound/memalloc.h index cf15b8213df7..af9983970417 100644 --- a/include/sound/memalloc.h +++ b/include/sound/memalloc.h @@ -52,6 +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