aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/qcom/lpass.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/qcom/lpass.h')
-rw-r--r--sound/soc/qcom/lpass.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h
index 0b63e2e5bcc9..30714ad1e138 100644
--- a/sound/soc/qcom/lpass.h
+++ b/sound/soc/qcom/lpass.h
@@ -50,7 +50,7 @@ struct lpass_data {
50 struct lpass_variant *variant; 50 struct lpass_variant *variant;
51 51
52 /* bit map to keep track of static channel allocations */ 52 /* bit map to keep track of static channel allocations */
53 unsigned long rdma_ch_bit_map; 53 unsigned long dma_ch_bit_map;
54 54
55 /* used it for handling interrupt per dma channel */ 55 /* used it for handling interrupt per dma channel */
56 struct snd_pcm_substream *substream[LPASS_MAX_DMA_CHANNELS]; 56 struct snd_pcm_substream *substream[LPASS_MAX_DMA_CHANNELS];
@@ -71,16 +71,20 @@ struct lpass_variant {
71 u32 rdma_reg_base; 71 u32 rdma_reg_base;
72 u32 rdma_reg_stride; 72 u32 rdma_reg_stride;
73 u32 rdma_channels; 73 u32 rdma_channels;
74 u32 wrdma_reg_base;
75 u32 wrdma_reg_stride;
76 u32 wrdma_channels;
74 77
75 /** 78 /**
76 * on SOCs like APQ8016 the channel control bits start 79 * on SOCs like APQ8016 the channel control bits start
77 * at different offset to ipq806x 80 * at different offset to ipq806x
78 **/ 81 **/
79 u32 rdmactl_audif_start; 82 u32 dmactl_audif_start;
83 u32 wrdma_channel_start;
80 /* SOC specific intialization like clocks */ 84 /* SOC specific intialization like clocks */
81 int (*init)(struct platform_device *pdev); 85 int (*init)(struct platform_device *pdev);
82 int (*exit)(struct platform_device *pdev); 86 int (*exit)(struct platform_device *pdev);
83 int (*alloc_dma_channel)(struct lpass_data *data); 87 int (*alloc_dma_channel)(struct lpass_data *data, int direction);
84 int (*free_dma_channel)(struct lpass_data *data, int ch); 88 int (*free_dma_channel)(struct lpass_data *data, int ch);
85 89
86 /* SOC specific dais */ 90 /* SOC specific dais */