dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/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
..
Makefile ALSA: oxygen: add Xonar DG support 2011-01-10 16:46:46 +01:00
ak4396.h [ALSA] add TempoTec HiFier driver 2008-01-31 17:30:15 +01:00
cm9780.h [ALSA] oxygen: add more symbols 2008-01-31 17:30:07 +01:00
cs2000.h sound: virtuoso: fix Xonar Essence ST support 2009-09-28 11:53:51 +02:00
cs4245.h ALSA: oxygen: add Xonar DG support 2011-01-10 16:46:46 +01:00
cs4362a.h [ALSA] virtuoso: add Xonar DX support 2008-04-24 12:00:32 +02:00
cs4398.h [ALSA] virtuoso: add Xonar DX support 2008-04-24 12:00:32 +02:00
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
oxygen_io.c ALSA: oxygen: fix SPI clocks slower than 6.25 MHz 2011-01-10 16:46:00 +01:00
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 ALSA: oxygen: simplify model-specific MCLK handling 2011-01-10 16:46:31 +01:00
pcm1796.h [ALSA] virtuoso: move PCM1796 symbols to a header file 2008-04-24 12:00:27 +02:00
virtuoso.c ALSA: Use KBUILD_MODNAME for pci_driver.name entries 2011-06-10 16:20:20 +02:00
wm8766.h sound: virtuoso: add Xonar DS support 2010-01-18 16:38:41 +01:00
wm8776.h sound: virtuoso: add Xonar DS support 2010-01-18 16:38:41 +01:00
wm8785.h [ALSA] oxygen: move WM8785 symbols to a header file 2008-04-24 12:00:27 +02:00
xonar.h ALSA: virtuoso: add HDMI enable switch for HDAV1.3 2010-12-06 14:47:58 +01:00
xonar_cs43xx.c ALSA: Xonar, CS43xx: Don't overrun static array 2011-01-22 17:24:30 +01:00
xonar_dg.c ALSA: oxygen: fix output routing on Xonar DG 2011-01-31 12:00:02 +01:00
xonar_dg.h ALSA: oxygen: add Xonar DG support 2011-01-10 16:46:46 +01:00
xonar_hdmi.c ALSA: virtuoso: add Xonar HDAV1.3 Slim support 2011-01-10 16:46:49 +01:00
xonar_lib.c ALSA: virtuoso: add HDMI enable switch for HDAV1.3 2010-12-06 14:47:58 +01:00
xonar_pcm179x.c ALSA: virtuoso: fix Essence ST(X) S/PDIF input 2011-08-15 13:35:14 +02:00
xonar_wm87x6.c ALSA: core, oxygen, virtuoso: add an enum control info helper 2011-01-10 16:46:53 +01:00