Skip to contentSkip to conversation

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

PATCH Applied Dylan Reid 2 participants 2 messages Apr 8, 2014 – Apr 9, 2014 Sound

lore
Share & tools
lore

Dylan Reid

author
#0 lore raw

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

Quoted 1 line

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.

---
 sound/pci/hda/hda_controller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/hda/hda_controller.c +1 -1
index 97993e1..460fcf4 100644
@@ -1758,7 +1758,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
 
Signature · 1 line
1.8.1.3.605.g02339dd
Applied
#1 lore raw

At Tue, 8 Apr 2014 12:06:18 -0700,

Quoted 6 lines · Dylan Reid
Quoted 2 lines

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.

Thanks, applied.

Takashi

Quoted 20 lines
---
 sound/pci/hda/hda_controller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/hda/hda_controller.c +1 -1
index 97993e1..460fcf4 100644
@@ -1758,7 +1758,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
 
Signature · 1 line
1.8.1.3.605.g02339dd