diff options
author | Dylan Reid <dgreid@chromium.org> | 2014-04-08 15:06:18 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-04-09 03:33:03 -0400 |
commit | 7b0a48f3402a43bd8bb85bfda4f72e0a34634d74 (patch) | |
tree | 034c0baa1ba1adbffeafcec9b02b003a2f01dae9 /sound | |
parent | 4f8e940095536bc002a81666a4107a581c84e9b9 (diff) |
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c index 3e005e509131..8197afc6cba5 100644 --- a/sound/pci/hda/hda_controller.c +++ b/sound/pci/hda/hda_controller.c | |||
@@ -1759,7 +1759,7 @@ irqreturn_t azx_interrupt(int irq, void *dev_id) | |||
1759 | 1759 | ||
1760 | #ifdef CONFIG_PM_RUNTIME | 1760 | #ifdef CONFIG_PM_RUNTIME |
1761 | if (chip->driver_caps & AZX_DCAPS_PM_RUNTIME) | 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 | return IRQ_NONE; | 1763 | return IRQ_NONE; |
1764 | #endif | 1764 | #endif |
1765 | 1765 | ||