Archived
14
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/sound/isa
Clemens Ladisch dba8b46992 ALSA: mpu401: clean up interrupt specification
The semantics of snd_mpu401_uart_new()'s interrupt parameters are
somewhat counterintuitive:  To prevent the function from allocating its
own interrupt, either the irq number must be invalid, or the irq_flags
parameter must be zero.  At the same time, the irq parameter being
invalid specifies that the mpu401 code has to work without an interrupt
allocated by the caller.  This implies that, if there is an interrupt
and it is allocated by the caller, the irq parameter must be set to
a valid-looking number which then isn't actually used.

With the removal of IRQF_DISABLED, zero becomes a valid irq_flags value,
which forces us to handle the parameters differently.

This patch introduces a new flag MPU401_INFO_IRQ_HOOK for when the
device interrupt is handled by the caller, and makes the allocation of
the interrupt to depend only on the irq parameter.  As suggested by
Takashi, the irq_flags parameter was dropped because, when used, it had
the constant value IRQF_DISABLED.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2011-09-14 11:00:51 +02:00
..
ad1816a ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
ad1848 ALSA: Convert to snd_card_create() in sound/isa/* 2009-01-12 15:20:26 +01:00
cs423x ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
es1688 ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
galaxy ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
gus ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
msnd ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
opti9xx ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
sb ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
wavefront ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
wss Fix common misspellings 2011-03-31 11:26:23 -03:00
adlib.c ALSA: Convert to snd_card_create() in sound/isa/* 2009-01-12 15:20:26 +01:00
als100.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
azt2320.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
cmi8330.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
es18xx.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
Kconfig ALSA: ISA: Remove snd-sgalaxy 2010-08-13 13:02:20 +02:00
Makefile ALSA: ISA: Remove snd-sgalaxy 2010-08-13 13:02:20 +02:00
opl3sa2.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
sc6000.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
sscape.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00