kernel-fxtec-pro1x/sound/pci/au88x0
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
..
au88x0.c ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
au88x0.h Fix common misspellings 2011-03-31 11:26:23 -03:00
au88x0_a3d.c Fix common misspellings 2011-03-31 11:26:23 -03:00
au88x0_a3d.h
au88x0_a3ddata.c
au88x0_core.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2011-03-18 10:37:40 -07:00
au88x0_eq.c ALSA - au88x0 - add Playback Volume to 10 bands Equalizer Controls 2011-02-20 10:05:29 +01:00
au88x0_eq.h
au88x0_eqdata.c
au88x0_game.c
au88x0_mixer.c sound: fixed typos 2010-10-17 10:08:27 +02:00
au88x0_mpu401.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
au88x0_pcm.c Merge branch 'topic/misc' into for-linus 2011-05-22 10:01:29 +02:00
au88x0_synth.c ALSA: Fix missing KERN_* prefix to printk in sound/pci 2009-02-05 16:11:31 +01:00
au88x0_wt.h
au88x0_xtalk.c
au88x0_xtalk.h
au8810.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
au8810.h ALSA: au88x0 - Use a better name for pcm devices of au88x0 2011-04-26 12:27:21 +02:00
au8820.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
au8820.h ALSA: au88x0 - Use a better name for pcm devices of au88x0 2011-04-26 12:27:21 +02:00
au8830.c sound: use DEFINE_PCI_DEVICE_TABLE 2010-02-09 11:08:33 +01:00
au8830.h ALSA: au88x0 - Use a better name for pcm devices of au88x0 2011-04-26 12:27:21 +02:00
Makefile