Lines Matching refs:audio

55 #include "audio.h"
1078 /* notify audio driver for audio modes of monitor */
1091 if (pipe_ctx->stream_res.audio && pipe_ctx->stream_res.audio->enabled == true)
1094 if (pipe_ctx->stream_res.audio) {
1097 if (dc->current_state->res_ctx.pipe_ctx[i].stream_res.audio != NULL)
1101 pipe_ctx->stream_res.audio->funcs->az_enable(pipe_ctx->stream_res.audio);
1104 /*this is the first audio. apply the PME w/a in order to wake AZ from D3*/
1109 if (pipe_ctx->stream_res.audio)
1110 pipe_ctx->stream_res.audio->enabled = true;
1127 if (pipe_ctx->stream_res.audio && pipe_ctx->stream_res.audio->enabled == false)
1132 if (pipe_ctx->stream_res.audio) {
1133 pipe_ctx->stream_res.audio->enabled = false;
1136 /*this is the first audio. apply the PME w/a in order to wake AZ from D3*/
1139 /* TODO: notify audio driver for if audio modes list changed
1140 * add audio mode list change flag */
1141 /* dal_audio_disable_azalia_audio_jack_presence(stream->audio,
1299 /* For audio stream calculations, the video stream should not include FEC or SSC
1378 /*for HDMI, audio ACR is with deep color ratio factor*/
1539 if (pipe_ctx->stream_res.audio != NULL) {
1545 pipe_ctx->stream_res.audio->inst);
1547 pipe_ctx->stream_res.audio->funcs->az_configure(
1548 pipe_ctx->stream_res.audio,
2148 if (pipe_ctx_old->stream_res.audio) {
2150 pipe_ctx_old->stream_res.audio->funcs->
2151 az_disable(pipe_ctx_old->stream_res.audio);
2153 /*free audio*/
2155 /*we have to dynamic arbitrate the audio endpoints*/
2158 pipe_ctx_old->stream_res.audio, false);
2159 pipe_ctx_old->stream_res.audio = NULL;
2193 /* program audio wall clock. use HDMI as clock source if HDMI
2194 * audio active. Otherwise, use DP as clock source
2195 * first, loop to find any HDMI audio, if not, loop find DP audio
2197 /* Setup audio rate clock source */
2203 * is set to either dto0 or dto1, audio should work fine.
2205 * set to dto0 will cause audio lag.
2208 * Not optimized audio wall dto setup. When mode set, iterate pipe_ctx,
2209 * find first available pipe with audio, setup audio wall DTO per topology
2222 if (pipe_ctx->stream_res.audio != NULL) {
2233 pipe_ctx->stream_res.audio->funcs->wall_dto_setup(
2234 pipe_ctx->stream_res.audio,
2239 pipe_ctx->stream_res.audio->funcs->wall_dto_setup(
2240 pipe_ctx->stream_res.audio,
2248 /* no HDMI audio is found, try DP audio */
2262 if (pipe_ctx->stream_res.audio != NULL) {
2267 pipe_ctx->stream_res.audio->funcs->wall_dto_setup(
2268 pipe_ctx->stream_res.audio,
2700 struct audio *audio = dc->res_pool->audios[i];
2701 audio->funcs->hw_init(audio);