Lines Matching +full:iec +full:- +full:60958
88 dev_err(rdev->dev, "Unknown bits per sample 0x%x, using 16\n", in r600_audio_status()
103 /* iec 60958 status bits */ in r600_audio_status()
106 /* iec 60958 category code */ in r600_audio_status()
124 if (rdev->audio.pin[0].channels != audio_status.channels || in r600_audio_update_hdmi()
125 rdev->audio.pin[0].rate != audio_status.rate || in r600_audio_update_hdmi()
126 rdev->audio.pin[0].bits_per_sample != audio_status.bits_per_sample || in r600_audio_update_hdmi()
127 rdev->audio.pin[0].status_bits != audio_status.status_bits || in r600_audio_update_hdmi()
128 rdev->audio.pin[0].category_code != audio_status.category_code) { in r600_audio_update_hdmi()
129 rdev->audio.pin[0] = audio_status; in r600_audio_update_hdmi()
133 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { in r600_audio_update_hdmi()
174 /* only one pin on 6xx-NI */ in r600_audio_get_pin()
175 return &rdev->audio.pin[0]; in r600_audio_get_pin()
181 struct drm_device *dev = encoder->dev; in r600_hdmi_update_acr()
182 struct radeon_device *rdev = dev->dev_private; in r600_hdmi_update_acr()
194 HDMI0_ACR_CTS_32(acr->cts_32khz), in r600_hdmi_update_acr()
197 HDMI0_ACR_N_32(acr->n_32khz), in r600_hdmi_update_acr()
201 HDMI0_ACR_CTS_44(acr->cts_44_1khz), in r600_hdmi_update_acr()
204 HDMI0_ACR_N_44(acr->n_44_1khz), in r600_hdmi_update_acr()
208 HDMI0_ACR_CTS_48(acr->cts_48khz), in r600_hdmi_update_acr()
211 HDMI0_ACR_N_48(acr->n_48khz), in r600_hdmi_update_acr()
247 struct drm_device *dev = encoder->dev; in r600_hdmi_update_audio_infoframe()
248 struct radeon_device *rdev = dev->dev_private; in r600_hdmi_update_audio_infoframe()
250 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_update_audio_infoframe()
251 uint32_t offset = dig->afmt->offset; in r600_hdmi_update_audio_infoframe()
265 struct drm_device *dev = encoder->dev; in r600_hdmi_is_audio_buffer_filled()
266 struct radeon_device *rdev = dev->dev_private; in r600_hdmi_is_audio_buffer_filled()
268 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_is_audio_buffer_filled()
269 uint32_t offset = dig->afmt->offset; in r600_hdmi_is_audio_buffer_filled()
280 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_buffer_status_changed()
283 if (!dig->afmt || !dig->afmt->enabled) in r600_hdmi_buffer_status_changed()
287 result = dig->afmt->last_buffer_filled_status != status; in r600_hdmi_buffer_status_changed()
288 dig->afmt->last_buffer_filled_status = status; in r600_hdmi_buffer_status_changed()
298 struct drm_device *dev = encoder->dev; in r600_hdmi_audio_workaround()
299 struct radeon_device *rdev = dev->dev_private; in r600_hdmi_audio_workaround()
301 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_audio_workaround()
302 uint32_t offset = dig->afmt->offset; in r600_hdmi_audio_workaround()
324 radeon_encoder = to_radeon_encoder(crtc->encoder); in r600_hdmi_audio_set_dto()
325 dig = radeon_encoder->enc_priv; in r600_hdmi_audio_set_dto()
330 if (dig->dig_encoder == 0) { in r600_hdmi_audio_set_dto()
343 struct drm_device *dev = encoder->dev; in r600_set_vbi_packet()
344 struct radeon_device *rdev = dev->dev_private; in r600_set_vbi_packet()
354 struct drm_device *dev = encoder->dev; in r600_set_audio_packet()
355 struct radeon_device *rdev = dev->dev_private; in r600_set_audio_packet()
361 HDMI0_60958_CS_UPDATE, /* allow 60958 channel status fields to be updated */ in r600_set_audio_packet()
396 struct drm_device *dev = encoder->dev; in r600_set_mute()
397 struct radeon_device *rdev = dev->dev_private; in r600_set_mute()
406 * r600_hdmi_update_audio_settings - Update audio infoframe
414 struct drm_device *dev = encoder->dev; in r600_hdmi_update_audio_settings()
415 struct radeon_device *rdev = dev->dev_private; in r600_hdmi_update_audio_settings()
417 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_update_audio_settings()
425 if (!dig->afmt || !dig->afmt->enabled) in r600_hdmi_update_audio_settings()
427 offset = dig->afmt->offset; in r600_hdmi_update_audio_settings()
472 struct drm_device *dev = encoder->dev; in r600_hdmi_enable()
473 struct radeon_device *rdev = dev->dev_private; in r600_hdmi_enable()
475 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_enable()
478 if (!dig || !dig->afmt) in r600_hdmi_enable()
485 switch (radeon_encoder->encoder_id) { in r600_hdmi_enable()
515 dev_err(rdev->dev, "Invalid encoder for HDMI: 0x%X\n", in r600_hdmi_enable()
516 radeon_encoder->encoder_id); in r600_hdmi_enable()
519 WREG32(HDMI0_CONTROL + dig->afmt->offset, hdmi); in r600_hdmi_enable()
522 if (rdev->irq.installed) { in r600_hdmi_enable()
526 radeon_irq_kms_enable_afmt(rdev, dig->afmt->id); in r600_hdmi_enable()
528 radeon_irq_kms_disable_afmt(rdev, dig->afmt->id); in r600_hdmi_enable()
531 dig->afmt->enabled = enable; in r600_hdmi_enable()
534 enable ? "En" : "Dis", dig->afmt->offset, radeon_encoder->encoder_id); in r600_hdmi_enable()