linux/sound/isa/msnd
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
..
Makefile ALSA: Turtle Beach Multisound Classic/Pinnacle driver 2009-01-28 07:47:36 +01:00
msnd.c ALSA: Add missing SNDRV_PCM_INFO_BATCH flag to some drivers 2009-04-28 15:06:44 +02:00
msnd.h snd_msnd ->mode is fmode_t, not mode_t 2011-07-26 12:59:29 -04:00
msnd_classic.c ALSA: Turtle Beach Multisound Classic/Pinnacle driver 2009-01-28 07:47:36 +01:00
msnd_classic.h ALSA: Turtle Beach Multisound Classic/Pinnacle driver 2009-01-28 07:47:36 +01:00
msnd_midi.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
msnd_pinnacle.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
msnd_pinnacle.h ALSA: Turtle Beach Multisound Classic/Pinnacle driver 2009-01-28 07:47:36 +01:00
msnd_pinnacle_mixer.c ALSA: Turtle Beach Multisound Classic/Pinnacle driver 2009-01-28 07:47:36 +01:00