]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit955798aa43fa620ffbae64fca1a3697b2b2addee
treef469450cf81a307e769c9409774fee05b26a4de4
parent3af16619d2c73d1f2916884d268ee2df5e141024
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