mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
drm/amd/display: try to find matching audio inst for enc inst first
[Description] in eDP+ HDMI/DP clone or extended configuration, audio inst changed from inst 1 to inst0. No failure related this though, just playback device endpoint inst changed. Also remove one addition register read. Signed-off-by: Charlene Liu <charlene.liu@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
c984d06b7b
commit
f033680df6
1 changed files with 1 additions and 3 deletions
|
@ -87,10 +87,8 @@ static void dce110_update_generic_info_packet(
|
|||
*/
|
||||
uint32_t max_retries = 50;
|
||||
|
||||
REG_GET(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, ®val);
|
||||
/*we need turn on clock before programming AFMT block*/
|
||||
if (regval != 1)
|
||||
REG_UPDATE(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, 1);
|
||||
REG_UPDATE(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, 1);
|
||||
|
||||
if (REG(AFMT_VBI_PACKET_CONTROL1)) {
|
||||
if (packet_index >= 8)
|
||||
|
|
Loading…
Reference in a new issue