acrn-kernel/sound/pci
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
..
ac97 ALSA: ac97: Add HP Compaq dc5100 SFF(PT003AW) to Headphone Jack Sense whitelist 2011-08-15 10:26:37 +02:00
ali5451 ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
asihpi ALSA: asihpi - use kzalloc() 2011-08-07 17:32:52 +02:00
au88x0 ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
aw2 ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
ca0106 ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
cs46xx ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
cs5535audio Merge branch 'topic/misc' into for-linus 2011-07-22 08:43:24 +02:00
ctxfi ALSA: ctxfi: Bump playback substreams to 256 2011-08-24 10:39:44 +02:00
echoaudio atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
emu10k1 Merge branch 'test/pci-rename' into topic/misc 2011-06-14 08:56:42 +02:00
hda ALSA: hda - Add "PCM" volume to vmaster slave list 2011-08-18 15:13:17 +02:00
ice1712 ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
korg1212 ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
lola ALSA: lola - Fix for Lola280 board 2011-06-24 12:54:43 +02:00
lx6464es atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
mixart ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
nm256 ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
oxygen ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
pcxhr ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
riptide ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
rme9652 ALSA: hdspm - Simplify with snd_pcm_hw_constraint_pow2() 2011-08-15 13:37:03 +02:00
trident ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
vx222 ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
ymfpci ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
Kconfig ALSA: Fix dependency of CONFIG_SND_TEA575X 2011-08-07 17:54:17 +02:00
Makefile
ad1889.c ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
ad1889.h
ak4531_codec.c
als300.c ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
als4000.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
atiixp.c ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
atiixp_modem.c ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
azt3328.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
azt3328.h
bt87x.c ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
cmipci.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
cs4281.c ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
cs5530.c ALSA: Use KBUILD_MODNAME for pci_driver.name entries 2011-06-10 16:20:20 +02:00
ens1370.c ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
ens1371.c
es1938.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
es1968.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
fm801.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
intel8x0.c ALSA: intel8x0: Apply headphones+mute LED quirk for Dell Inspiron 9300 2011-07-15 07:54:26 +02:00
intel8x0m.c ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
maestro3.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
rme32.c ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
rme96.c ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
sis7019.c ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
sis7019.h
sonicvibes.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
via82xx.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
via82xx_modem.c ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00