/openbmc/linux/sound/core/ |
H A D | pcm_drm_eld.c | 98 const u8 *sad, *eld = rule->private; in eld_limit_rates() local 100 sad = drm_eld_sad(eld); in eld_limit_rates() 104 for (i = drm_eld_sad_count(eld); i > 0; i--, sad += 3) { in eld_limit_rates() 127 const u8 *sad, *eld = rule->private; in eld_limit_channels() local 129 sad = drm_eld_sad(eld); in eld_limit_channels() 139 for (i = drm_eld_sad_count(eld); i > 0; i--, sad += 3) in eld_limit_channels() 147 int snd_pcm_hw_constraint_eld(struct snd_pcm_runtime *runtime, void *eld) in snd_pcm_hw_constraint_eld() argument 152 eld_limit_rates, eld, in snd_pcm_hw_constraint_eld() 158 eld_limit_channels, eld, in snd_pcm_hw_constraint_eld()
|
/openbmc/linux/include/drm/ |
H A D | drm_edid.h | 416 static inline int drm_eld_mnl(const uint8_t *eld) in drm_eld_mnl() argument 418 return (eld[DRM_ELD_CEA_EDID_VER_MNL] & DRM_ELD_MNL_MASK) >> DRM_ELD_MNL_SHIFT; in drm_eld_mnl() 425 static inline const uint8_t *drm_eld_sad(const uint8_t *eld) in drm_eld_sad() argument 429 ver = (eld[DRM_ELD_VER] & DRM_ELD_VER_MASK) >> DRM_ELD_VER_SHIFT; in drm_eld_sad() 433 mnl = drm_eld_mnl(eld); in drm_eld_sad() 437 return eld + DRM_ELD_CEA_SAD(mnl, 0); in drm_eld_sad() 444 static inline int drm_eld_sad_count(const uint8_t *eld) in drm_eld_sad_count() argument 446 return (eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_SAD_COUNT_MASK) >> in drm_eld_sad_count() 457 static inline int drm_eld_calc_baseline_block_size(const uint8_t *eld) in drm_eld_calc_baseline_block_size() argument 460 drm_eld_mnl(eld) + drm_eld_sad_count(eld) * 3; in drm_eld_calc_baseline_block_size() [all …]
|
H A D | intel_lpe_audio.h | 35 u8 eld[HDMI_MAX_ELD_BYTES]; member
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_audio.c | 256 u32 *eld = (u32 *)crtc_state->eld; in g4x_audio_codec_get_config() local 267 len = min_t(int, sizeof(crtc_state->eld) / 4, eld_buffer_size); in g4x_audio_codec_get_config() 270 eld[i] = intel_de_read(i915, G4X_HDMIW_HDMIEDID); in g4x_audio_codec_get_config() 294 const u32 *eld = (const u32 *)crtc_state->eld; in g4x_audio_codec_enable() local 303 len = min(drm_eld_size(crtc_state->eld) / 4, eld_buffer_size); in g4x_audio_codec_enable() 306 intel_de_write(i915, G4X_HDMIW_HDMIEDID, eld[i]); in g4x_audio_codec_enable() 685 if (!connector->eld[0]) { in intel_audio_compute_config() 692 BUILD_BUG_ON(sizeof(crtc_state->eld) != sizeof(connector->eld)); in intel_audio_compute_config() 693 memcpy(crtc_state->eld, connector->eld, sizeof(crtc_state->eld)); in intel_audio_compute_config() 695 crtc_state->eld[6] = drm_av_sync_delay(connector, adjusted_mode) / 2; in intel_audio_compute_config() [all …]
|
H A D | intel_lpe_audio.c | 328 const void *eld, int ls_clock, bool dp_output) in intel_lpe_audio_notify() argument 345 if (eld != NULL) { in intel_lpe_audio_notify() 346 memcpy(ppdata->eld, eld, HDMI_MAX_ELD_BYTES); in intel_lpe_audio_notify() 355 memset(ppdata->eld, 0, HDMI_MAX_ELD_BYTES); in intel_lpe_audio_notify()
|
H A D | intel_lpe_audio.h | 20 const void *eld, int ls_clock, bool dp_output);
|
H A D | intel_crtc_state_dump.c | 298 intel_dump_buffer(i915, "ELD: ", pipe_config->eld, in intel_crtc_state_dump() 299 drm_eld_size(pipe_config->eld)); in intel_crtc_state_dump()
|
H A D | intel_display_core.h | 93 u8 eld[MAX_ELD_BYTES]; member
|
/openbmc/linux/sound/soc/codecs/ |
H A D | hdac_hdmi.c | 90 struct hdac_hdmi_eld eld; member 306 void *eld) in hdac_hdmi_eld_limit_formats() argument 310 const u8 *sad, *eld_buf = eld; in hdac_hdmi_eld_limit_formats() 372 ca = snd_hdac_channel_allocation(hdev, port->eld.info.spk_alloc, in hdac_hdmi_setup_audio_infoframe() 381 eld_buf = port->eld.eld_buffer; in hdac_hdmi_setup_audio_infoframe() 549 port->eld.monitor_present && in hdac_hdmi_get_port_from_cvt() 550 port->eld.eld_valid) in hdac_hdmi_get_port_from_cvt() 609 if ((!port->eld.monitor_present) || in hdac_hdmi_pcm_open() 610 (!port->eld.eld_valid)) { in hdac_hdmi_pcm_open() 614 port->eld.monitor_present, port->eld.eld_valid, in hdac_hdmi_pcm_open() [all …]
|
H A D | hdmi-codec.c | 282 uint8_t eld[MAX_ELD_BYTES]; member 306 uinfo->count = sizeof_field(struct hdmi_codec_priv, eld); in hdmi_eld_ctl_info() 317 memcpy(ucontrol->value.bytes.data, hcp->eld, sizeof(hcp->eld)); in hdmi_eld_ctl_get() 344 spk_alloc = drm_eld_get_spk_alloc(hcp->eld); in hdmi_codec_eld_chmap() 362 spk_alloc = drm_eld_get_spk_alloc(hcp->eld); in hdmi_codec_get_ch_alloc_table_idx() 467 hcp->eld, sizeof(hcp->eld)); in hdmi_codec_startup() 471 ret = snd_pcm_hw_constraint_eld(substream->runtime, hcp->eld); in hdmi_codec_startup() 881 hcp->eld, sizeof(hcp->eld)); in plugged_cb() 886 memset(hcp->eld, 0, sizeof(hcp->eld)); in plugged_cb()
|
/openbmc/linux/sound/pci/hda/ |
H A D | patch_hdmi.c | 342 struct hdmi_eld *eld; in hdmi_eld_ctl_info() local 355 eld = &per_pin->sink_eld; in hdmi_eld_ctl_info() 356 uinfo->count = eld->eld_valid ? eld->eld_size : 0; in hdmi_eld_ctl_info() 369 struct hdmi_eld *eld; in hdmi_eld_ctl_get() local 383 eld = &per_pin->sink_eld; in hdmi_eld_ctl_get() 384 if (eld->eld_size > ARRAY_SIZE(ucontrol->value.bytes.data) || in hdmi_eld_ctl_get() 385 eld->eld_size > ELD_MAX_SIZE) { in hdmi_eld_ctl_get() 393 if (eld->eld_valid) in hdmi_eld_ctl_get() 394 memcpy(ucontrol->value.bytes.data, eld->eld_buffer, in hdmi_eld_ctl_get() 395 eld->eld_size); in hdmi_eld_ctl_get() [all …]
|
H A D | hda_eld.c | 442 void snd_hdmi_print_eld_info(struct hdmi_eld *eld, in snd_hdmi_print_eld_info() argument 446 struct parsed_hdmi_eld *e = &eld->info; in snd_hdmi_print_eld_info() 464 snd_iprintf(buffer, "monitor_present\t\t%d\n", eld->monitor_present); in snd_hdmi_print_eld_info() 465 snd_iprintf(buffer, "eld_valid\t\t%d\n", eld->eld_valid); in snd_hdmi_print_eld_info() 469 if (!eld->eld_valid) in snd_hdmi_print_eld_info() 494 void snd_hdmi_write_eld_info(struct hdmi_eld *eld, in snd_hdmi_write_eld_info() argument 497 struct parsed_hdmi_eld *e = &eld->info; in snd_hdmi_write_eld_info() 513 eld->monitor_present = val; in snd_hdmi_write_eld_info() 515 eld->eld_valid = val; in snd_hdmi_write_eld_info()
|
H A D | hda_local.h | 740 void snd_hdmi_print_eld_info(struct hdmi_eld *eld, 743 void snd_hdmi_write_eld_info(struct hdmi_eld *eld,
|
/openbmc/linux/drivers/gpu/drm/bridge/synopsys/ |
H A D | dw-hdmi-gp-audio.c | 117 u8 *eld; in audio_get_eld() local 119 eld = audio->get_eld(audio->hdmi); in audio_get_eld() 120 if (eld) in audio_get_eld() 121 memcpy(buf, eld, min_t(size_t, MAX_ELD_BYTES, len)); in audio_get_eld()
|
H A D | dw-hdmi-i2s-audio.c | 138 u8 *eld; in dw_hdmi_i2s_get_eld() local 140 eld = audio->get_eld(audio->hdmi); in dw_hdmi_i2s_get_eld() 141 if (eld) in dw_hdmi_i2s_get_eld() 142 memcpy(buf, eld, min_t(size_t, MAX_ELD_BYTES, len)); in dw_hdmi_i2s_get_eld()
|
H A D | dw-hdmi-ahb-audio.c | 323 u8 *eld; in dw_hdmi_open() local 328 eld = dw->data.get_eld(dw->data.hdmi); in dw_hdmi_open() 329 if (eld) { in dw_hdmi_open() 330 ret = snd_pcm_hw_constraint_eld(runtime, eld); in dw_hdmi_open()
|
/openbmc/linux/include/sound/ |
H A D | pcm_drm_eld.h | 5 int snd_pcm_hw_constraint_eld(struct snd_pcm_runtime *runtime, void *eld);
|
/openbmc/linux/sound/x86/ |
H A D | intel_hdmi_audio.c | 439 if (intelhaddata->eld[DRM_ELD_SPEAKER] & (1 << i)) in had_channel_allocation() 486 intelhaddata->eld[DRM_ELD_SPEAKER]); in had_build_channel_allocation_map() 497 eld_high = intelhaddata->eld[DRM_ELD_SPEAKER] & eld_high_mask; in had_build_channel_allocation_map() 504 intelhaddata->eld[DRM_ELD_SPEAKER] &= in had_build_channel_allocation_map() 512 if (intelhaddata->eld[DRM_ELD_SPEAKER] & (1 << i)) in had_build_channel_allocation_map() 1452 memcpy(ucontrol->value.bytes.data, intelhaddata->eld, in had_ctl_eld_get() 1552 memset(ctx->eld, 0, sizeof(ctx->eld)); /* clear the old ELD */ in had_audio_wq() 1566 memcpy(ctx->eld, ppdata->eld, sizeof(ctx->eld)); in had_audio_wq()
|
H A D | intel_hdmi_audio.h | 106 unsigned char eld[HDMI_MAX_ELD_BYTES]; member
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_edid.c | 5419 connector->eld[DRM_ELD_SAD_COUNT_CONN_TYPE] |= DRM_ELD_SUPPORTS_AI; in drm_parse_hdmi_vsdb_audio() 5503 memset(connector->eld, 0, sizeof(connector->eld)); in clear_eld() 5528 uint8_t *eld = connector->eld; in drm_edid_to_eld() local 5537 mnl = get_monitor_name(drm_edid, &eld[DRM_ELD_MONITOR_NAME_STRING]); in drm_edid_to_eld() 5540 &eld[DRM_ELD_MONITOR_NAME_STRING]); in drm_edid_to_eld() 5542 eld[DRM_ELD_CEA_EDID_VER_MNL] = info->cea_rev << DRM_ELD_CEA_EDID_VER_SHIFT; in drm_edid_to_eld() 5543 eld[DRM_ELD_CEA_EDID_VER_MNL] |= mnl; in drm_edid_to_eld() 5545 eld[DRM_ELD_VER] = DRM_ELD_VER_CEA861D; in drm_edid_to_eld() 5547 eld[DRM_ELD_MANUFACTURER_NAME0] = drm_edid->edid->mfg_id[0]; in drm_edid_to_eld() 5548 eld[DRM_ELD_MANUFACTURER_NAME1] = drm_edid->edid->mfg_id[1]; in drm_edid_to_eld() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-filter/arno-iptables-firewall/ |
H A D | arno-iptables-firewall_2.1.2.bb | 2 HOMEPAGE = "http://rocky.eld.leidenuniv.nl/joomla/index.php?option=com_content&view=article&id=45&I…
|
/openbmc/linux/drivers/gpu/drm/msm/dp/ |
H A D | dp_audio.c | 502 memcpy(buf, dp_display->connector->eld, in dp_audio_get_eld() 503 min(sizeof(dp_display->connector->eld), len)); in dp_audio_get_eld()
|
/openbmc/linux/Documentation/sound/designs/ |
H A D | procfile.rst | 178 ``card*/eld#*`` 183 Some ELD fields may be modified by doing ``echo name hex_value > eld#*``.
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | gt215.c | 64 .eld = gt215_sor_hda_eld,
|
H A D | ior.h | 91 void (*eld)(struct nvkm_ior *, int head, u8 *data, u8 size); member
|