1
linux/sound/drivers
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
..
mpu401 ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
opl3 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
opl4 ALSA: opl4 - Fix a wrong argument in proc write callback 2010-05-10 10:21:32 +02:00
pcsp i8253: Make pcsp sound driver use the shared i8253_lock 2011-06-09 15:01:39 +02:00
vx Fix common misspellings 2011-03-31 11:26:23 -03:00
aloop.c ALSA: aloop - Fix possible IRQ lock inversion 2011-03-18 07:31:53 +01:00
dummy.c ALSA: dummy driver - add model parameter 2010-02-02 17:50:57 +01:00
Kconfig Merge branch 'topic/aloop' into topic/misc 2010-08-18 15:17:42 +02:00
Makefile ALSA: introduce the snd-aloop module for the PCM loopback 2010-08-09 14:21:11 +02:00
ml403-ac97cr.c ALSA: ml403-ac97cr: Use vsprintf extension %pR for struct resource 2010-12-14 10:45:15 +01:00
mtpav.c ALSA: use linux/io.h to fix compile warnings 2011-02-02 17:49:53 +01:00
mts64.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
pcm-indirect2.c Fix common misspellings 2011-03-31 11:26:23 -03:00
pcm-indirect2.h
portman2x4.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
serial-u16550.c sound: serial-u16550: fix buffer overflow 2009-05-05 16:01:18 +02:00
virmidi.c sound: Remove unnecessary casts of private_data 2010-09-07 08:05:59 +02:00