OSDN Git Service

drm/i915/sdvo: Fix multi function encoder stuff
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 17 Sep 2018 15:15:03 +0000 (18:15 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 18 Sep 2018 18:05:06 +0000 (21:05 +0300)
commitaa2b88074a569ac6c626c36f31b566158a4939ff
treea13228c7c01bea30824a92a98b78a04a8cbc7e5e
parent1ee516ffa73107f96c1355cce5880b6c38d22d51
drm/i915/sdvo: Fix multi function encoder stuff

SDVO encoders can have multiple different types of outputs hanging off
them. Currently the code tries to muck around with various is_foo
flags in the encoder to figure out which type its driving. That doesn't
work with atomic and other stuff, so let's nuke those flags and just
look at which type of connector we're actually dealing with.

The is_hdmi we'll need as that's not discoverable via the output flags,
but we'll just move it under the connector.

We'll also move the sdvo fixed mode handling out from the .get_modes()
hook into the sdvo lvds init function so that we can bail out properly
if there is no fixed mode to be found.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180917151504.8754-1-ville.syrjala@linux.intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/intel_sdvo.c