aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/qcom
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2015-05-21 22:53:21 +0100
committerMark Brown <broonie@kernel.org>2015-05-22 13:27:07 +0100
commit89cdfa06d9fdaa97e8c6c688383e4f38310d1e92 (patch)
tree3b8a8680172f302d01d9246723d2a372fe763e9b /sound/soc/qcom
parentASoC: qcom: Add ability to handle interrupts per dma channel (diff)
downloadlinux-dev-89cdfa06d9fdaa97e8c6c688383e4f38310d1e92.tar.xz
linux-dev-89cdfa06d9fdaa97e8c6c688383e4f38310d1e92.zip
ASoC: qcom: add bit map to track static dma channel allocations
This patch adds dma channel bit mask to lpass data to keep track of dma channel allocations. This flag would be used in apq8016 lpass driver. Tested-by: Kenneth Westfield <kwestfie@codeaurora.org> Acked-by: Kenneth Westfield <kwestfie@codeaurora.org> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom')
-rw-r--r--sound/soc/qcom/lpass.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h
index d572e7b8d590..deecae9f64f9 100644
--- a/sound/soc/qcom/lpass.h
+++ b/sound/soc/qcom/lpass.h
@@ -49,6 +49,9 @@ struct lpass_data {
/* SOC specific variations in the LPASS IP integration */
struct lpass_variant *variant;
+ /* bit map to keep track of static channel allocations */
+ unsigned long rdma_ch_bit_map;
+
/* used it for handling interrupt per dma channel */
struct snd_pcm_substream *substream[LPASS_MAX_DMA_CHANNELS];
};