ASoC: wm_adsp: Use GFP_DMA for things that may be DMAed
Subsystems (3)
PATCH 1/1 ASoC: wm_adsp: Use GFP_DMA for things that may be DMAed
Normally kmalloc() returns things that are DMA safe so not visible on all platforms but we do need to explicitly request DMA safe memory.
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/codecs/wm_adsp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm_adsp.c +3 -3
@@ -410,7 +410,7 @@ static int wm_adsp_load(struct wm_adsp *dsp)if (reg) { buf =kmemdup (region->data,le32_to_cpu (region->len), -GFP_KERNEL ); +GFP_KERNEL |GFP_DMA );if (!buf) {adsp_err (dsp,"Out of memory\n" );return -ENOMEM ;
@@ -557,7 +557,7 @@ static int wm_adsp_setup_algs(struct wm_adsp *dsp)adsp_warn (dsp,"Algorithm list end %x 0x%x != 0xbeadead\n" , term,be32_to_cpu (val)); - alg =kzalloc ((term - pos) *2 ,GFP_KERNEL ); + alg =kzalloc ((term - pos) *2 ,GFP_KERNEL |GFP_DMA );if (!alg)return -ENOMEM ;
@@ -779,7 +779,7 @@ static int wm_adsp_load_coeff(struct wm_adsp *dsp)if (reg) { buf =kmemdup (blk->data,le32_to_cpu (blk->len), -GFP_KERNEL ); +GFP_KERNEL |GFP_DMA );if (!buf) {adsp_err (dsp,"Out of memory\n" );return -ENOMEM ;
Signature · 1 line
1.7.10.4