linux-stable/sound/isa/gus
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
..
gus_dma.c ALSA: gus - Add missing KERN_* prefix to printk 2009-02-05 15:46:48 +01:00
gus_dram.c [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
gus_instr.c [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
gus_io.c [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
gus_irq.c ALSA: gus - Add missing KERN_* prefix to printk 2009-02-05 15:46:48 +01:00
gus_main.c ALSA: Kill snd_assert() in sound/isa/* 2008-08-13 11:46:36 +02:00
gus_mem.c ALSA: sound/isa/gus: Correct code taking the size of a pointer 2009-12-14 11:16:09 +01:00
gus_mem_proc.c ALSA: info - Implement common llseek for binary mode 2010-04-13 12:01:20 +02:00
gus_mixer.c ALSA: Kill snd_assert() in sound/isa/* 2008-08-13 11:46:36 +02:00
gus_pcm.c ALSA: sound/isa: convert nested spin_lock_irqsave to spin_lock 2009-07-19 14:02:29 +02:00
gus_reset.c [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
gus_tables.h
gus_timer.c [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
gus_uart.c ALSA: gus - Add missing KERN_* prefix to printk 2009-02-05 15:46:48 +01:00
gus_volume.c [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
gusclassic.c ALSA: Convert to snd_card_create() in sound/isa/* 2009-01-12 15:20:26 +01:00
gusextreme.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
gusmax.c sound: Remove unnecessary casts of private_data 2010-09-07 08:05:59 +02:00
interwave-stb.c
interwave.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
Makefile [ALSA] Remove sequencer instrument layer 2008-01-31 17:29:13 +01:00