diff options
author | 2021-05-11 19:05:31 +0300 | |
---|---|---|
committer | 2021-05-26 17:56:30 +0300 | |
commit | cc3bd64d7cc3fc617916e355dd9169f62e66a089 (patch) | |
tree | 60053b18e871c50b48683c772b63ba6896861953 /drivers/gpu/drm/i915/display/intel_hdmi.c | |
parent | drm/i915: Check sink deep color capabilitis during HDMI .mode_valid() (diff) | |
download | linux-dev-cc3bd64d7cc3fc617916e355dd9169f62e66a089.tar.xz linux-dev-cc3bd64d7cc3fc617916e355dd9169f62e66a089.zip |
drm/i915: Move the TMDS clock division into intel_hdmi_mode_clock_valid()
Now that we have to tell intel_hdmi_mode_clock_valid() whether
we're asking about 4:4:4 or 4:2:0 output it can take care of
the dotclock->TMDS clock conversion.
Cc: Werner Sembach <wse@tuxedocomputers.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210511160532.21446-6-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_hdmi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_hdmi.c b/drivers/gpu/drm/i915/display/intel_hdmi.c index aa8198b3abe2..94cbe379fe63 100644 --- a/drivers/gpu/drm/i915/display/intel_hdmi.c +++ b/drivers/gpu/drm/i915/display/intel_hdmi.c @@ -1910,6 +1910,9 @@ intel_hdmi_mode_clock_valid(struct drm_connector *connector, int clock, struct intel_hdmi *hdmi = intel_attached_hdmi(to_intel_connector(connector)); enum drm_mode_status status; + if (ycbcr420_output) + clock /= 2; + /* check if we can do 8bpc */ status = hdmi_port_clock_valid(hdmi, intel_hdmi_port_clock(clock, 8), true, has_hdmi_sink); @@ -1960,8 +1963,6 @@ intel_hdmi_mode_valid(struct drm_connector *connector, } ycbcr_420_only = drm_mode_is_420_only(&connector->display_info, mode); - if (ycbcr_420_only) - clock /= 2; status = intel_hdmi_mode_clock_valid(connector, clock, has_hdmi_sink, ycbcr_420_only); if (status != MODE_OK) { @@ -1970,7 +1971,6 @@ intel_hdmi_mode_valid(struct drm_connector *connector, !drm_mode_is_420_also(&connector->display_info, mode)) return status; - clock /= 2; status = intel_hdmi_mode_clock_valid(connector, clock, has_hdmi_sink, true); if (status != MODE_OK) return status; |