File hda-callback-workaround.diff of Package drm

---
 drivers/gpu/drm/i915/intel_audio.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/drivers/gpu/drm/i915/intel_audio.c
+++ b/drivers/gpu/drm/i915/intel_audio.c
@@ -656,6 +656,10 @@ static int i915_audio_component_sync_aud
 	    !IS_HASWELL(dev_priv))
 		return 0;
 
+	/* a workaround for buggy call from HD-audio side */
+	if (port < 0 || port >= I915_MAX_PORTS)
+		return 0;
+
 	mutex_lock(&dev_priv->av_mutex);
 	/* 1. get the pipe */
 	intel_encoder = dev_priv->dig_port_map[port];