diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-20 08:17:30 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-20 08:17:30 -0500 |
commit | f2a93e2a4c048dfb5c7ee3f159a4a1d1cb61b4b5 (patch) | |
tree | a07d47ccc8d641fc1437b9c8cfe338461e02871f | |
parent | 25c62f7e7014d64c0308d0dedb99282ed8ade2ce (diff) |
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 <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/codecs/wm_adsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
553 | adsp_warn(dsp, "Algorithm list end %x 0x%x != 0xbeadead\n", | 553 | adsp_warn(dsp, "Algorithm list end %x 0x%x != 0xbeadead\n", |
554 | term, be32_to_cpu(val)); | 554 | term, be32_to_cpu(val)); |
555 | 555 | ||
556 | alg = kzalloc((term - pos) * 2, GFP_KERNEL); | 556 | alg = kzalloc((term - pos) * 2, GFP_KERNEL | GFP_DMA); |
557 | if (!alg) | 557 | if (!alg) |
558 | return -ENOMEM; | 558 | return -ENOMEM; |
559 | 559 | ||