aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/radeon/dce6_afmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/dce6_afmt.c b/drivers/gpu/drm/radeon/dce6_afmt.c
index 8953255e894b..3853dda797dd 100644
--- a/drivers/gpu/drm/radeon/dce6_afmt.c
+++ b/drivers/gpu/drm/radeon/dce6_afmt.c
@@ -86,12 +86,12 @@ void dce6_afmt_select_pin(struct drm_encoder *encoder)
86 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); 86 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
87 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; 87 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv;
88 u32 offset = dig->afmt->offset; 88 u32 offset = dig->afmt->offset;
89 u32 id = dig->afmt->pin->id;
90 89
91 if (!dig->afmt->pin) 90 if (!dig->afmt->pin)
92 return; 91 return;
93 92
94 WREG32(AFMT_AUDIO_SRC_CONTROL + offset, AFMT_AUDIO_SRC_SELECT(id)); 93 WREG32(AFMT_AUDIO_SRC_CONTROL + offset,
94 AFMT_AUDIO_SRC_SELECT(dig->afmt->pin->id));
95} 95}
96 96
97void dce6_afmt_write_speaker_allocation(struct drm_encoder *encoder) 97void dce6_afmt_write_speaker_allocation(struct drm_encoder *encoder)