Commit 6a2a9404 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915/tv: Fix return value for intel_tv_compute_config()

Ever since commit 204474a6 ("drm/i915: Pass down rc in
intel_encoder->compute_config()") we're supposed to return an
errno from .compute_config(). I failed to notice that when
pushing the TV encoder fixes which were written before said
commmit. Fix up the return value for the error case.

Cc: Imre Deak <imre.deak@intel.com>
Fixes: 690157f0 ("drm/i915/tv: Fix >1024 modes on gen3")
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190125181931.19482-1-ville.syrjala@linux.intel.comReviewed-by: default avatarImre Deak <imre.deak@intel.com>
parent ad4062da
......@@ -1189,7 +1189,7 @@ intel_tv_compute_config(struct intel_encoder *encoder,
if (extra < 0) {
DRM_DEBUG_KMS("No vertical scaling for >1024 pixel wide modes\n");
return false;
return -EINVAL;
}
/* Need to turn off the vertical filter and center the image */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment