aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-11-22 15:21:20 -0500
committerTakashi Iwai <tiwai@suse.de>2012-11-22 15:21:20 -0500
commit2efa1d59fe5af81456393472121623c9502548ce (patch)
tree4959c9795f7f45e43259aaab89bd2eb89ac16967
parent8232932d32c12e35d0dc9311221ea1945f4efc8e (diff)
ALSA: emu10k1: Add missing ifdef for emu->suspend reference
It's defined only for PM. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/emu10k1/emu10k1_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c
index cfd6cf952d44..527ef216d4ca 100644
--- a/sound/pci/emu10k1/emu10k1_main.c
+++ b/sound/pci/emu10k1/emu10k1_main.c
@@ -714,8 +714,10 @@ static int emu1010_firmware_thread(void *data)
714 msleep_interruptible(1000); 714 msleep_interruptible(1000);
715 if (kthread_should_stop()) 715 if (kthread_should_stop())
716 break; 716 break;
717#ifdef CONFIG_PM_SLEEP
717 if (emu->suspend) 718 if (emu->suspend)
718 continue; 719 continue;
720#endif
719 snd_emu1010_fpga_read(emu, EMU_HANA_IRQ_STATUS, &tmp); /* IRQ Status */ 721 snd_emu1010_fpga_read(emu, EMU_HANA_IRQ_STATUS, &tmp); /* IRQ Status */
720 snd_emu1010_fpga_read(emu, EMU_HANA_OPTION_CARDS, &reg); /* OPTIONS: Which cards are attached to the EMU */ 722 snd_emu1010_fpga_read(emu, EMU_HANA_OPTION_CARDS, &reg); /* OPTIONS: Which cards are attached to the EMU */
721 if (reg & EMU_HANA_OPTION_DOCK_OFFLINE) { 723 if (reg & EMU_HANA_OPTION_DOCK_OFFLINE) {