drm/rockchip: dp: extcon sync for audio in .loader_protect helper

Type: Fix
Redmine ID: #506052
Associated modifications: gerrit links
 Test: test method

Change-Id: I114679d477f33f0a6d8b13d0f72d9c36c41fc40c
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
This commit is contained in:
Guochun Huang
2024-09-09 16:18:51 +08:00
committed by Tao Huang
parent 0e7febeb4a
commit db4eb2bcf1

View File

@@ -3264,9 +3264,13 @@ static void _dw_dp_loader_protect(struct dw_dp *dp, bool on)
break;
}
extcon_set_state_sync(dp->audio->extcon, EXTCON_DISP_DP, true);
dw_dp_audio_handle_plugged_change(dp->audio, true);
phy_power_on(dp->phy);
} else {
phy_power_off(dp->phy);
extcon_set_state_sync(dp->audio->extcon, EXTCON_DISP_DP, false);
dw_dp_audio_handle_plugged_change(dp->audio, false);
}
}