diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-07-26 13:26:05 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-07-29 18:14:36 -0400 |
commit | 7d61d835824f73dc4097b51f800382467c8049c5 (patch) | |
tree | b5be71c9d69177d3b614b77dc5bd6b1b03fc06bf | |
parent | bf903e4141fce4b35072d5b8fa0ddd299aaf01ea (diff) |
drm/radeon: fix audio dto programming on DCE4+
We need to set the dto source before setting the
dividers otherwise we may get stability problems
with the dto leading to audio playback problems.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org
-rw-r--r-- | drivers/gpu/drm/radeon/evergreen_hdmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen_hdmi.c b/drivers/gpu/drm/radeon/evergreen_hdmi.c index b0d3fb341417..bb9ea3641312 100644 --- a/drivers/gpu/drm/radeon/evergreen_hdmi.c +++ b/drivers/gpu/drm/radeon/evergreen_hdmi.c | |||
@@ -157,9 +157,9 @@ static void evergreen_audio_set_dto(struct drm_encoder *encoder, u32 clock) | |||
157 | * number (coefficient of two integer numbers. DCCG_AUDIO_DTOx_PHASE | 157 | * number (coefficient of two integer numbers. DCCG_AUDIO_DTOx_PHASE |
158 | * is the numerator, DCCG_AUDIO_DTOx_MODULE is the denominator | 158 | * is the numerator, DCCG_AUDIO_DTOx_MODULE is the denominator |
159 | */ | 159 | */ |
160 | WREG32(DCCG_AUDIO_DTO_SOURCE, DCCG_AUDIO_DTO0_SOURCE_SEL(radeon_crtc->crtc_id)); | ||
160 | WREG32(DCCG_AUDIO_DTO0_PHASE, base_rate * 100); | 161 | WREG32(DCCG_AUDIO_DTO0_PHASE, base_rate * 100); |
161 | WREG32(DCCG_AUDIO_DTO0_MODULE, clock * 100); | 162 | WREG32(DCCG_AUDIO_DTO0_MODULE, clock * 100); |
162 | WREG32(DCCG_AUDIO_DTO_SOURCE, DCCG_AUDIO_DTO0_SOURCE_SEL(radeon_crtc->crtc_id)); | ||
163 | } | 163 | } |
164 | 164 | ||
165 | 165 | ||