drm/rockchip: dw_hdmi: fix output interface config

hdmi id 0 mean hdmi0, hdmi id 1 mean hdmi1, fix it.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I8766336cf88c8b1dbff0f2f018cb69a5e65fdfa4
This commit is contained in:
Zhang Yubing 2022-01-20 10:26:24 +08:00
parent 6783f7920e
commit 74d6a13cb6
1 changed files with 2 additions and 2 deletions

View File

@ -1504,9 +1504,9 @@ static void dw_hdmi_rockchip_encoder_disable(struct drm_encoder *encoder)
if (!hdmi->mode_changed) {
if (!hdmi->id)
s->output_if &= ~VOP_OUTPUT_IF_HDMI1;
else
s->output_if &= ~VOP_OUTPUT_IF_HDMI0;
else
s->output_if &= ~VOP_OUTPUT_IF_HDMI1;
}
/*
* when plug out hdmi it will be switch cvbs and then phy bus width