ALSA: AACI: fix multiple IRQ claiming
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 25 Jan 2011 15:52:33 +0000 (15:52 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 25 Jan 2011 21:20:22 +0000 (21:20 +0000)
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>

No differences found