Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: Allow for sharing of some link and audio link functions

[Why&How]
Allow for sharing of some link and audio link functions by removing static
keyword from function definitions.
Expose those functions in the HWSEQ header.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Relja Vojvodic <rvojvodi@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Relja Vojvodic and committed by
Alex Deucher
7af12477 9571dbaf

+10 -3
+3 -3
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
··· 1270 1270 pipe_ctx->stream_res.stream_enc->funcs->set_avmute(pipe_ctx->stream_res.stream_enc, enable); 1271 1271 } 1272 1272 1273 - static enum audio_dto_source translate_to_dto_source(enum controller_id crtc_id) 1273 + enum audio_dto_source translate_to_dto_source(enum controller_id crtc_id) 1274 1274 { 1275 1275 switch (crtc_id) { 1276 1276 case CONTROLLER_ID_D0: ··· 1290 1290 } 1291 1291 } 1292 1292 1293 - static void populate_audio_dp_link_info( 1293 + void populate_audio_dp_link_info( 1294 1294 const struct pipe_ctx *pipe_ctx, 1295 1295 struct audio_dp_link_info *dp_link_info) 1296 1296 { ··· 2253 2253 /* 2254 2254 * Enable FBC 2255 2255 */ 2256 - static void enable_fbc( 2256 + void enable_fbc( 2257 2257 struct dc *dc, 2258 2258 struct dc_state *context) 2259 2259 {
+7
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.h
··· 114 114 struct dc_state *state, 115 115 const struct pipe_ctx *pipe_ctx, 116 116 struct audio_output *audio_output); 117 + enum audio_dto_source translate_to_dto_source(enum controller_id crtc_id); 118 + void populate_audio_dp_link_info( 119 + const struct pipe_ctx *pipe_ctx, 120 + struct audio_dp_link_info *dp_link_info); 121 + void enable_fbc( 122 + struct dc *dc, 123 + struct dc_state *context); 117 124 #endif /* __DC_HWSS_DCE110_H__ */ 118 125