free_pipe->stream_res.tg = tail_pipe->stream_res.tg;
free_pipe->stream_res.opp = tail_pipe->stream_res.opp;
free_pipe->stream_res.stream_enc = tail_pipe->stream_res.stream_enc;
- free_pipe->audio = tail_pipe->audio;
+ free_pipe->stream_res.audio = tail_pipe->stream_res.audio;
free_pipe->clock_source = tail_pipe->clock_source;
free_pipe->top_pipe = tail_pipe;
tail_pipe->bottom_pipe = free_pipe;
pipe_ctx->clock_source);
set_audio_in_use(&context->res_ctx, pool,
- pipe_ctx->audio);
+ pipe_ctx->stream_res.audio);
}
}
if (!stream->sink->converter_disable_audio &&
dc_is_audio_capable_signal(pipe_ctx->stream->signal) &&
stream->audio_info.mode_count) {
- pipe_ctx->audio = find_first_free_audio(
+ pipe_ctx->stream_res.audio = find_first_free_audio(
&context->res_ctx, pool);
/*
* There are asics which has number of audio
* resources less then number of pipes
*/
- if (pipe_ctx->audio)
+ if (pipe_ctx->stream_res.audio)
set_audio_in_use(
&context->res_ctx, pool,
- pipe_ctx->audio);
+ pipe_ctx->stream_res.audio);
}
context->stream_status[i].primary_otg_inst = pipe_ctx->stream_res.tg->inst;
if (pipe_ctx_old->stream->signal != pipe_ctx->stream->signal)
return true;
- if (pipe_ctx_old->audio != pipe_ctx->audio)
+ if (pipe_ctx_old->stream_res.audio != pipe_ctx->stream_res.audio)
return true;
if (pipe_ctx_old->clock_source != pipe_ctx->clock_source
tg->funcs->set_early_control(tg, early_control);
/* enable audio only within mode set */
- if (pipe_ctx->audio != NULL) {
+ if (pipe_ctx->stream_res.audio != NULL) {
if (dc_is_dp_signal(pipe_ctx->stream->signal))
pipe_ctx->stream_res.stream_enc->funcs->dp_audio_enable(pipe_ctx->stream_res.stream_enc);
}
struct dc_stream_state *stream = pipe_ctx->stream;
struct dc_link *link = stream->sink->link;
- if (pipe_ctx->audio) {
- pipe_ctx->audio->funcs->az_disable(pipe_ctx->audio);
+ if (pipe_ctx->stream_res.audio) {
+ pipe_ctx->stream_res.audio->funcs->az_disable(pipe_ctx->stream_res.audio);
if (dc_is_dp_signal(pipe_ctx->stream->signal))
pipe_ctx->stream_res.stream_enc->funcs->dp_audio_disable(
pipe_ctx->stream_res.stream_enc->funcs->hdmi_audio_disable(
pipe_ctx->stream_res.stream_enc);
- pipe_ctx->audio = NULL;
+ pipe_ctx->stream_res.audio = NULL;
/* TODO: notify audio driver for if audio modes list changed
* add audio mode list change flag */
pipe_ctx->stream_res.stream_enc,
&stream->timing,
stream->phy_pix_clk,
- pipe_ctx->audio != NULL);
+ pipe_ctx->stream_res.audio != NULL);
if (dc_is_dvi_signal(pipe_ctx->stream->signal))
pipe_ctx->stream_res.stream_enc->funcs->dvi_set_stream_attribute(
if (pipe_ctx->stream->signal != SIGNAL_TYPE_HDMI_TYPE_A)
continue;
- if (pipe_ctx->audio != NULL) {
+ if (pipe_ctx->stream_res.audio != NULL) {
struct audio_output audio_output;
build_audio_output(pipe_ctx, &audio_output);
- pipe_ctx->audio->funcs->wall_dto_setup(
- pipe_ctx->audio,
+ pipe_ctx->stream_res.audio->funcs->wall_dto_setup(
+ pipe_ctx->stream_res.audio,
pipe_ctx->stream->signal,
&audio_output.crtc_info,
&audio_output.pll_info);
if (!dc_is_dp_signal(pipe_ctx->stream->signal))
continue;
- if (pipe_ctx->audio != NULL) {
+ if (pipe_ctx->stream_res.audio != NULL) {
struct audio_output audio_output;
build_audio_output(pipe_ctx, &audio_output);
- pipe_ctx->audio->funcs->wall_dto_setup(
- pipe_ctx->audio,
+ pipe_ctx->stream_res.audio->funcs->wall_dto_setup(
+ pipe_ctx->stream_res.audio,
pipe_ctx->stream->signal,
&audio_output.crtc_info,
&audio_output.pll_info);
if (pipe_ctx->top_pipe)
continue;
- if (context->res_ctx.pipe_ctx[i].audio != NULL) {
+ if (context->res_ctx.pipe_ctx[i].stream_res.audio != NULL) {
struct audio_output audio_output;
if (dc_is_dp_signal(pipe_ctx->stream->signal))
pipe_ctx->stream_res.stream_enc->funcs->dp_audio_setup(
pipe_ctx->stream_res.stream_enc,
- pipe_ctx->audio->inst,
+ pipe_ctx->stream_res.audio->inst,
&pipe_ctx->stream->audio_info);
else
pipe_ctx->stream_res.stream_enc->funcs->hdmi_audio_setup(
pipe_ctx->stream_res.stream_enc,
- pipe_ctx->audio->inst,
+ pipe_ctx->stream_res.audio->inst,
&pipe_ctx->stream->audio_info,
&audio_output.crtc_info);
- pipe_ctx->audio->funcs->az_configure(
- pipe_ctx->audio,
+ pipe_ctx->stream_res.audio->funcs->az_configure(
+ pipe_ctx->stream_res.audio,
pipe_ctx->stream->signal,
&audio_output.crtc_info,
&pipe_ctx->stream->audio_info);