/Linux-v4.19/sound/core/ |
D | pcm_drm_eld.c | 34 const u8 *sad, *eld = rule->private; in eld_limit_rates() local 36 sad = drm_eld_sad(eld); in eld_limit_rates() 40 for (i = drm_eld_sad_count(eld); i > 0; i--, sad += 3) { in eld_limit_rates() 63 const u8 *sad, *eld = rule->private; in eld_limit_channels() local 65 sad = drm_eld_sad(eld); in eld_limit_channels() 75 for (i = drm_eld_sad_count(eld); i > 0; i--, sad += 3) in eld_limit_channels() 83 int snd_pcm_hw_constraint_eld(struct snd_pcm_runtime *runtime, void *eld) in snd_pcm_hw_constraint_eld() argument 88 eld_limit_rates, eld, in snd_pcm_hw_constraint_eld() 94 eld_limit_channels, eld, in snd_pcm_hw_constraint_eld()
|
/Linux-v4.19/include/drm/ |
D | drm_edid.h | 372 static inline int drm_eld_mnl(const uint8_t *eld) in drm_eld_mnl() argument 374 return (eld[DRM_ELD_CEA_EDID_VER_MNL] & DRM_ELD_MNL_MASK) >> DRM_ELD_MNL_SHIFT; in drm_eld_mnl() 381 static inline const uint8_t *drm_eld_sad(const uint8_t *eld) in drm_eld_sad() argument 385 ver = (eld[DRM_ELD_VER] & DRM_ELD_VER_MASK) >> DRM_ELD_VER_SHIFT; in drm_eld_sad() 389 mnl = drm_eld_mnl(eld); in drm_eld_sad() 393 return eld + DRM_ELD_CEA_SAD(mnl, 0); in drm_eld_sad() 400 static inline int drm_eld_sad_count(const uint8_t *eld) in drm_eld_sad_count() argument 402 return (eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_SAD_COUNT_MASK) >> in drm_eld_sad_count() 413 static inline int drm_eld_calc_baseline_block_size(const uint8_t *eld) in drm_eld_calc_baseline_block_size() argument 416 drm_eld_mnl(eld) + drm_eld_sad_count(eld) * 3; in drm_eld_calc_baseline_block_size() [all …]
|
D | intel_lpe_audio.h | 35 u8 eld[HDMI_MAX_ELD_BYTES]; member
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | intel_audio.c | 216 const u8 *eld = connector->eld; in intel_eld_uptodate() local 230 for (i = 0; i < drm_eld_size(eld) / 4; i++) in intel_eld_uptodate() 231 if (I915_READ(reg_edid) != *((const u32 *)eld + i)) in intel_eld_uptodate() 264 const u8 *eld = connector->eld; in g4x_audio_codec_enable() local 269 DRM_DEBUG_KMS("Enable audio codec, %u bytes ELD\n", drm_eld_size(eld)); in g4x_audio_codec_enable() 288 len = min(drm_eld_size(eld) / 4, len); in g4x_audio_codec_enable() 291 I915_WRITE(G4X_HDMIW_HDMIEDID, *((const u32 *)eld + i)); in g4x_audio_codec_enable() 439 const u8 *eld = connector->eld; in hsw_audio_codec_enable() local 444 pipe_name(pipe), drm_eld_size(eld)); in hsw_audio_codec_enable() 467 len = min(drm_eld_size(eld), 84); in hsw_audio_codec_enable() [all …]
|
D | intel_lpe_audio.c | 317 const void *eld, int ls_clock, bool dp_output) in intel_lpe_audio_notify() argument 334 if (eld != NULL) { in intel_lpe_audio_notify() 335 memcpy(ppdata->eld, eld, HDMI_MAX_ELD_BYTES); in intel_lpe_audio_notify() 344 memset(ppdata->eld, 0, HDMI_MAX_ELD_BYTES); in intel_lpe_audio_notify()
|
/Linux-v4.19/sound/pci/hda/ |
D | patch_hdmi.c | 331 struct hdmi_eld *eld; in hdmi_eld_ctl_info() local 344 eld = &per_pin->sink_eld; in hdmi_eld_ctl_info() 345 uinfo->count = eld->eld_valid ? eld->eld_size : 0; in hdmi_eld_ctl_info() 358 struct hdmi_eld *eld; in hdmi_eld_ctl_get() local 372 eld = &per_pin->sink_eld; in hdmi_eld_ctl_get() 373 if (eld->eld_size > ARRAY_SIZE(ucontrol->value.bytes.data) || in hdmi_eld_ctl_get() 374 eld->eld_size > ELD_MAX_SIZE) { in hdmi_eld_ctl_get() 382 if (eld->eld_valid) in hdmi_eld_ctl_get() 383 memcpy(ucontrol->value.bytes.data, eld->eld_buffer, in hdmi_eld_ctl_get() 384 eld->eld_size); in hdmi_eld_ctl_get() [all …]
|
D | hda_eld.c | 455 void snd_hdmi_print_eld_info(struct hdmi_eld *eld, in snd_hdmi_print_eld_info() argument 458 struct parsed_hdmi_eld *e = &eld->info; in snd_hdmi_print_eld_info() 476 snd_iprintf(buffer, "monitor_present\t\t%d\n", eld->monitor_present); in snd_hdmi_print_eld_info() 477 snd_iprintf(buffer, "eld_valid\t\t%d\n", eld->eld_valid); in snd_hdmi_print_eld_info() 478 if (!eld->eld_valid) in snd_hdmi_print_eld_info() 503 void snd_hdmi_write_eld_info(struct hdmi_eld *eld, in snd_hdmi_write_eld_info() argument 506 struct parsed_hdmi_eld *e = &eld->info; in snd_hdmi_write_eld_info() 522 eld->monitor_present = val; in snd_hdmi_write_eld_info() 524 eld->eld_valid = val; in snd_hdmi_write_eld_info()
|
/Linux-v4.19/sound/soc/codecs/ |
D | hdac_hdmi.c | 97 struct hdac_hdmi_eld eld; member 292 void *eld) in hdac_hdmi_eld_limit_formats() argument 296 const u8 *sad, *eld_buf = eld; in hdac_hdmi_eld_limit_formats() 358 ca = snd_hdac_channel_allocation(hdev, port->eld.info.spk_alloc, in hdac_hdmi_setup_audio_infoframe() 367 eld_buf = port->eld.eld_buffer; in hdac_hdmi_setup_audio_infoframe() 462 if ((!port->eld.monitor_present) || (!port->eld.eld_valid)) { in hdac_hdmi_set_hw_params() 543 port->eld.monitor_present && in hdac_hdmi_get_port_from_cvt() 544 port->eld.eld_valid) in hdac_hdmi_get_port_from_cvt() 580 if ((!port->eld.monitor_present) || in hdac_hdmi_pcm_open() 581 (!port->eld.eld_valid)) { in hdac_hdmi_pcm_open() [all …]
|
D | hdmi-codec.c | 285 uint8_t eld[MAX_ELD_BYTES]; member 303 uinfo->count = FIELD_SIZEOF(struct hdmi_codec_priv, eld); in hdmi_eld_ctl_info() 314 memcpy(ucontrol->value.bytes.data, hcp->eld, sizeof(hcp->eld)); in hdmi_eld_ctl_get() 341 spk_alloc = drm_eld_get_spk_alloc(hcp->eld); in hdmi_codec_eld_chmap() 359 spk_alloc = drm_eld_get_spk_alloc(hcp->eld); in hdmi_codec_get_ch_alloc_table_idx() 437 hcp->eld, sizeof(hcp->eld)); in hdmi_codec_startup() 441 hcp->eld); in hdmi_codec_startup()
|
/Linux-v4.19/include/sound/ |
D | pcm_drm_eld.h | 5 int snd_pcm_hw_constraint_eld(struct snd_pcm_runtime *runtime, void *eld);
|
/Linux-v4.19/drivers/gpu/drm/bridge/synopsys/ |
D | dw-hdmi-audio.h | 12 u8 *eld; member
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | sorgk104.c | 45 .eld = gf119_hda_eld,
|
D | sormcp89.c | 45 .eld = gt215_hda_eld,
|
D | sorgt215.c | 61 .eld = gt215_hda_eld,
|
D | sorgm107.c | 59 .eld = gf119_hda_eld,
|
D | sorgv100.c | 104 .eld = gf119_hda_eld,
|
D | sorgm200.c | 116 .eld = gf119_hda_eld,
|
D | ior.h | 84 void (*eld)(struct nvkm_ior *, u8 *data, u8 size); member
|
D | sorgf119.c | 176 .eld = gf119_hda_eld,
|
/Linux-v4.19/sound/x86/ |
D | intel_hdmi_audio.c | 446 if (intelhaddata->eld[DRM_ELD_SPEAKER] & (1 << i)) in had_channel_allocation() 493 intelhaddata->eld[DRM_ELD_SPEAKER]); in had_build_channel_allocation_map() 504 eld_high = intelhaddata->eld[DRM_ELD_SPEAKER] & eld_high_mask; in had_build_channel_allocation_map() 511 intelhaddata->eld[DRM_ELD_SPEAKER] &= in had_build_channel_allocation_map() 519 if (intelhaddata->eld[DRM_ELD_SPEAKER] & (1 << i)) in had_build_channel_allocation_map() 1511 memcpy(ucontrol->value.bytes.data, intelhaddata->eld, in had_ctl_eld_get() 1607 memset(ctx->eld, 0, sizeof(ctx->eld)); /* clear the old ELD */ in had_audio_wq() 1621 memcpy(ctx->eld, ppdata->eld, sizeof(ctx->eld)); in had_audio_wq()
|
D | intel_hdmi_audio.h | 106 unsigned char eld[HDMI_MAX_ELD_BYTES]; member
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_edid.c | 3808 connector->eld[DRM_ELD_SAD_COUNT_CONN_TYPE] |= DRM_ELD_SUPPORTS_AI; in drm_parse_hdmi_vsdb_audio() 3882 memset(connector->eld, 0, sizeof(connector->eld)); in clear_eld() 3902 uint8_t *eld = connector->eld; in drm_edid_to_eld() local 3920 mnl = get_monitor_name(edid, &eld[DRM_ELD_MONITOR_NAME_STRING]); in drm_edid_to_eld() 3921 DRM_DEBUG_KMS("ELD monitor %s\n", &eld[DRM_ELD_MONITOR_NAME_STRING]); in drm_edid_to_eld() 3923 eld[DRM_ELD_CEA_EDID_VER_MNL] = cea[1] << DRM_ELD_CEA_EDID_VER_SHIFT; in drm_edid_to_eld() 3924 eld[DRM_ELD_CEA_EDID_VER_MNL] |= mnl; in drm_edid_to_eld() 3926 eld[DRM_ELD_VER] = DRM_ELD_VER_CEA861D; in drm_edid_to_eld() 3928 eld[DRM_ELD_MANUFACTURER_NAME0] = edid->mfg_id[0]; in drm_edid_to_eld() 3929 eld[DRM_ELD_MANUFACTURER_NAME1] = edid->mfg_id[1]; in drm_edid_to_eld() [all …]
|
/Linux-v4.19/Documentation/sound/designs/ |
D | procfile.rst | 178 ``card*/eld#*`` 183 Some ELD fields may be modified by doing ``echo name hex_value > eld#*``.
|
/Linux-v4.19/drivers/gpu/drm/zte/ |
D | zx_hdmi.c | 466 memcpy(buf, connector->eld, min(sizeof(connector->eld), len)); in zx_hdmi_audio_get_eld()
|
/Linux-v4.19/drivers/gpu/drm/vc4/ |
D | vc4_hdmi.c | 795 hdmi->connector->eld); in vc4_hdmi_audio_startup() 962 uinfo->count = sizeof(hdmi->connector->eld); in vc4_hdmi_audio_eld_ctl_info() 973 memcpy(ucontrol->value.bytes.data, hdmi->connector->eld, in vc4_hdmi_audio_eld_ctl_get() 974 sizeof(hdmi->connector->eld)); in vc4_hdmi_audio_eld_ctl_get()
|