linux/sound/pci/oxygen
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
..
ak4396.h
cm9780.h
cs2000.h
cs4245.h
cs4362a.h
cs4398.h
Makefile
oxygen_io.c
oxygen_lib.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
oxygen_mixer.c ALSA: oxygen: fix output routing on Xonar DG 2011-01-31 12:00:02 +01:00
oxygen_pcm.c ALSA: firewire-speakers, oxygen, ua101: allow > 10 s periods 2011-06-17 11:36:30 +02:00
oxygen_regs.h
oxygen.c ALSA: Use KBUILD_MODNAME for pci_driver.name entries 2011-06-10 16:20:20 +02:00
oxygen.h ALSA: oxygen: fix output routing on Xonar DG 2011-01-31 12:00:02 +01:00
pcm1796.h
virtuoso.c ALSA: Use KBUILD_MODNAME for pci_driver.name entries 2011-06-10 16:20:20 +02:00
wm8766.h
wm8776.h
wm8785.h
xonar_cs43xx.c
xonar_dg.c ALSA: oxygen: fix output routing on Xonar DG 2011-01-31 12:00:02 +01:00
xonar_dg.h
xonar_hdmi.c
xonar_lib.c
xonar_pcm179x.c ALSA: virtuoso: fix Essence ST(X) S/PDIF input 2011-08-15 13:35:14 +02:00
xonar_wm87x6.c
xonar.h