Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e56ae556 authored by Nikola Cornij's avatar Nikola Cornij Committed by Alex Deucher
Browse files

drm/amd/display: Define remove_stream_from_ctx resource func



This will allow us to clean up resources on a stream as needed.

Signed-off-by: default avatarNikola Cornij <nikola.cornij@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f4791779
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1554,6 +1554,9 @@ enum dc_status dc_remove_stream_from_ctx(
							  dc->res_pool,
							  dc->res_pool,
							  del_pipe->clock_source);
							  del_pipe->clock_source);


			if (dc->res_pool->funcs->remove_stream_from_ctx)
				dc->res_pool->funcs->remove_stream_from_ctx(dc, new_ctx, stream);

			memset(del_pipe, 0, sizeof(*del_pipe));
			memset(del_pipe, 0, sizeof(*del_pipe));


			break;
			break;
+5 −0
Original line number Original line Diff line number Diff line
@@ -119,6 +119,11 @@ struct resource_funcs {
			struct dc *dc,
			struct dc *dc,
			struct dc_state *new_ctx,
			struct dc_state *new_ctx,
			struct dc_stream_state *dc_stream);
			struct dc_stream_state *dc_stream);

	enum dc_status (*remove_stream_from_ctx)(
				struct dc *dc,
				struct dc_state *new_ctx,
				struct dc_stream_state *stream);
};
};


struct audio_support{
struct audio_support{