summaryrefslogtreecommitdiffstats
path: root/sound/soc/qcom/lpass.h
diff options
context:
space:
mode:
authorSrinivas Kandagatla2016-02-11 13:17:37 +0100
committerMark Brown2016-02-19 17:20:18 +0100
commit73c847b6d3670e4521cd3f603102332614d0b640 (patch)
tree081295a4c838e370baf3e765dfbef01953b0c8ce /sound/soc/qcom/lpass.h
parentASoC: qcom: rename rdmactl_audif_start to dmactrl_audif_start (diff)
downloadkernel-qcow2-linux-73c847b6d3670e4521cd3f603102332614d0b640.tar.gz
kernel-qcow2-linux-73c847b6d3670e4521cd3f603102332614d0b640.tar.xz
kernel-qcow2-linux-73c847b6d3670e4521cd3f603102332614d0b640.zip
ASoC: qcom: pass direction to dma allocation
This patch updates the internal dma allocation callbacks to take the stream direction so that it can allocate channels suitable for that stream direction. Before the capture support this was not necessary. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Acked-by: Kenneth Westfield <kwestfie@codeaurora.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom/lpass.h')
-rw-r--r--sound/soc/qcom/lpass.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h
index 412399acfe3d..8475b609f8ce 100644
--- a/sound/soc/qcom/lpass.h
+++ b/sound/soc/qcom/lpass.h
@@ -84,7 +84,7 @@ struct lpass_variant {
/* SOC specific intialization like clocks */
int (*init)(struct platform_device *pdev);
int (*exit)(struct platform_device *pdev);
- int (*alloc_dma_channel)(struct lpass_data *data);
+ int (*alloc_dma_channel)(struct lpass_data *data, int direction);
int (*free_dma_channel)(struct lpass_data *data, int ch);
/* SOC specific dais */