linux/sound/soc/qcom
Srinivas Kandagatla f5f76ea75d ASoC: qcom: use correct device pointer in dma allocation
dev pointer in struct snd_soc_pcm_runtime does not have dma_ops set. In
v4.4 kernel dma_ops would end up pointing to dummy_dma_ops in such cases.
So attempting to use such device in allocating coherent memory on aarch64
would fail.

According to commit 1dccb598df ("arm64:
simplify dma_get_ops") The current behavior of dma_get_ops is to fall
back to the global dma_ops when a device has not set its own dma_ops,
but only for DT based systems.

So, this patch fixes the driver to use correct device pointer while
allocating coherent memory, and also deletes un-necessary dma_mask setup
on soc_runtime->dev.

Without this patch lpass driver would fail with below log:
...
[    6.541542]  ADV7533: lpass_platform_alloc_buffer: Could not allocate DMA buffer
[    6.541914] apq8016-lpass-cpu 7708000.lpass-cpu: ASoC: pcm constructor failed: -12
[    6.548216] qcom-apq8016-sbc 7702000.sound: ASoC: can't create pcm ADV7533 :-12
[    6.555581] qcom-apq8016-sbc 7702000.sound: ASoC: failed to instantiate card -12
[    6.566072] qcom-apq8016-sbc: probe of 7702000.sound failed with error -12
...

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-01-11 15:29:25 +00:00
..
apq8016_sbc.c ASoC: qcom: add apq8016 sound card support 2015-06-10 18:29:33 +01:00
Kconfig ASoC: qcom: remove Kconfig deps from variant configs 2015-07-07 14:52:01 +01:00
lpass-apq8016.c ASoC: qcom: Add apq8016 lpass driver support 2015-05-25 15:04:32 +01:00
lpass-cpu.c ASoC: qcom: change PTR_ERR argument 2015-09-17 11:36:19 +01:00
lpass-ipq806x.c ASoC: lpass-ipq806x: Staticise local symbols 2015-07-29 15:05:34 +01:00
lpass-lpaif-reg.h ASoC: qcom: move ipq806x specific bits out of lpass driver. 2015-05-21 21:12:30 +01:00
lpass-platform.c ASoC: qcom: use correct device pointer in dma allocation 2016-01-11 15:29:25 +00:00
lpass.h ASoC: qcom: Constify asoc_qcom_lpass_cpu_dai_ops 2015-08-28 17:29:06 +01:00
Makefile ASoC: qcom: add apq8016 sound card support 2015-06-10 18:29:33 +01:00
storm.c ASoC: qcom: storm: remove special casing EPROBE_DEFER 2015-06-09 17:18:58 +01:00