|
@@ -779,11 +779,11 @@ static struct intel_encoder *get_saved_enc(struct drm_i915_private *dev_priv,
|
|
{
|
|
{
|
|
struct intel_encoder *encoder;
|
|
struct intel_encoder *encoder;
|
|
|
|
|
|
- if (WARN_ON(pipe >= ARRAY_SIZE(dev_priv->av_enc_map)))
|
|
|
|
- return NULL;
|
|
|
|
-
|
|
|
|
/* MST */
|
|
/* MST */
|
|
if (pipe >= 0) {
|
|
if (pipe >= 0) {
|
|
|
|
+ if (WARN_ON(pipe >= ARRAY_SIZE(dev_priv->av_enc_map)))
|
|
|
|
+ return NULL;
|
|
|
|
+
|
|
encoder = dev_priv->av_enc_map[pipe];
|
|
encoder = dev_priv->av_enc_map[pipe];
|
|
/*
|
|
/*
|
|
* when bootup, audio driver may not know it is
|
|
* when bootup, audio driver may not know it is
|