Lines Matching full:audio

212 	if (rdev->audio.funcs->enable)  in radeon_audio_enable()
213 rdev->audio.funcs->enable(rdev, pin, enable_mask); in radeon_audio_enable()
221 rdev->audio.funcs = &dce6_funcs; in radeon_audio_interface_init()
222 rdev->audio.hdmi_funcs = &dce6_hdmi_funcs; in radeon_audio_interface_init()
223 rdev->audio.dp_funcs = &dce6_dp_funcs; in radeon_audio_interface_init()
225 rdev->audio.funcs = &dce4_funcs; in radeon_audio_interface_init()
226 rdev->audio.hdmi_funcs = &dce4_hdmi_funcs; in radeon_audio_interface_init()
227 rdev->audio.dp_funcs = &dce4_dp_funcs; in radeon_audio_interface_init()
229 rdev->audio.funcs = &dce32_funcs; in radeon_audio_interface_init()
230 rdev->audio.hdmi_funcs = &dce32_hdmi_funcs; in radeon_audio_interface_init()
231 rdev->audio.dp_funcs = &dce32_dp_funcs; in radeon_audio_interface_init()
233 rdev->audio.funcs = &r600_funcs; in radeon_audio_interface_init()
234 rdev->audio.hdmi_funcs = &r600_hdmi_funcs; in radeon_audio_interface_init()
235 rdev->audio.dp_funcs = NULL; in radeon_audio_interface_init()
251 rdev->audio.enabled = true; in radeon_audio_init()
254 rdev->audio.num_pins = 3; in radeon_audio_init()
256 rdev->audio.num_pins = 7; in radeon_audio_init()
258 rdev->audio.num_pins = 7; in radeon_audio_init()
260 rdev->audio.num_pins = 2; in radeon_audio_init()
262 rdev->audio.num_pins = 6; in radeon_audio_init()
264 rdev->audio.num_pins = 6; in radeon_audio_init()
266 rdev->audio.num_pins = 1; in radeon_audio_init()
268 for (i = 0; i < rdev->audio.num_pins; i++) { in radeon_audio_init()
269 rdev->audio.pin[i].channels = -1; in radeon_audio_init()
270 rdev->audio.pin[i].rate = -1; in radeon_audio_init()
271 rdev->audio.pin[i].bits_per_sample = -1; in radeon_audio_init()
272 rdev->audio.pin[i].status_bits = 0; in radeon_audio_init()
273 rdev->audio.pin[i].category_code = 0; in radeon_audio_init()
274 rdev->audio.pin[i].connected = false; in radeon_audio_init()
275 rdev->audio.pin[i].offset = pin_offsets[i]; in radeon_audio_init()
276 rdev->audio.pin[i].id = i; in radeon_audio_init()
281 /* disable audio. it will be set up later */ in radeon_audio_init()
282 for (i = 0; i < rdev->audio.num_pins; i++) in radeon_audio_init()
283 radeon_audio_enable(rdev, &rdev->audio.pin[i], 0); in radeon_audio_init()
290 if (rdev->audio.funcs->endpoint_rreg) in radeon_audio_endpoint_rreg()
291 return rdev->audio.funcs->endpoint_rreg(rdev, offset, reg); in radeon_audio_endpoint_rreg()
299 if (rdev->audio.funcs->endpoint_wreg) in radeon_audio_endpoint_wreg()
300 rdev->audio.funcs->endpoint_wreg(rdev, offset, reg, v); in radeon_audio_endpoint_wreg()
321 if (radeon_encoder->audio && radeon_encoder->audio->write_sad_regs) in radeon_audio_write_sad_regs()
322 radeon_encoder->audio->write_sad_regs(encoder, sads, sad_count); in radeon_audio_write_sad_regs()
345 if (radeon_encoder->audio && radeon_encoder->audio->write_speaker_allocation) in radeon_audio_write_speaker_allocation()
346 radeon_encoder->audio->write_speaker_allocation(encoder, sadb, sad_count); in radeon_audio_write_speaker_allocation()
360 if (radeon_encoder->audio && radeon_encoder->audio->write_latency_fields) in radeon_audio_write_latency_fields()
361 radeon_encoder->audio->write_latency_fields(encoder, connector, mode); in radeon_audio_write_latency_fields()
369 if (radeon_encoder->audio && radeon_encoder->audio->get_pin) in radeon_audio_get_pin()
370 return radeon_encoder->audio->get_pin(rdev); in radeon_audio_get_pin()
379 if (radeon_encoder->audio && radeon_encoder->audio->select_pin) in radeon_audio_select_pin()
380 radeon_encoder->audio->select_pin(encoder); in radeon_audio_select_pin()
406 radeon_encoder->audio = rdev->audio.dp_funcs; in radeon_audio_detect()
408 radeon_encoder->audio = rdev->audio.hdmi_funcs; in radeon_audio_detect()
410 radeon_encoder->audio = rdev->audio.hdmi_funcs; in radeon_audio_detect()
431 if (!rdev->audio.enabled) in radeon_audio_fini()
434 for (i = 0; i < rdev->audio.num_pins; i++) in radeon_audio_fini()
435 radeon_audio_enable(rdev, &rdev->audio.pin[i], 0); in radeon_audio_fini()
437 rdev->audio.enabled = false; in radeon_audio_fini()
446 if (radeon_encoder->audio && radeon_encoder->audio->set_dto) in radeon_audio_set_dto()
447 radeon_encoder->audio->set_dto(rdev, crtc, clock); in radeon_audio_set_dto()
483 if (dig && dig->afmt && radeon_encoder->audio && in radeon_audio_set_avi_packet()
484 radeon_encoder->audio->set_avi_packet) in radeon_audio_set_avi_packet()
485 radeon_encoder->audio->set_avi_packet(rdev, dig->afmt->offset, in radeon_audio_set_avi_packet()
520 pr_warn("Calculated ACR N value is too small. You may experience audio problems.\n"); in radeon_audio_calc_cts()
522 pr_warn("Calculated ACR N value is too large. You may experience audio problems.\n"); in radeon_audio_calc_cts()
576 if (radeon_encoder->audio && radeon_encoder->audio->update_acr) in radeon_audio_update_acr()
577 radeon_encoder->audio->update_acr(encoder, dig->afmt->offset, acr); in radeon_audio_update_acr()
588 if (radeon_encoder->audio && radeon_encoder->audio->set_vbi_packet) in radeon_audio_set_vbi_packet()
589 radeon_encoder->audio->set_vbi_packet(encoder, dig->afmt->offset); in radeon_audio_set_vbi_packet()
606 if (radeon_encoder->audio && radeon_encoder->audio->set_color_depth) in radeon_hdmi_set_color_depth()
607 radeon_encoder->audio->set_color_depth(encoder, dig->afmt->offset, bpc); in radeon_hdmi_set_color_depth()
618 if (radeon_encoder->audio && radeon_encoder->audio->set_audio_packet) in radeon_audio_set_audio_packet()
619 radeon_encoder->audio->set_audio_packet(encoder, dig->afmt->offset); in radeon_audio_set_audio_packet()
630 if (radeon_encoder->audio && radeon_encoder->audio->set_mute) in radeon_audio_set_mute()
631 radeon_encoder->audio->set_mute(encoder, dig->afmt->offset, mute); in radeon_audio_set_mute()
708 if (radeon_encoder->audio && radeon_encoder->audio->mode_set) in radeon_audio_mode_set()
709 radeon_encoder->audio->mode_set(encoder, mode); in radeon_audio_mode_set()
716 if (radeon_encoder->audio && radeon_encoder->audio->dpms) in radeon_audio_dpms()
717 radeon_encoder->audio->dpms(encoder, mode == DRM_MODE_DPMS_ON); in radeon_audio_dpms()
733 * Audio component support
739 mutex_lock(&rdev->audio.component_mutex); in radeon_audio_component_notify()
740 acomp = rdev->audio.component; in radeon_audio_component_notify()
744 mutex_unlock(&rdev->audio.component_mutex); in radeon_audio_component_notify()
760 if (!rdev->audio.enabled || !rdev->mode_info.mode_config_initialized) in radeon_audio_component_get_eld()
796 mutex_lock(&rdev->audio.component_mutex); in radeon_audio_component_bind()
799 rdev->audio.component = acomp; in radeon_audio_component_bind()
800 mutex_unlock(&rdev->audio.component_mutex); in radeon_audio_component_bind()
814 mutex_lock(&rdev->audio.component_mutex); in radeon_audio_component_unbind()
815 rdev->audio.component = NULL; in radeon_audio_component_unbind()
818 mutex_unlock(&rdev->audio.component_mutex); in radeon_audio_component_unbind()
828 if (rdev->audio.component_registered || in radeon_audio_component_init()
833 rdev->audio.component_registered = true; in radeon_audio_component_init()
838 if (rdev->audio.component_registered) { in radeon_audio_component_fini()
840 rdev->audio.component_registered = false; in radeon_audio_component_fini()