Home
last modified time | relevance | path

Searched refs:sad_count (Results 1 – 17 of 17) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_audio.h51 struct cea_sad *sads, int sad_count);
53 u8 *sadb, int sad_count);
85 struct cea_sad *sads, int sad_count);
87 u8 *sadb, int sad_count);
89 u8 *sadb, int sad_count);
Ddce3_1_afmt.c31 u8 *sadb, int sad_count) in dce3_2_afmt_hdmi_write_speaker_allocation() argument
41 if (sad_count) in dce3_2_afmt_hdmi_write_speaker_allocation()
49 u8 *sadb, int sad_count) in dce3_2_afmt_dp_write_speaker_allocation() argument
59 if (sad_count) in dce3_2_afmt_dp_write_speaker_allocation()
67 struct cea_sad *sads, int sad_count) in dce3_2_afmt_write_sad_regs() argument
92 for (j = 0; j < sad_count; j++) { in dce3_2_afmt_write_sad_regs()
Ddce6_afmt.h38 struct cea_sad *sads, int sad_count);
40 u8 *sadb, int sad_count);
42 u8 *sadb, int sad_count);
Devergreen_hdmi.h42 struct cea_sad *sads, int sad_count);
53 u8 *sadb, int sad_count);
55 u8 *sadb, int sad_count);
Dradeon_audio.c302 int sad_count; in radeon_audio_write_sad_regs() local
307 sad_count = drm_edid_to_sad(radeon_connector_edid(connector), &sads); in radeon_audio_write_sad_regs()
308 if (sad_count < 0) in radeon_audio_write_sad_regs()
309 DRM_ERROR("Couldn't read SADs: %d\n", sad_count); in radeon_audio_write_sad_regs()
310 if (sad_count <= 0) in radeon_audio_write_sad_regs()
315 radeon_encoder->audio->write_sad_regs(encoder, sads, sad_count); in radeon_audio_write_sad_regs()
325 int sad_count; in radeon_audio_write_speaker_allocation() local
330 sad_count = drm_edid_to_speaker_allocation(radeon_connector_edid(connector), in radeon_audio_write_speaker_allocation()
332 if (sad_count < 0) { in radeon_audio_write_speaker_allocation()
334 sad_count); in radeon_audio_write_speaker_allocation()
[all …]
Ddce6_afmt.c154 u8 *sadb, int sad_count) in dce6_afmt_hdmi_write_speaker_allocation() argument
170 if (sad_count) in dce6_afmt_hdmi_write_speaker_allocation()
179 u8 *sadb, int sad_count) in dce6_afmt_dp_write_speaker_allocation() argument
195 if (sad_count) in dce6_afmt_dp_write_speaker_allocation()
204 struct cea_sad *sads, int sad_count) in dce6_afmt_write_sad_regs() argument
234 for (j = 0; j < sad_count; j++) { in dce6_afmt_write_sad_regs()
Devergreen_hdmi.c121 u8 *sadb, int sad_count) in dce4_afmt_hdmi_write_speaker_allocation() argument
131 if (sad_count) in dce4_afmt_hdmi_write_speaker_allocation()
139 u8 *sadb, int sad_count) in dce4_afmt_dp_write_speaker_allocation() argument
149 if (sad_count) in dce4_afmt_dp_write_speaker_allocation()
157 struct cea_sad *sads, int sad_count) in evergreen_hdmi_write_sad_regs() argument
182 for (j = 0; j < sad_count; j++) { in evergreen_hdmi_write_sad_regs()
/linux-6.1.9/sound/pci/hda/
Dhda_eld.c245 e->sad_count = GRAB_BITS(buf, 5, 4, 4); in snd_hdmi_parse_eld()
265 for (i = 0; i < e->sad_count; i++) { in snd_hdmi_parse_eld()
410 for (i = 0; i < e->sad_count; i++) in snd_hdmi_show_eld()
488 snd_iprintf(buffer, "sad_count\t\t%d\n", e->sad_count); in snd_hdmi_print_eld_info()
490 for (i = 0; i < e->sad_count; i++) in snd_hdmi_print_eld_info()
529 e->sad_count = val; in snd_hdmi_write_eld_info()
551 if (n >= e->sad_count) in snd_hdmi_write_eld_info()
552 e->sad_count = n + 1; in snd_hdmi_write_eld_info()
576 for (i = 0; i < e->sad_count; i++) { in snd_hdmi_eld_update_pcm_info()
Dhda_local.h688 int sad_count; member
Dpatch_hdmi.c1515 if (!eld->eld_valid || eld->eld_size <= 0 || eld->info.sad_count <= 0) { in update_eld()
/linux-6.1.9/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_helpers.c63 int sad_count = -1; in dm_helpers_parse_edid_caps() local
90 sad_count = drm_edid_to_sad((struct edid *) edid->raw_edid, &sads); in dm_helpers_parse_edid_caps()
91 if (sad_count <= 0) in dm_helpers_parse_edid_caps()
94 …edid_caps->audio_mode_count = sad_count < DC_MAX_AUDIO_DESC_COUNT ? sad_count : DC_MAX_AUDIO_DESC_… in dm_helpers_parse_edid_caps()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Ddce_v6_0.c1184 int sad_count; in dce_v6_0_audio_write_speaker_allocation() local
1201 sad_count = drm_edid_to_speaker_allocation(amdgpu_connector_edid(connector), &sadb); in dce_v6_0_audio_write_speaker_allocation()
1202 if (sad_count < 0) { in dce_v6_0_audio_write_speaker_allocation()
1203 DRM_ERROR("Couldn't read Speaker Allocation Data Block: %d\n", sad_count); in dce_v6_0_audio_write_speaker_allocation()
1204 sad_count = 0; in dce_v6_0_audio_write_speaker_allocation()
1222 if (sad_count) in dce_v6_0_audio_write_speaker_allocation()
1245 int i, sad_count; in dce_v6_0_audio_write_sad_regs() local
1276 sad_count = drm_edid_to_sad(amdgpu_connector_edid(connector), &sads); in dce_v6_0_audio_write_sad_regs()
1277 if (sad_count < 0) in dce_v6_0_audio_write_sad_regs()
1278 DRM_ERROR("Couldn't read SADs: %d\n", sad_count); in dce_v6_0_audio_write_sad_regs()
[all …]
Ddce_v8_0.c1237 int sad_count; in dce_v8_0_audio_write_speaker_allocation() local
1258 sad_count = drm_edid_to_speaker_allocation(amdgpu_connector_edid(connector), &sadb); in dce_v8_0_audio_write_speaker_allocation()
1259 if (sad_count < 0) { in dce_v8_0_audio_write_speaker_allocation()
1260 DRM_ERROR("Couldn't read Speaker Allocation Data Block: %d\n", sad_count); in dce_v8_0_audio_write_speaker_allocation()
1261 sad_count = 0; in dce_v8_0_audio_write_speaker_allocation()
1270 if (sad_count) in dce_v8_0_audio_write_speaker_allocation()
1290 int i, sad_count; in dce_v8_0_audio_write_sad_regs() local
1326 sad_count = drm_edid_to_sad(amdgpu_connector_edid(connector), &sads); in dce_v8_0_audio_write_sad_regs()
1327 if (sad_count < 0) in dce_v8_0_audio_write_sad_regs()
1328 DRM_ERROR("Couldn't read SADs: %d\n", sad_count); in dce_v8_0_audio_write_sad_regs()
[all …]
Ddce_v10_0.c1284 int sad_count; in dce_v10_0_audio_write_speaker_allocation() local
1303 sad_count = drm_edid_to_speaker_allocation(amdgpu_connector_edid(connector), &sadb); in dce_v10_0_audio_write_speaker_allocation()
1304 if (sad_count < 0) { in dce_v10_0_audio_write_speaker_allocation()
1305 DRM_ERROR("Couldn't read Speaker Allocation Data Block: %d\n", sad_count); in dce_v10_0_audio_write_speaker_allocation()
1306 sad_count = 0; in dce_v10_0_audio_write_speaker_allocation()
1317 if (sad_count) in dce_v10_0_audio_write_speaker_allocation()
1339 int i, sad_count; in dce_v10_0_audio_write_sad_regs() local
1373 sad_count = drm_edid_to_sad(amdgpu_connector_edid(connector), &sads); in dce_v10_0_audio_write_sad_regs()
1374 if (sad_count < 0) in dce_v10_0_audio_write_sad_regs()
1375 DRM_ERROR("Couldn't read SADs: %d\n", sad_count); in dce_v10_0_audio_write_sad_regs()
[all …]
Ddce_v11_0.c1310 int sad_count; in dce_v11_0_audio_write_speaker_allocation() local
1329 sad_count = drm_edid_to_speaker_allocation(amdgpu_connector_edid(connector), &sadb); in dce_v11_0_audio_write_speaker_allocation()
1330 if (sad_count < 0) { in dce_v11_0_audio_write_speaker_allocation()
1331 DRM_ERROR("Couldn't read Speaker Allocation Data Block: %d\n", sad_count); in dce_v11_0_audio_write_speaker_allocation()
1332 sad_count = 0; in dce_v11_0_audio_write_speaker_allocation()
1343 if (sad_count) in dce_v11_0_audio_write_speaker_allocation()
1365 int i, sad_count; in dce_v11_0_audio_write_sad_regs() local
1399 sad_count = drm_edid_to_sad(amdgpu_connector_edid(connector), &sads); in dce_v11_0_audio_write_sad_regs()
1400 if (sad_count < 0) in dce_v11_0_audio_write_sad_regs()
1401 DRM_ERROR("Couldn't read SADs: %d\n", sad_count); in dce_v11_0_audio_write_sad_regs()
[all …]
/linux-6.1.9/drivers/gpu/drm/mediatek/
Dmtk_dp.c79 int sad_count; member
1634 if (mtk_dp->info.audio_cur_cfg.sad_count <= 0) { in mtk_dp_edid_parse_audio_capabilities()
2008 audio_caps->sad_count = drm_edid_to_sad(new_edid, &sads); in mtk_dp_get_edid()
/linux-6.1.9/drivers/gpu/drm/
Ddrm_edid.c5402 int sad_count; in drm_edid_to_eld() local
5407 sad_count = min(len / 3, 15 - total_sad_count); in drm_edid_to_eld()
5408 if (sad_count >= 1) in drm_edid_to_eld()
5410 data, sad_count * 3); in drm_edid_to_eld()
5411 total_sad_count += sad_count; in drm_edid_to_eld()