OSDN Git Service

drm/amd/display: Fix rn audio playback and video playback speed
authorMichael Strauss <michael.strauss@amd.com>
Wed, 7 Aug 2019 20:52:20 +0000 (16:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Oct 2019 20:29:39 +0000 (16:29 -0400)
commitbfbacdae0ab47db7f61d3dc17dee8f4a3de53f5e
treef469450cf81a307e769c9409774fee05b26a4de4
parent1952a21cf3622f5b896eb807e4164acfff104e0f
drm/amd/display: Fix rn audio playback and video playback speed

[WHY]
dprefclk is improperly read due to incorrect units used.
Causes an audio clock to be improperly set, making audio
non-functional and videos play back too fast

[HOW]
Scale dprefclk value from MHz to KHz (multiply by 1000)
to ensure that dprefclk_khz is in correct units

Signed-off-by: Michael Strauss <michael.strauss@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c