if the crtc has audio is enabled. Otherwise, when the first atomic
modeset happens it will warn when trying to drop the audio power
domain.
v2: move this to get_crtc_power_domains to be consistent with other
power domain setup (Ville)
Signed-off-by: Bob Paauwe <[email protected]>
Cc: Ville Syrjälä <[email protected]>
---
drivers/gpu/drm/i915/intel_display.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_display.c
b/drivers/gpu/drm/i915/intel_display.c
index f29f2f6..96f7a87 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -5264,6 +5264,9 @@ static unsigned long get_crtc_power_domains(struct
drm_crtc *crtc,
if (crtc_state->shared_dpll)
mask |= BIT(POWER_DOMAIN_PLLS);
+ if (crtc_state->has_audio)
+ mask |= BIT(POWER_DOMAIN_AUDIO);
+
return mask;
}
--
2.5.5
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx