From: Mark Brown Date: Sun, 20 Jan 2013 13:17:30 +0000 (+0900) Subject: ASoC: wm_adsp: Use GFP_DMA for algorithm readback X-Git-Tag: next-20130218~63^2~16^2~27^2~11 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f2a93e2a4c048dfb5c7ee3f159a4a1d1cb61b4b5;p=karo-tx-linux.git ASoC: wm_adsp: Use GFP_DMA for algorithm readback 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 --- diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c index 084ea5f4aedd..edb67138d548 100644 --- a/sound/soc/codecs/wm_adsp.c +++ b/sound/soc/codecs/wm_adsp.c @@ -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;