mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
drm/bridge: synopsys: dw-hdmi: Fix vmode error when system boot
If uboot logo is on, hdmi clock is need to record from crtc_state. If not, hdmi may not be able to output audio. Signed-off-by: Algea Cao <algea.cao@rock-chips.com> Change-Id: I0a9c8bb5df0ab2bdb6d5d2754d92745aa7a2d0cf
This commit is contained in:
@@ -2842,6 +2842,7 @@ static int dw_hdmi_connector_atomic_check(struct drm_connector *connector,
|
||||
* drm_display_mode and set phy status to enabled.
|
||||
*/
|
||||
if (!vmode->mpixelclock) {
|
||||
crtc_state = drm_atomic_get_crtc_state(state, crtc);
|
||||
if (hdmi->plat_data->get_enc_in_encoding)
|
||||
hdmi->hdmi_data.enc_in_encoding =
|
||||
hdmi->plat_data->get_enc_in_encoding(data);
|
||||
@@ -2855,7 +2856,7 @@ static int dw_hdmi_connector_atomic_check(struct drm_connector *connector,
|
||||
hdmi->hdmi_data.enc_out_bus_format =
|
||||
hdmi->plat_data->get_output_bus_format(data);
|
||||
|
||||
mode = &crtc->mode;
|
||||
mode = &crtc_state->mode;
|
||||
memcpy(&hdmi->previous_mode, mode, sizeof(hdmi->previous_mode));
|
||||
vmode->mpixelclock = mode->crtc_clock * 1000;
|
||||
vmode->previous_pixelclock = mode->clock;
|
||||
|
||||
Reference in New Issue
Block a user