ALSA: hda - Use runtime helper to check active state.
authorDylan Reid <dgreid@chromium.org>
Tue, 8 Apr 2014 19:06:18 +0000 (12:06 -0700)
committerTakashi Iwai <tiwai@suse.de>
Wed, 9 Apr 2014 07:33:03 +0000 (09:33 +0200)
From azx_interrupt, use the helper to check if the device is active
instead of checking the state.  This will do the right thing if
runtime pm is disabled in addition to if the device is suspended.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_controller.c

index 3e005e509131021ae1730737475f39927433f420..8197afc6cba50fec85a767eb09306edb304a571b 100644 (file)
@@ -1759,7 +1759,7 @@ irqreturn_t azx_interrupt(int irq, void *dev_id)
 
 #ifdef CONFIG_PM_RUNTIME
        if (chip->driver_caps & AZX_DCAPS_PM_RUNTIME)
-               if (chip->card->dev->power.runtime_status != RPM_ACTIVE)
+               if (!pm_runtime_active(chip->card->dev))
                        return IRQ_NONE;
 #endif