aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/davinci/davinci-pcm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/davinci/davinci-pcm.c b/sound/soc/davinci/davinci-pcm.c
index a05996588489..3ee38b62766d 100644
--- a/sound/soc/davinci/davinci-pcm.c
+++ b/sound/soc/davinci/davinci-pcm.c
@@ -143,7 +143,7 @@ static int davinci_pcm_dma_request(struct snd_pcm_substream *substream)
143 prtd->master_lch = ret; 143 prtd->master_lch = ret;
144 144
145 /* Request parameter RAM reload slot */ 145 /* Request parameter RAM reload slot */
146 ret = edma_alloc_slot(EDMA_SLOT_ANY); 146 ret = edma_alloc_slot(EDMA_CTLR(prtd->master_lch), EDMA_SLOT_ANY);
147 if (ret < 0) { 147 if (ret < 0) {
148 edma_free_channel(prtd->master_lch); 148 edma_free_channel(prtd->master_lch);
149 return ret; 149 return ret;
@@ -160,8 +160,8 @@ static int davinci_pcm_dma_request(struct snd_pcm_substream *substream)
160 * so davinci_pcm_enqueue_dma() takes less time in IRQ. 160 * so davinci_pcm_enqueue_dma() takes less time in IRQ.
161 */ 161 */
162 edma_read_slot(prtd->slave_lch, &p_ram); 162 edma_read_slot(prtd->slave_lch, &p_ram);
163 p_ram.opt |= TCINTEN | EDMA_TCC(prtd->master_lch); 163 p_ram.opt |= TCINTEN | EDMA_TCC(EDMA_CHAN_SLOT(prtd->master_lch));
164 p_ram.link_bcntrld = prtd->slave_lch << 5; 164 p_ram.link_bcntrld = EDMA_CHAN_SLOT(prtd->slave_lch) << 5;
165 edma_write_slot(prtd->slave_lch, &p_ram); 165 edma_write_slot(prtd->slave_lch, &p_ram);
166 166
167 return 0; 167 return 0;