ALSA: fm801: Initialize chip after IRQ handler is registered
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sun, 16 Jul 2017 18:40:03 +0000 (21:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Aug 2017 01:59:39 +0000 (18:59 -0700)
commit3d955095c597a6deac43ab2f388da12d11af7aee
treeae9508d74939fb5be1c1cddc148cd3af305fecdc
parent3a79e1c8e709db0174dbafc5dcd9785e4bf36250
ALSA: fm801: Initialize chip after IRQ handler is registered

commit 610e1ae9b533be82b3aa118b907e0a703256913d upstream.

The commit b56fa687e02b ("ALSA: fm801: detect FM-only card earlier")
rearranged initialization calls, i.e. it makes snd_fm801_chip_init() to
be called before we register interrupt handler and set PCI bus
mastering.

Somehow it prevents FM801-AU to work properly. Thus, partially revert
initialization order changed by commit mentioned above.

Fixes: b56fa687e02b ("ALSA: fm801: detect FM-only card earlier")
Reported-by: Émeric MASCHINO <emeric.maschino@gmail.com>
Tested-by: Émeric MASCHINO <emeric.maschino@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/fm801.c