Lines Matching refs:afmt
1155 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_afmt_audio_select_pin()
1158 offset = dig->afmt->offset; in dce_v8_0_afmt_audio_select_pin()
1161 (dig->afmt->pin->id << AFMT_AUDIO_SRC_CONTROL__AFMT_AUDIO_SRC_SELECT__SHIFT)); in dce_v8_0_afmt_audio_select_pin()
1176 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_latency_fields()
1179 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_latency_fields()
1239 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_speaker_allocation()
1242 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_speaker_allocation()
1307 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_sad_regs()
1310 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_sad_regs()
1454 uint32_t offset = dig->afmt->offset; in dce_v8_0_afmt_update_ACR()
1476 uint32_t offset = dig->afmt->offset; in dce_v8_0_afmt_update_avi_infoframe()
1500 if (!dig || !dig->afmt) in dce_v8_0_audio_set_dto()
1530 if (!dig || !dig->afmt) in dce_v8_0_afmt_setmode()
1534 if (!dig->afmt->enabled) in dce_v8_0_afmt_setmode()
1537 offset = dig->afmt->offset; in dce_v8_0_afmt_setmode()
1546 dig->afmt->pin = dce_v8_0_audio_get_pin(adev); in dce_v8_0_afmt_setmode()
1547 dce_v8_0_audio_enable(adev, dig->afmt->pin, false); in dce_v8_0_afmt_setmode()
1676 dce_v8_0_audio_enable(adev, dig->afmt->pin, true); in dce_v8_0_afmt_setmode()
1686 if (!dig || !dig->afmt) in dce_v8_0_afmt_enable()
1690 if (enable && dig->afmt->enabled) in dce_v8_0_afmt_enable()
1692 if (!enable && !dig->afmt->enabled) in dce_v8_0_afmt_enable()
1695 if (!enable && dig->afmt->pin) { in dce_v8_0_afmt_enable()
1696 dce_v8_0_audio_enable(adev, dig->afmt->pin, false); in dce_v8_0_afmt_enable()
1697 dig->afmt->pin = NULL; in dce_v8_0_afmt_enable()
1700 dig->afmt->enabled = enable; in dce_v8_0_afmt_enable()
1703 enable ? "En" : "Dis", dig->afmt->offset, amdgpu_encoder->encoder_id); in dce_v8_0_afmt_enable()
1711 adev->mode_info.afmt[i] = NULL; in dce_v8_0_afmt_init()
1715 adev->mode_info.afmt[i] = kzalloc(sizeof(struct amdgpu_afmt), GFP_KERNEL); in dce_v8_0_afmt_init()
1716 if (adev->mode_info.afmt[i]) { in dce_v8_0_afmt_init()
1717 adev->mode_info.afmt[i]->offset = dig_offsets[i]; in dce_v8_0_afmt_init()
1718 adev->mode_info.afmt[i]->id = i; in dce_v8_0_afmt_init()
1722 kfree(adev->mode_info.afmt[j]); in dce_v8_0_afmt_init()
1723 adev->mode_info.afmt[j] = NULL; in dce_v8_0_afmt_init()
1736 kfree(adev->mode_info.afmt[i]); in dce_v8_0_afmt_fini()
1737 adev->mode_info.afmt[i] = NULL; in dce_v8_0_afmt_fini()
3257 dig->afmt = adev->mode_info.afmt[dig->dig_encoder]; in dce_v8_0_encoder_prepare()