WSL2-Linux-Kernel/sound/pci/ice1712
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: ice1724 - Infrasonic Quartet support 2009-09-21 15:49:04 +02:00
ak4xxx.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
amp.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
amp.h [ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-16 16:51:18 +02:00
aureon.c Fix common misspellings 2011-03-31 11:26:23 -03:00
aureon.h [ALSA] Fix conflicts between const and __devinitdata 2007-05-11 16:55:49 +02:00
delta.c ALSA: ice1712 delta - initialize SPI clock 2011-01-18 15:25:16 +01:00
delta.h ALSA: ice1712 - working M-Audio Delta 66E support 2010-12-09 08:40:01 +01:00
envy24ht.h [ALSA] ice1724: fix MIDI 2008-05-20 14:22:44 +02:00
ews.c ALSA: Kill snd_assert() in sound/pci/* 2008-08-13 11:46:38 +02:00
ews.h [ALSA] ice1712 - Add Terrasoniq TS88 support 2008-04-24 12:00:40 +02:00
hoontech.c [ALSA] ice1712 - Fix hoontech MIDI input 2008-04-24 12:00:07 +02:00
hoontech.h [ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-16 16:51:18 +02:00
ice1712.c ALSA: mpu401: clean up interrupt specification 2011-09-14 11:00:51 +02:00
ice1712.h Merge branch 'topic/hda' into for-linus 2009-12-04 16:22:45 +01:00
ice1724.c ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* 2011-06-10 16:36:37 +02:00
juli.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2009-12-09 19:43:33 -08:00
juli.h [ALSA] Fix conflicts between const and __devinitdata 2007-05-11 16:55:49 +02:00
maya44.c ALSA: ice1724 - Fix ESI Maya44 capture source control 2010-05-12 16:43:32 +02:00
maya44.h ALSA: ice1724 - Add ESI Maya44 support 2009-05-06 17:33:19 +02:00
phase.c ALSA: ice1712/ice1724: Coding style fixes part 1 (more coming up) 2008-09-09 09:11:44 +02:00
phase.h ALSA: ice1712/ice1724: Coding style fixes part 1 (more coming up) 2008-09-09 09:11:44 +02:00
pontis.c Fix common misspellings 2011-03-31 11:26:23 -03:00
pontis.h [ALSA] Fix conflicts between const and __devinitdata 2007-05-11 16:55:49 +02:00
prodigy192.c sound: Remove unnecessary casts of private_data 2010-09-07 08:05:59 +02:00
prodigy192.h [ALSA] ice1724 - Functioning support for Prodigy 192 2007-05-11 16:55:58 +02:00
prodigy_hifi.c Fix common misspellings 2011-03-31 11:26:23 -03:00
prodigy_hifi.h [ALSA] ice1724 - Add missing prodigy_hifi.h 2008-01-31 17:30:03 +01:00
quartet.c ALSA: ice1724 - Infrasonic Quartet support 2009-09-21 15:49:04 +02:00
quartet.h ALSA: ice1724 - Infrasonic Quartet support 2009-09-21 15:49:04 +02:00
revo.c ALSA: ice1712/ice1724: Coding style fixes part 1 (more coming up) 2008-09-09 09:11:44 +02:00
revo.h [ALSA] Fix conflicts between const and __devinitdata 2007-05-11 16:55:49 +02:00
se.c [ALSA] ice1712, ice1724 - Code clean up 2008-01-31 17:30:05 +01:00
se.h [ALSA] ice1724 - Add support of Onkyo SE-90PCI and SE-200PCI 2008-01-31 17:29:09 +01:00
stac946x.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vt1720_mobo.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
vt1720_mobo.h [ALSA] Fix conflicts between const and __devinitdata 2007-05-11 16:55:49 +02:00
wtm.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
wtm.h ALSA: ice1712/wtm: fix coding style 2008-09-09 09:11:39 +02:00