summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorDylan Reid2014-04-08 21:06:18 +0200
committerTakashi Iwai2014-04-09 09:33:03 +0200
commit7b0a48f3402a43bd8bb85bfda4f72e0a34634d74 (patch)
tree034c0baa1ba1adbffeafcec9b02b003a2f01dae9 /sound
parentALSA: ice1712: Fix boundary checks in PCM pointer ops (diff)
downloadkernel-qcow2-linux-7b0a48f3402a43bd8bb85bfda4f72e0a34634d74.tar.gz
kernel-qcow2-linux-7b0a48f3402a43bd8bb85bfda4f72e0a34634d74.tar.xz
kernel-qcow2-linux-7b0a48f3402a43bd8bb85bfda4f72e0a34634d74.zip
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.c2
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)
#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