Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
dce_aud_destroy(&pool->base.audios[i]);
}
+ for (i = 0; i < pool->base.res_cap->num_dwb; i++) {
+ dm_free(pool->base.dwbc[i]);
+ pool->base.dwbc[i] = NULL;
+ }
+
for (i = 0; i < pool->base.clk_src_count; i++) {
if (pool->base.clock_sources[i] != NULL) {
dcn10_clock_source_destroy(&pool->base.clock_sources[i]);