ALSA: hda - Introduce azx_has_pm_runtime() macro
[deliverable/linux.git] / sound / pci / hda / hda_priv.h
index daf458299753fae6f2ca59571d34508763522d1d..a7b4a25c571caf15ab640cf4aca5af66de0b6a0e 100644 (file)
@@ -403,4 +403,7 @@ struct azx {
 #define azx_sd_readb(chip, dev, reg) \
        ((chip)->ops->reg_readb((dev)->sd_addr + AZX_REG_##reg))
 
+#define azx_has_pm_runtime(chip) \
+       (!AZX_DCAPS_PM_RUNTIME || ((chip)->driver_caps & AZX_DCAPS_PM_RUNTIME))
+
 #endif /* __SOUND_HDA_PRIV_H */
This page took 0.023345 seconds and 5 git commands to generate.