| .. | .. |
|---|
| 3282 | 3282 | if (pipe_ctx->stream_res.opp->mpcc_disconnect_pending[mpcc_inst]) { |
|---|
| 3283 | 3283 | struct hubp *hubp = get_hubp_by_inst(res_pool, mpcc_inst); |
|---|
| 3284 | 3284 | |
|---|
| 3285 | | - res_pool->mpc->funcs->wait_for_idle(res_pool->mpc, mpcc_inst); |
|---|
| 3285 | + if (pipe_ctx->stream_res.tg && |
|---|
| 3286 | + pipe_ctx->stream_res.tg->funcs->is_tg_enabled(pipe_ctx->stream_res.tg)) |
|---|
| 3287 | + res_pool->mpc->funcs->wait_for_idle(res_pool->mpc, mpcc_inst); |
|---|
| 3286 | 3288 | pipe_ctx->stream_res.opp->mpcc_disconnect_pending[mpcc_inst] = false; |
|---|
| 3287 | 3289 | hubp->funcs->set_blank(hubp, true); |
|---|
| 3288 | 3290 | } |
|---|