Lines Matching refs:afmt

1121 	if (!dig || !dig->afmt || !dig->afmt->pin)  in dce_v6_0_audio_select_pin()
1124 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, in dce_v6_0_audio_select_pin()
1126 dig->afmt->pin->id)); in dce_v6_0_audio_select_pin()
1170 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_latency_fields()
1208 tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_speaker_allocation()
1229 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_speaker_allocation()
1311 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, eld_reg_to_type[i][0], tmp); in dce_v6_0_audio_write_sad_regs()
1400 tmp = RREG32(mmHDMI_VBI_PACKET_CONTROL + dig->afmt->offset); in dce_v6_0_audio_set_vbi_packet()
1404 WREG32(mmHDMI_VBI_PACKET_CONTROL + dig->afmt->offset, tmp); in dce_v6_0_audio_set_vbi_packet()
1417 tmp = RREG32(mmHDMI_ACR_PACKET_CONTROL + dig->afmt->offset); in dce_v6_0_audio_set_acr()
1421 WREG32(mmHDMI_ACR_PACKET_CONTROL + dig->afmt->offset, tmp); in dce_v6_0_audio_set_acr()
1423 tmp = RREG32(mmHDMI_ACR_32_0 + dig->afmt->offset); in dce_v6_0_audio_set_acr()
1425 WREG32(mmHDMI_ACR_32_0 + dig->afmt->offset, tmp); in dce_v6_0_audio_set_acr()
1426 tmp = RREG32(mmHDMI_ACR_32_1 + dig->afmt->offset); in dce_v6_0_audio_set_acr()
1428 WREG32(mmHDMI_ACR_32_1 + dig->afmt->offset, tmp); in dce_v6_0_audio_set_acr()
1430 tmp = RREG32(mmHDMI_ACR_44_0 + dig->afmt->offset); in dce_v6_0_audio_set_acr()
1432 WREG32(mmHDMI_ACR_44_0 + dig->afmt->offset, tmp); in dce_v6_0_audio_set_acr()
1433 tmp = RREG32(mmHDMI_ACR_44_1 + dig->afmt->offset); in dce_v6_0_audio_set_acr()
1435 WREG32(mmHDMI_ACR_44_1 + dig->afmt->offset, tmp); in dce_v6_0_audio_set_acr()
1437 tmp = RREG32(mmHDMI_ACR_48_0 + dig->afmt->offset); in dce_v6_0_audio_set_acr()
1439 WREG32(mmHDMI_ACR_48_0 + dig->afmt->offset, tmp); in dce_v6_0_audio_set_acr()
1440 tmp = RREG32(mmHDMI_ACR_48_1 + dig->afmt->offset); in dce_v6_0_audio_set_acr()
1442 WREG32(mmHDMI_ACR_48_1 + dig->afmt->offset, tmp); in dce_v6_0_audio_set_acr()
1472 WREG32(mmAFMT_AVI_INFO0 + dig->afmt->offset, in dce_v6_0_audio_set_avi_infoframe()
1474 WREG32(mmAFMT_AVI_INFO1 + dig->afmt->offset, in dce_v6_0_audio_set_avi_infoframe()
1476 WREG32(mmAFMT_AVI_INFO2 + dig->afmt->offset, in dce_v6_0_audio_set_avi_infoframe()
1478 WREG32(mmAFMT_AVI_INFO3 + dig->afmt->offset, in dce_v6_0_audio_set_avi_infoframe()
1481 tmp = RREG32(mmHDMI_INFOFRAME_CONTROL1 + dig->afmt->offset); in dce_v6_0_audio_set_avi_infoframe()
1485 WREG32(mmHDMI_INFOFRAME_CONTROL1 + dig->afmt->offset, tmp); in dce_v6_0_audio_set_avi_infoframe()
1530 tmp = RREG32(mmAFMT_INFOFRAME_CONTROL0 + dig->afmt->offset); in dce_v6_0_audio_set_packet()
1532 WREG32(mmAFMT_INFOFRAME_CONTROL0 + dig->afmt->offset, tmp); in dce_v6_0_audio_set_packet()
1534 tmp = RREG32(mmAFMT_60958_0 + dig->afmt->offset); in dce_v6_0_audio_set_packet()
1536 WREG32(mmAFMT_60958_0 + dig->afmt->offset, tmp); in dce_v6_0_audio_set_packet()
1538 tmp = RREG32(mmAFMT_60958_1 + dig->afmt->offset); in dce_v6_0_audio_set_packet()
1540 WREG32(mmAFMT_60958_1 + dig->afmt->offset, tmp); in dce_v6_0_audio_set_packet()
1542 tmp = RREG32(mmAFMT_60958_2 + dig->afmt->offset); in dce_v6_0_audio_set_packet()
1549 WREG32(mmAFMT_60958_2 + dig->afmt->offset, tmp); in dce_v6_0_audio_set_packet()
1551 tmp = RREG32(mmAFMT_AUDIO_PACKET_CONTROL2 + dig->afmt->offset); in dce_v6_0_audio_set_packet()
1553 WREG32(mmAFMT_AUDIO_PACKET_CONTROL2 + dig->afmt->offset, tmp); in dce_v6_0_audio_set_packet()
1555 tmp = RREG32(mmHDMI_AUDIO_PACKET_CONTROL + dig->afmt->offset); in dce_v6_0_audio_set_packet()
1558 WREG32(mmHDMI_AUDIO_PACKET_CONTROL + dig->afmt->offset, tmp); in dce_v6_0_audio_set_packet()
1560 tmp = RREG32(mmAFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset); in dce_v6_0_audio_set_packet()
1563 WREG32(mmAFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, tmp); in dce_v6_0_audio_set_packet()
1574 tmp = RREG32(mmHDMI_GC + dig->afmt->offset); in dce_v6_0_audio_set_mute()
1576 WREG32(mmHDMI_GC + dig->afmt->offset, tmp); in dce_v6_0_audio_set_mute()
1588 tmp = RREG32(mmHDMI_INFOFRAME_CONTROL0 + dig->afmt->offset); in dce_v6_0_audio_hdmi_enable()
1593 WREG32(mmHDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, tmp); in dce_v6_0_audio_hdmi_enable()
1595 tmp = RREG32(mmHDMI_INFOFRAME_CONTROL1 + dig->afmt->offset); in dce_v6_0_audio_hdmi_enable()
1597 WREG32(mmHDMI_INFOFRAME_CONTROL1 + dig->afmt->offset, tmp); in dce_v6_0_audio_hdmi_enable()
1599 tmp = RREG32(mmAFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset); in dce_v6_0_audio_hdmi_enable()
1601 WREG32(mmAFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, tmp); in dce_v6_0_audio_hdmi_enable()
1603 tmp = RREG32(mmHDMI_INFOFRAME_CONTROL0 + dig->afmt->offset); in dce_v6_0_audio_hdmi_enable()
1608 WREG32(mmHDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, tmp); in dce_v6_0_audio_hdmi_enable()
1610 tmp = RREG32(mmAFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset); in dce_v6_0_audio_hdmi_enable()
1612 WREG32(mmAFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, tmp); in dce_v6_0_audio_hdmi_enable()
1625 tmp = RREG32(mmAFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset); in dce_v6_0_audio_dp_enable()
1627 WREG32(mmAFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, tmp); in dce_v6_0_audio_dp_enable()
1629 tmp = RREG32(mmDP_SEC_TIMESTAMP + dig->afmt->offset); in dce_v6_0_audio_dp_enable()
1631 WREG32(mmDP_SEC_TIMESTAMP + dig->afmt->offset, tmp); in dce_v6_0_audio_dp_enable()
1633 tmp = RREG32(mmDP_SEC_CNTL + dig->afmt->offset); in dce_v6_0_audio_dp_enable()
1638 WREG32(mmDP_SEC_CNTL + dig->afmt->offset, tmp); in dce_v6_0_audio_dp_enable()
1640 WREG32(mmDP_SEC_CNTL + dig->afmt->offset, 0); in dce_v6_0_audio_dp_enable()
1657 if (!dig || !dig->afmt) in dce_v6_0_afmt_setmode()
1674 if (!dig->afmt->enabled) in dce_v6_0_afmt_setmode()
1677 dig->afmt->pin = dce_v6_0_audio_get_pin(adev); in dce_v6_0_afmt_setmode()
1678 if (!dig->afmt->pin) in dce_v6_0_afmt_setmode()
1687 dce_v6_0_audio_enable(adev, dig->afmt->pin, false); in dce_v6_0_afmt_setmode()
1711 dce_v6_0_audio_enable(adev, dig->afmt->pin, true); in dce_v6_0_afmt_setmode()
1721 if (!dig || !dig->afmt) in dce_v6_0_afmt_enable()
1725 if (enable && dig->afmt->enabled) in dce_v6_0_afmt_enable()
1728 if (!enable && !dig->afmt->enabled) in dce_v6_0_afmt_enable()
1731 if (!enable && dig->afmt->pin) { in dce_v6_0_afmt_enable()
1732 dce_v6_0_audio_enable(adev, dig->afmt->pin, false); in dce_v6_0_afmt_enable()
1733 dig->afmt->pin = NULL; in dce_v6_0_afmt_enable()
1736 dig->afmt->enabled = enable; in dce_v6_0_afmt_enable()
1739 enable ? "En" : "Dis", dig->afmt->offset, amdgpu_encoder->encoder_id); in dce_v6_0_afmt_enable()
1747 adev->mode_info.afmt[i] = NULL; in dce_v6_0_afmt_init()
1751 adev->mode_info.afmt[i] = kzalloc(sizeof(struct amdgpu_afmt), GFP_KERNEL); in dce_v6_0_afmt_init()
1752 if (adev->mode_info.afmt[i]) { in dce_v6_0_afmt_init()
1753 adev->mode_info.afmt[i]->offset = dig_offsets[i]; in dce_v6_0_afmt_init()
1754 adev->mode_info.afmt[i]->id = i; in dce_v6_0_afmt_init()
1757 kfree(adev->mode_info.afmt[j]); in dce_v6_0_afmt_init()
1758 adev->mode_info.afmt[j] = NULL; in dce_v6_0_afmt_init()
1772 kfree(adev->mode_info.afmt[i]); in dce_v6_0_afmt_fini()
1773 adev->mode_info.afmt[i] = NULL; in dce_v6_0_afmt_fini()
3167 dig->afmt = adev->mode_info.afmt[dig->dig_encoder]; in dce_v6_0_encoder_prepare()