aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/arm/aaci.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c
index 53675cf4de44..b85df793cdce 100644
--- a/sound/arm/aaci.c
+++ b/sound/arm/aaci.c
@@ -164,10 +164,11 @@ static inline void aaci_chan_wait_ready(struct aaci_runtime *aacirun)
164/* 164/*
165 * Interrupt support. 165 * Interrupt support.
166 */ 166 */
167static void aaci_fifo_irq(struct aaci *aaci, u32 mask) 167static void aaci_fifo_irq(struct aaci *aaci, int channel, u32 mask)
168{ 168{
169 if (mask & ISR_URINTR) { 169 if (mask & ISR_URINTR) {
170 writel(ICLR_TXUEC1, aaci->base + AACI_INTCLR); 170 dev_dbg(&aaci->dev->dev, "TX underrun on chan %d\n", channel);
171 writel(ICLR_TXUEC1 << channel, aaci->base + AACI_INTCLR);
171 } 172 }
172 173
173 if (mask & ISR_TXINTR) { 174 if (mask & ISR_TXINTR) {
@@ -233,7 +234,7 @@ static irqreturn_t aaci_irq(int irq, void *devid)
233 u32 m = mask; 234 u32 m = mask;
234 for (i = 0; i < 4; i++, m >>= 7) { 235 for (i = 0; i < 4; i++, m >>= 7) {
235 if (m & 0x7f) { 236 if (m & 0x7f) {
236 aaci_fifo_irq(aaci, m); 237 aaci_fifo_irq(aaci, i, m);
237 } 238 }
238 } 239 }
239 } 240 }