public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915: Check num_pipes before initializing audio component
@ 2016-12-16  6:30 Wang Elaine
  2016-12-16  6:30 ` [PATCH 2/2] drm/i915: Check num_pipes before initializing or calling display hooks Wang Elaine
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Wang Elaine @ 2016-12-16  6:30 UTC (permalink / raw)
  To: intel-gfx, elaine.wang

From: Elaine Wang <elaine.wang@intel.com>

when num_pipes is zero, it indicates there is no display and HDMI
audio doesn't exist.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
---
 drivers/gpu/drm/i915/i915_drv.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 6428588..c94e26d 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -1132,7 +1132,8 @@ static void i915_driver_register(struct drm_i915_private *dev_priv)
 	if (IS_GEN5(dev_priv))
 		intel_gpu_ips_init(dev_priv);
 
-	i915_audio_component_init(dev_priv);
+	if (INTEL_INFO(dev_priv)->num_pipes)
+		i915_audio_component_init(dev_priv);
 
 	/*
 	 * Some ports require correctly set-up hpd registers for detection to
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-12-19  9:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-16  6:30 [PATCH 1/2] drm/i915: Check num_pipes before initializing audio component Wang Elaine
2016-12-16  6:30 ` [PATCH 2/2] drm/i915: Check num_pipes before initializing or calling display hooks Wang Elaine
2016-12-16  7:15 ` ✗ Fi.CI.BAT: warning for series starting with [1/2] drm/i915: Check num_pipes before initializing audio component Patchwork
2016-12-19  9:16   ` Wang, Elaine
2016-12-19  9:26 ` [PATCH 1/2] " Jani Nikula
2016-12-19  9:48   ` Wang, Elaine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox