aboutsummaryrefslogtreecommitdiffstats
path: root/sound/arm/aaci.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-01-25 10:52:33 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-01-25 16:20:22 -0500
commitb60fb519d7977e606621af85585c3677fc290ef8 (patch)
treec585e8f2e08717547a7d570ef84fbf2e8a6b874e /sound/arm/aaci.h
parent250c7a61c35a258e2422b3d55c61bfbad33326be (diff)
ALSA: AACI: fix multiple IRQ claiming
Claiming the IRQ each time a playback or capture interface is opened is wasteful; the second copy of the registered handler is identical to the first and just wastes resources. Track the number of opens and only register the handler when necessary. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'sound/arm/aaci.h')
-rw-r--r--sound/arm/aaci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/arm/aaci.h b/sound/arm/aaci.h
index 6a4a2eebdda1..04c4568413f4 100644
--- a/sound/arm/aaci.h
+++ b/sound/arm/aaci.h
@@ -226,6 +226,8 @@ struct aaci {
226 struct snd_card *card; 226 struct snd_card *card;
227 void __iomem *base; 227 void __iomem *base;
228 unsigned int fifosize; 228 unsigned int fifosize;
229 unsigned int users;
230 struct mutex irq_lock;
229 231
230 /* AC'97 */ 232 /* AC'97 */
231 struct mutex ac97_sem; 233 struct mutex ac97_sem;