aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/dce6_afmt.c
diff options
context:
space:
mode:
authorSlava Grigorev <slava.grigorev@amd.com>2016-01-26 16:45:10 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-01-27 12:47:28 -0500
commitc9a392eac18409f51a071520cf508c0b4ad990e2 (patch)
treec0664325a71115eb8513dc70d10fd816deee4fd4 /drivers/gpu/drm/radeon/dce6_afmt.c
parentdrm/amd/powerplay: Update SMU firmware loading for Stoney (diff)
downloadlinux-dev-c9a392eac18409f51a071520cf508c0b4ad990e2.tar.xz
linux-dev-c9a392eac18409f51a071520cf508c0b4ad990e2.zip
drm/radeon: cleaned up VCO output settings for DP audio
This is preparation for the fixes in the following patches. Signed-off-by: Slava Grigorev <slava.grigorev@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/radeon/dce6_afmt.c')
-rw-r--r--drivers/gpu/drm/radeon/dce6_afmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/dce6_afmt.c b/drivers/gpu/drm/radeon/dce6_afmt.c
index 6bfc46369db1..ea4e3fc2744f 100644
--- a/drivers/gpu/drm/radeon/dce6_afmt.c
+++ b/drivers/gpu/drm/radeon/dce6_afmt.c
@@ -315,7 +315,7 @@ void dce6_dp_audio_set_dto(struct radeon_device *rdev,
div = 0;
if (div)
- clock = rdev->clock.gpupll_outputfreq * 10 / div;
+ clock /= div;
WREG32(DCE8_DCCG_AUDIO_DTO1_PHASE, 24000);
WREG32(DCE8_DCCG_AUDIO_DTO1_MODULE, clock);