diff options
author | Slava Grigorev <slava.grigorev@amd.com> | 2014-12-10 10:43:51 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-01-22 10:42:17 -0500 |
commit | 6e72376dcc663e4b8a00cdd08f61a8623f572ef1 (patch) | |
tree | 35f806016c5a6277ea427d9f3ffd50b5e2ee0e65 /drivers/gpu/drm/radeon/radeon_audio.h | |
parent | 7f604077ac9cacb9a6b04b977e2cd1f26cb3f667 (diff) | |
download | linux-next-6e72376dcc663e4b8a00cdd08f61a8623f572ef1.tar.gz |
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/radeon_audio.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_audio.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_audio.h b/drivers/gpu/drm/radeon/radeon_audio.h index 5ca5e7edc680..69022116b6a4 100644 --- a/drivers/gpu/drm/radeon/radeon_audio.h +++ b/drivers/gpu/drm/radeon/radeon_audio.h @@ -61,6 +61,8 @@ struct radeon_audio_funcs unsigned char *buffer, size_t size); void (*set_audio_packet)(struct drm_encoder *encoder, u32 offset); void (*set_mute)(struct drm_encoder *encoder, u32 offset, bool mute); + void (*mode_set)(struct drm_encoder *encoder, + struct drm_display_mode *mode); }; int radeon_audio_init(struct radeon_device *rdev); @@ -70,22 +72,11 @@ u32 radeon_audio_endpoint_rreg(struct radeon_device *rdev, u32 offset, u32 reg); void radeon_audio_endpoint_wreg(struct radeon_device *rdev, u32 offset, u32 reg, u32 v); -void radeon_audio_write_sad_regs(struct drm_encoder *encoder); -void radeon_audio_write_speaker_allocation(struct drm_encoder *encoder); -void radeon_audio_write_latency_fields(struct drm_encoder *encoder, - struct drm_display_mode *mode); struct r600_audio_pin *radeon_audio_get_pin(struct drm_encoder *encoder); -void radeon_audio_select_pin(struct drm_encoder *encoder); void radeon_audio_enable(struct radeon_device *rdev, struct r600_audio_pin *pin, u8 enable_mask); void radeon_audio_fini(struct radeon_device *rdev); -void radeon_audio_set_dto(struct drm_encoder *encoder, unsigned int clock); -int radeon_audio_set_avi_packet(struct drm_encoder *encoder, +void radeon_audio_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode); -void radeon_audio_update_acr(struct drm_encoder *encoder, unsigned int clock); -void radeon_audio_set_vbi_packet(struct drm_encoder *encoder); -void radeon_hdmi_set_color_depth(struct drm_encoder *encoder); -void radeon_audio_set_audio_packet(struct drm_encoder *encoder); -void radeon_audio_set_mute(struct drm_encoder *encoder, bool mute); #endif |