diff options
author | Slava Grigorev <slava.grigorev@amd.com> | 2014-12-10 16:43:51 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-01-22 16:42:17 +0100 |
commit | 6e72376dcc663e4b8a00cdd08f61a8623f572ef1 (patch) | |
tree | 35f806016c5a6277ea427d9f3ffd50b5e2ee0e65 /drivers/gpu/drm/radeon/dce3_1_afmt.c | |
parent | radeon/audio: removed unnecessary debug settings (diff) | |
download | linux-6e72376dcc663e4b8a00cdd08f61a8623f572ef1.tar.xz linux-6e72376dcc663e4b8a00cdd08f61a8623f572ef1.zip |
radeon/audio: consolidate audio_mode_set() functions
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Slava Grigorev <slava.grigorev@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/dce3_1_afmt.c')
-rw-r--r-- | drivers/gpu/drm/radeon/dce3_1_afmt.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/drivers/gpu/drm/radeon/dce3_1_afmt.c b/drivers/gpu/drm/radeon/dce3_1_afmt.c index cbd07f5f276a..f04205170b8a 100644 --- a/drivers/gpu/drm/radeon/dce3_1_afmt.c +++ b/drivers/gpu/drm/radeon/dce3_1_afmt.c @@ -230,44 +230,3 @@ void dce3_2_set_mute(struct drm_encoder *encoder, u32 offset, bool mute) else WREG32_AND(HDMI0_GC + offset, ~HDMI0_GC_AVMUTE); } - -/* - * update the info frames with the data from the current display mode - */ -void dce3_1_hdmi_setmode(struct drm_encoder *encoder, struct drm_display_mode *mode) -{ - struct drm_device *dev = encoder->dev; - struct radeon_device *rdev = dev->dev_private; - struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); - struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; - uint32_t offset; - - if (!dig || !dig->afmt) - return; - - /* Silent, r600_hdmi_enable will raise WARN for us */ - if (!dig->afmt->enabled) - return; - offset = dig->afmt->offset; - - /* disable audio prior to setting up hw */ - dig->afmt->pin = radeon_audio_get_pin(encoder); - radeon_audio_enable(rdev, dig->afmt->pin, 0); - - radeon_audio_set_dto(encoder, mode->clock); - radeon_audio_set_vbi_packet(encoder); - radeon_hdmi_set_color_depth(encoder); - radeon_audio_set_mute(encoder, false); - radeon_audio_update_acr(encoder, mode->clock); - radeon_audio_write_speaker_allocation(encoder); - radeon_audio_set_audio_packet(encoder); - radeon_audio_write_sad_regs(encoder); - - if (radeon_audio_set_avi_packet(encoder, mode) < 0) - return; - - r600_hdmi_audio_workaround(encoder); - - /* enable audio after to setting up hw */ - radeon_audio_enable(rdev, dig->afmt->pin, 0xf); -} |