mirror of https://gitee.com/openkylin/linux.git
drm/amd/display: fix seq issue: turn on clock before programming afmt.
Signed-off-by: Charlene Liu <charlene.liu@amd.com> Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@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
096480eac6
commit
c984d06b7b
|
@ -87,8 +87,10 @@ static void dce110_update_generic_info_packet(
|
||||||
*/
|
*/
|
||||||
uint32_t max_retries = 50;
|
uint32_t max_retries = 50;
|
||||||
|
|
||||||
|
REG_GET(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, ®val);
|
||||||
/*we need turn on clock before programming AFMT block*/
|
/*we need turn on clock before programming AFMT block*/
|
||||||
REG_UPDATE(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, 1);
|
if (regval != 1)
|
||||||
|
REG_UPDATE(AFMT_CNTL, AFMT_AUDIO_CLOCK_EN, 1);
|
||||||
|
|
||||||
if (REG(AFMT_VBI_PACKET_CONTROL1)) {
|
if (REG(AFMT_VBI_PACKET_CONTROL1)) {
|
||||||
if (packet_index >= 8)
|
if (packet_index >= 8)
|
||||||
|
|
Loading…
Reference in New Issue