ASoC: qcom: rename rdma_ch_bit_map to dma_ch_bit_map
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 11 Feb 2016 12:17:51 +0000 (12:17 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 19 Feb 2016 16:20:18 +0000 (01:20 +0900)
rdma_ch_bit_map can be reused for wrdma channel allocations as wrdma
channel numbering start after rdma channel numbers.
With capture support referring rdma_ch_bit_map for wrdma channel allocation
is confusing, so renaming rdma_ch_bit_map to dma_ch_bit_map makes sense.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Kenneth Westfield <kwestfie@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/lpass-apq8016.c
sound/soc/qcom/lpass.h

index 99061f42953e76e430a0e473a59cdee75aa26553..ca3bbd58c81a11723a8d14a3634b636ae8772ecf 100644 (file)
@@ -137,20 +137,20 @@ static int apq8016_lpass_alloc_dma_channel(struct lpass_data *drvdata,
                                           int direction)
 {
        struct lpass_variant *v = drvdata->variant;
-       int chan = find_first_zero_bit(&drvdata->rdma_ch_bit_map,
+       int chan = find_first_zero_bit(&drvdata->dma_ch_bit_map,
                                        v->rdma_channels);
 
        if (chan >= v->rdma_channels)
                return -EBUSY;
 
-       set_bit(chan, &drvdata->rdma_ch_bit_map);
+       set_bit(chan, &drvdata->dma_ch_bit_map);
 
        return chan;
 }
 
 static int apq8016_lpass_free_dma_channel(struct lpass_data *drvdata, int chan)
 {
-       clear_bit(chan, &drvdata->rdma_ch_bit_map);
+       clear_bit(chan, &drvdata->dma_ch_bit_map);
 
        return 0;
 }
index 8475b609f8ce0db12d8fa24ce12a819f56c2149b..30714ad1e138d405a89643351c4ff30e5b5e2c1f 100644 (file)
@@ -50,7 +50,7 @@ struct lpass_data {
        struct lpass_variant *variant;
 
        /* bit map to keep track of static channel allocations */
-       unsigned long rdma_ch_bit_map;
+       unsigned long dma_ch_bit_map;
 
        /* used it for handling interrupt per dma channel */
        struct snd_pcm_substream *substream[LPASS_MAX_DMA_CHANNELS];