1
linux/sound/isa/sb
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
..
emu8000_callback.c
emu8000_local.h [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
emu8000_patch.c ALSA: Kill snd_assert() in sound/isa/* 2008-08-13 11:46:36 +02:00
emu8000_pcm.c ALSA: sb: check get_user() return value 2010-07-29 12:24:22 +02:00
emu8000_synth.c [ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-16 16:51:18 +02:00
emu8000.c Fix common misspellings 2011-03-31 11:26:23 -03:00
jazz16.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
Makefile ALSA: Merge es1688 and es968 drivers 2010-05-10 09:49:30 +02:00
sb8_main.c ALSA: jazz16: refine dma and irq selection 2009-12-25 14:15:41 +01:00
sb8_midi.c [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
sb8.c sound: Remove unnecessary casts of private_data 2010-09-07 08:05:59 +02:00
sb16_csp.c ALSA: sound/isa: use memdup_user() 2009-04-14 12:39:23 +02:00
sb16_main.c ALSA: Kill snd_assert() in sound/isa/* 2008-08-13 11:46:36 +02:00
sb16.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
sb_common.c ALSA: jazz16: Add support for Media Vision Jazz16 chipset 2009-12-21 12:09:22 +01:00
sb_mixer.c ALSA: jazz16: Add support for Media Vision Jazz16 chipset 2009-12-21 12:09:22 +01:00
sbawe.c