Commit 7b0a48f3402a43bd8bb85bfda4f72e0a34634d74

Authored by Dylan Reid
Committed by Takashi Iwai
1 parent 4f8e940095

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: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

sound/pci/hda/hda_controller.c
... ... @@ -1759,7 +1759,7 @@
1759 1759  
1760 1760 #ifdef CONFIG_PM_RUNTIME
1761 1761 if (chip->driver_caps & AZX_DCAPS_PM_RUNTIME)
1762   - if (chip->card->dev->power.runtime_status != RPM_ACTIVE)
  1762 + if (!pm_runtime_active(chip->card->dev))
1763 1763 return IRQ_NONE;
1764 1764 #endif
1765 1765