Commit 7b0a48f3 authored by Dylan Reid's avatar Dylan Reid Committed by Takashi Iwai

ALSA: hda - Use runtime helper to check active state.

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: default avatarDylan Reid <dgreid@chromium.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 4f8e9400
...@@ -1759,7 +1759,7 @@ irqreturn_t azx_interrupt(int irq, void *dev_id) ...@@ -1759,7 +1759,7 @@ irqreturn_t azx_interrupt(int irq, void *dev_id)
#ifdef CONFIG_PM_RUNTIME #ifdef CONFIG_PM_RUNTIME
if (chip->driver_caps & AZX_DCAPS_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; return IRQ_NONE;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment