Home
last modified time | relevance | path

Searched refs:afmt (Results 1 – 25 of 40) sorted by relevance

12

/linux/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_afmt.h30 #define DCN30_AFMT_FROM_AFMT(afmt)\ argument
31 container_of(afmt, struct dcn30_afmt, base)
103 struct afmt;
108 struct afmt *afmt);
111 struct afmt *afmt,
116 struct afmt *afmt,
120 struct afmt *afmt);
123 struct afmt *afmt);
126 struct afmt *afmt);
129 struct afmt *afmt);
[all …]
H A Ddcn30_afmt.c48 struct afmt *afmt) in afmt3_setup_hdmi_audio() argument
50 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_setup_hdmi_audio()
52 if (afmt->funcs->afmt_poweron) in afmt3_setup_hdmi_audio()
53 afmt->funcs->afmt_poweron(afmt); in afmt3_setup_hdmi_audio()
120 struct afmt *afmt, in afmt3_se_audio_setup() argument
124 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_se_audio_setup()
142 if (afmt->funcs->afmt_poweron == NULL) in afmt3_se_audio_setup()
147 struct afmt *afmt, in afmt3_audio_mute_control() argument
150 struct dcn30_afmt *afmt3 = DCN30_AFMT_FROM_AFMT(afmt); in afmt3_audio_mute_control()
151 if (mute && afmt->funcs->afmt_powerdown) in afmt3_audio_mute_control()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dcn31/
H A Ddcn31_afmt.c57 void afmt31_powerdown(struct afmt *afmt) in afmt31_powerdown() argument
59 struct dcn31_afmt *afmt31 = DCN31_AFMT_FROM_AFMT(afmt); in afmt31_powerdown()
61 if (afmt->ctx->dc->debug.enable_mem_low_power.bits.afmt == false) in afmt31_powerdown()
67 void afmt31_poweron(struct afmt *afmt) in afmt31_poweron() argument
69 struct dcn31_afmt *afmt31 = DCN31_AFMT_FROM_AFMT(afmt); in afmt31_poweron()
71 if (afmt->ctx->dc->debug.enable_mem_low_power.bits.afmt == false) in afmt31_poweron()
H A Ddcn31_afmt.h30 #define DCN31_AFMT_FROM_AFMT(afmt)\ argument
31 container_of(afmt, struct dcn31_afmt, base)
107 struct afmt base;
114 struct afmt *afmt);
117 struct afmt *afmt);
/linux/drivers/gpu/drm/radeon/
H A Devergreen_hdmi.c409 if (!dig || !dig->afmt) in evergreen_hdmi_enable()
416 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable()
421 WREG32_OR(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable()
424 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable()
427 WREG32_AND(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable()
431 WREG32_AND(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable()
433 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, 0); in evergreen_hdmi_enable()
436 dig->afmt->enabled = enable; in evergreen_hdmi_enable()
439 enable ? "En" : "Dis", dig->afmt->offset, radeon_encoder->encoder_id); in evergreen_hdmi_enable()
450 if (!dig || !dig->afmt) in evergreen_dp_enable()
[all …]
H A Dradeon_audio.c483 if (dig && dig->afmt && radeon_encoder->audio && in radeon_audio_set_avi_packet()
485 radeon_encoder->audio->set_avi_packet(rdev, dig->afmt->offset, in radeon_audio_set_avi_packet()
573 if (!dig || !dig->afmt) in radeon_audio_update_acr()
577 radeon_encoder->audio->update_acr(encoder, dig->afmt->offset, acr); in radeon_audio_update_acr()
585 if (!dig || !dig->afmt) in radeon_audio_set_vbi_packet()
589 radeon_encoder->audio->set_vbi_packet(encoder, dig->afmt->offset); in radeon_audio_set_vbi_packet()
598 if (!dig || !dig->afmt) in radeon_hdmi_set_color_depth()
607 radeon_encoder->audio->set_color_depth(encoder, dig->afmt->offset, bpc); in radeon_hdmi_set_color_depth()
615 if (!dig || !dig->afmt) in radeon_audio_set_audio_packet()
619 radeon_encoder->audio->set_audio_packet(encoder, dig->afmt->offset); in radeon_audio_set_audio_packet()
[all …]
H A Ddce6_afmt.c118 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_select_pin()
121 WREG32(AFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, in dce6_afmt_select_pin()
134 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_write_latency_fields()
162 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_hdmi_write_speaker_allocation()
187 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_dp_write_speaker_allocation()
226 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_write_sad_regs()
H A Dradeon_display.c1509 rdev->mode_info.afmt[i] = NULL; in radeon_afmt_init()
1542 rdev->mode_info.afmt[i] = kzalloc_obj(struct radeon_afmt); in radeon_afmt_init()
1543 if (rdev->mode_info.afmt[i]) { in radeon_afmt_init()
1544 rdev->mode_info.afmt[i]->offset = eg_offsets[i]; in radeon_afmt_init()
1545 rdev->mode_info.afmt[i]->id = i; in radeon_afmt_init()
1550 rdev->mode_info.afmt[0] = kzalloc_obj(struct radeon_afmt); in radeon_afmt_init()
1551 if (rdev->mode_info.afmt[0]) { in radeon_afmt_init()
1552 rdev->mode_info.afmt[0]->offset = DCE3_HDMI_OFFSET0; in radeon_afmt_init()
1553 rdev->mode_info.afmt[0]->id = 0; in radeon_afmt_init()
1555 rdev->mode_info.afmt[1] = kzalloc_obj(struct radeon_afmt); in radeon_afmt_init()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Ddce_v10_0.c1216 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_afmt_audio_select_pin()
1219 tmp = RREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset); in dce_v10_0_afmt_audio_select_pin()
1220 tmp = REG_SET_FIELD(tmp, AFMT_AUDIO_SRC_CONTROL, AFMT_AUDIO_SRC_SELECT, dig->afmt->pin->id); in dce_v10_0_afmt_audio_select_pin()
1221 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, tmp); in dce_v10_0_afmt_audio_select_pin()
1237 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_latency_fields()
1267 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_latency_fields()
1284 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_speaker_allocation()
1308 tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_speaker_allocation()
1321 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_speaker_allocation()
1354 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_sad_regs()
[all …]
H A Ddce_v6_0.c1188 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v6_0_audio_select_pin()
1191 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, in dce_v6_0_audio_select_pin()
1193 dig->afmt->pin->id)); in dce_v6_0_audio_select_pin()
1237 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_latency_fields()
1275 tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_speaker_allocation()
1296 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_speaker_allocation()
1330 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v6_0_audio_write_sad_regs()
1333 offset = dig->afmt->pin->offset; in dce_v6_0_audio_write_sad_regs()
1470 tmp = RREG32(mmHDMI_VBI_PACKET_CONTROL + dig->afmt->offset); in dce_v6_0_audio_set_vbi_packet()
1474 WREG32(mmHDMI_VBI_PACKET_CONTROL + dig->afmt->offset, tmp); in dce_v6_0_audio_set_vbi_packet()
[all …]
H A Ddce_v8_0.c1171 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_afmt_audio_select_pin()
1174 offset = dig->afmt->offset; in dce_v8_0_afmt_audio_select_pin()
1177 (dig->afmt->pin->id << AFMT_AUDIO_SRC_CONTROL__AFMT_AUDIO_SRC_SELECT__SHIFT)); in dce_v8_0_afmt_audio_select_pin()
1192 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_latency_fields()
1195 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_latency_fields()
1255 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_speaker_allocation()
1258 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_speaker_allocation()
1323 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_sad_regs()
1326 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_sad_regs()
1464 uint32_t offset = dig->afmt->offset; in dce_v8_0_afmt_update_ACR()
[all …]
/linux/sound/soc/intel/catpt/
H A Dpcm.c374 struct catpt_audio_format afmt; in catpt_dai_hw_params() local
383 memset(&afmt, 0, sizeof(afmt)); in catpt_dai_hw_params()
384 afmt.sample_rate = params_rate(params); in catpt_dai_hw_params()
385 afmt.bit_depth = params_physical_width(params); in catpt_dai_hw_params()
386 afmt.valid_bit_depth = params_width(params); in catpt_dai_hw_params()
387 afmt.num_channels = params_channels(params); in catpt_dai_hw_params()
388 afmt.channel_config = catpt_get_channel_config(afmt.num_channels); in catpt_dai_hw_params()
389 afmt.channel_map = catpt_get_channel_map(afmt.channel_config); in catpt_dai_hw_params()
390 afmt.interleaving = CATPT_INTERLEAVING_PER_CHANNEL; in catpt_dai_hw_params()
404 &afmt, &rinfo, in catpt_dai_hw_params()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn303/
H A Ddcn303_resource.c350 static struct afmt *dcn303_afmt_create(struct dc_context *ctx, uint32_t inst) in dcn303_afmt_create()
413 struct afmt *afmt; in dcn303_stream_encoder_create() local
426 afmt = dcn303_afmt_create(ctx, afmt_inst); in dcn303_stream_encoder_create()
428 if (!enc1 || !vpg || !afmt) { in dcn303_stream_encoder_create()
431 kfree(afmt); in dcn303_stream_encoder_create()
435 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn303_stream_encoder_create()
973 if (pool->stream_enc[i]->afmt != NULL) { in dcn303_resource_destruct()
974 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn303_resource_destruct()
975 pool->stream_enc[i]->afmt = NULL; in dcn303_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn302/
H A Ddcn302_resource.c360 static struct afmt *dcn302_afmt_create(struct dc_context *ctx, uint32_t inst) in dcn302_afmt_create()
426 struct afmt *afmt; in dcn302_stream_encoder_create() local
439 afmt = dcn302_afmt_create(ctx, afmt_inst); in dcn302_stream_encoder_create()
441 if (!enc1 || !vpg || !afmt) { in dcn302_stream_encoder_create()
444 kfree(afmt); in dcn302_stream_encoder_create()
448 …dcn30_dio_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id, vpg, afmt, &stream_enc_regs[en… in dcn302_stream_encoder_create()
1029 if (pool->stream_enc[i]->afmt != NULL) { in dcn302_resource_destruct()
1030 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn302_resource_destruct()
1031 pool->stream_enc[i]->afmt = NULL; in dcn302_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn301/
H A Ddcn301_resource.c994 static struct afmt *dcn301_afmt_create( in dcn301_afmt_create()
1016 struct afmt *afmt; in dcn301_stream_encoder_create() local
1029 afmt = dcn301_afmt_create(ctx, afmt_inst); in dcn301_stream_encoder_create()
1031 if (!enc1 || !vpg || !afmt || eng_id >= ARRAY_SIZE(stream_enc_regs)) { in dcn301_stream_encoder_create()
1034 kfree(afmt); in dcn301_stream_encoder_create()
1039 eng_id, vpg, afmt, in dcn301_stream_encoder_create()
1075 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn301_destruct()
1076 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn301_destruct()
1077 pool->base.stream_enc[i]->afmt = NULL; in dcn301_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn316/
H A Ddcn316_resource.c898 .afmt = true,
1203 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1247 struct afmt *afmt; in dcn316_stream_encoder_create() local
1260 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn316_stream_encoder_create()
1262 if (!enc1 || !vpg || !afmt) { in dcn316_stream_encoder_create()
1265 kfree(afmt); in dcn316_stream_encoder_create()
1270 eng_id, vpg, afmt, in dcn316_stream_encoder_create()
1379 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn316_resource_destruct()
1380 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn316_resource_destruct()
1381 pool->base.stream_enc[i]->afmt = NULL; in dcn316_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn314/
H A Ddcn314_resource.c923 .afmt = true,
1269 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1311 struct afmt *afmt; in dcn314_stream_encoder_create() local
1324 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn314_stream_encoder_create()
1326 if (!enc1 || !vpg || !afmt) { in dcn314_stream_encoder_create()
1329 kfree(afmt); in dcn314_stream_encoder_create()
1334 eng_id, vpg, afmt, in dcn314_stream_encoder_create()
1442 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn314_resource_destruct()
1443 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn314_resource_destruct()
1444 pool->base.stream_enc[i]->afmt = NULL; in dcn314_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn35/
H A Ddcn35_resource.c761 .afmt = true,
1243 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1301 struct afmt *afmt; in dcn35_stream_encoder_create() local
1314 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn35_stream_encoder_create()
1316 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1319 kfree(afmt); in dcn35_stream_encoder_create()
1332 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1455 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn35_resource_destruct()
1456 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn35_resource_destruct()
1457 pool->base.stream_enc[i]->afmt = NULL; in dcn35_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn31/
H A Ddcn31_resource.c903 .afmt = true,
1211 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1253 struct afmt *afmt; in dcn31_stream_encoder_create() local
1266 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn31_stream_encoder_create()
1268 if (!enc1 || !vpg || !afmt) { in dcn31_stream_encoder_create()
1271 kfree(afmt); in dcn31_stream_encoder_create()
1276 eng_id, vpg, afmt, in dcn31_stream_encoder_create()
1383 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn31_resource_destruct()
1384 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn31_resource_destruct()
1385 pool->base.stream_enc[i]->afmt = NULL; in dcn31_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn351/
H A Ddcn351_resource.c741 .afmt = true,
1223 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1281 struct afmt *afmt; in dcn35_stream_encoder_create() local
1294 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn35_stream_encoder_create()
1296 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1299 kfree(afmt); in dcn35_stream_encoder_create()
1312 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1435 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn351_resource_destruct()
1436 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn351_resource_destruct()
1437 pool->base.stream_enc[i]->afmt = NULL; in dcn351_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn315/
H A Ddcn315_resource.c903 .afmt = true,
1210 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1252 struct afmt *afmt; in dcn315_stream_encoder_create() local
1267 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn315_stream_encoder_create()
1269 if (!enc1 || !vpg || !afmt) { in dcn315_stream_encoder_create()
1272 kfree(afmt); in dcn315_stream_encoder_create()
1277 eng_id, vpg, afmt, in dcn315_stream_encoder_create()
1384 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn315_resource_destruct()
1385 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn315_resource_destruct()
1386 pool->base.stream_enc[i]->afmt = NULL; in dcn315_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn36/
H A Ddcn36_resource.c748 .afmt = true,
1230 static struct afmt *dcn31_afmt_create( in dcn31_afmt_create()
1288 struct afmt *afmt; in dcn35_stream_encoder_create() local
1301 afmt = dcn31_afmt_create(ctx, afmt_inst); in dcn35_stream_encoder_create()
1303 if (!enc1 || !vpg || !afmt) { in dcn35_stream_encoder_create()
1306 kfree(afmt); in dcn35_stream_encoder_create()
1319 eng_id, vpg, afmt, in dcn35_stream_encoder_create()
1442 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn36_resource_destruct()
1443 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn36_resource_destruct()
1444 pool->base.stream_enc[i]->afmt = NULL; in dcn36_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn321/
H A Ddcn321_resource.c1162 static struct afmt *dcn321_afmt_create( in dcn321_afmt_create()
1218 struct afmt *afmt; in dcn321_stream_encoder_create() local
1231 afmt = dcn321_afmt_create(ctx, afmt_inst); in dcn321_stream_encoder_create()
1233 if (!enc1 || !vpg || !afmt) { in dcn321_stream_encoder_create()
1236 kfree(afmt); in dcn321_stream_encoder_create()
1249 eng_id, vpg, afmt, in dcn321_stream_encoder_create()
1372 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn321_resource_destruct()
1373 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn321_resource_destruct()
1374 pool->base.stream_enc[i]->afmt = NULL; in dcn321_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn401/
H A Ddcn401_resource.c1158 static struct afmt *dcn401_afmt_create( in dcn401_afmt_create()
1213 struct afmt *afmt; in dcn401_stream_encoder_create() local
1226 afmt = dcn401_afmt_create(ctx, afmt_inst); in dcn401_stream_encoder_create()
1228 if (!enc1 || !vpg || !afmt || eng_id >= ARRAY_SIZE(stream_enc_regs)) { in dcn401_stream_encoder_create()
1231 kfree(afmt); in dcn401_stream_encoder_create()
1243 eng_id, vpg, afmt, in dcn401_stream_encoder_create()
1397 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn401_resource_destruct()
1398 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn401_resource_destruct()
1399 pool->base.stream_enc[i]->afmt = NULL; in dcn401_resource_destruct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn30/
H A Ddcn30_resource.c1023 static struct afmt *dcn30_afmt_create( in dcn30_afmt_create()
1045 struct afmt *afmt; in dcn30_stream_encoder_create() local
1058 afmt = dcn30_afmt_create(ctx, afmt_inst); in dcn30_stream_encoder_create()
1060 if (!enc1 || !vpg || !afmt) { in dcn30_stream_encoder_create()
1063 kfree(afmt); in dcn30_stream_encoder_create()
1068 eng_id, vpg, afmt, in dcn30_stream_encoder_create()
1104 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn30_resource_destruct()
1105 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn30_resource_destruct()
1106 pool->base.stream_enc[i]->afmt = NULL; in dcn30_resource_destruct()

12