diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2015-05-16 13:32:34 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-21 21:12:39 +0100 |
commit | 6db1c6ba9544e99778e0fdebe2d62c917fe1811c (patch) | |
tree | 05958b19c51dffdc04e0b5be1b05d298a6160daf /sound/soc/qcom/lpass.h | |
parent | 0ae9fd3b2c99099d5a800057b4092fdaa0e973a7 (diff) | |
download | blackbird-op-linux-6db1c6ba9544e99778e0fdebe2d62c917fe1811c.tar.gz blackbird-op-linux-6db1c6ba9544e99778e0fdebe2d62c917fe1811c.zip |
ASoC: qcom: remove hardcoded dma channel
This patch removes hardcoded dma channel value in lpass driver, Now the
dma channel allocation happens in the SOC specific layer. This will
allow different LPASS integrations to use the lpass driver in more
generic way.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by: Kenneth Westfield <kwestfie@codeaurora.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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h index fa00be43e923..caaf17fb0015 100644 --- a/sound/soc/qcom/lpass.h +++ b/sound/soc/qcom/lpass.h @@ -63,6 +63,8 @@ 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 (*free_dma_channel)(struct lpass_data *data, int ch); /* SOC specific dais */ struct snd_soc_dai_driver *dai_driver; |