]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd/display: Allow for sharing of some link and audio link functions
authorRelja Vojvodic <rvojvodi@amd.com>
Mon, 14 Jul 2025 15:56:50 +0000 (11:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Jul 2025 20:40:31 +0000 (16:40 -0400)
[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>
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.h

index 32fd6bdc18d73c11cef41a9c3c3a132812ee923c..153d68375fa3a6f695da5d86865453fd6a721b6c 100644 (file)
@@ -1270,7 +1270,7 @@ void dce110_set_avmute(struct pipe_ctx *pipe_ctx, bool enable)
                pipe_ctx->stream_res.stream_enc->funcs->set_avmute(pipe_ctx->stream_res.stream_enc, enable);
 }
 
-static enum audio_dto_source translate_to_dto_source(enum controller_id crtc_id)
+enum audio_dto_source translate_to_dto_source(enum controller_id crtc_id)
 {
        switch (crtc_id) {
        case CONTROLLER_ID_D0:
@@ -1290,7 +1290,7 @@ static enum audio_dto_source translate_to_dto_source(enum controller_id crtc_id)
        }
 }
 
-static void populate_audio_dp_link_info(
+void populate_audio_dp_link_info(
        const struct pipe_ctx *pipe_ctx,
        struct audio_dp_link_info *dp_link_info)
 {
@@ -2253,7 +2253,7 @@ static bool should_enable_fbc(struct dc *dc,
 /*
  *  Enable FBC
  */
-static void enable_fbc(
+void enable_fbc(
                struct dc *dc,
                struct dc_state *context)
 {
index 7cd8c157698816f3fa089809fdf13599da7da753..9c032e449481fa438f1d2b47148b0f3d17f09547 100644 (file)
@@ -114,5 +114,12 @@ void build_audio_output(
                struct dc_state *state,
                const struct pipe_ctx *pipe_ctx,
                struct audio_output *audio_output);
+enum audio_dto_source translate_to_dto_source(enum controller_id crtc_id);
+void populate_audio_dp_link_info(
+       const struct pipe_ctx *pipe_ctx,
+       struct audio_dp_link_info *dp_link_info);
+void enable_fbc(
+       struct dc *dc,
+       struct dc_state *context);
 #endif /* __DC_HWSS_DCE110_H__ */