]> Git Repo - linux.git/commitdiff
ASoC: wm_adsp: Use GFP_DMA for algorithm readback
authorMark Brown <[email protected]>
Sun, 20 Jan 2013 13:17:30 +0000 (22:17 +0900)
committerMark Brown <[email protected]>
Sun, 20 Jan 2013 13:17:30 +0000 (22:17 +0900)
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

index 084ea5f4aedd3fe61fca24f5144c9e94bee593d2..edb67138d548ada41ca60a11d07a26b514af865b 100644 (file)
@@ -553,7 +553,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;
 
This page took 0.054963 seconds and 4 git commands to generate.