Home
last modified time | relevance | path

Searched refs:eld (Results 1 – 25 of 46) sorted by relevance

12

/linux/sound/core/
A Dpcm_drm_eld.c31 const u8 *sad, *eld = rule->private; in eld_limit_rates() local
33 sad = drm_eld_sad(eld); in eld_limit_rates()
37 for (i = drm_eld_sad_count(eld); i > 0; i--, sad += 3) { in eld_limit_rates()
60 const u8 *sad, *eld = rule->private; in eld_limit_channels() local
62 sad = drm_eld_sad(eld); in eld_limit_channels()
72 for (i = drm_eld_sad_count(eld); i > 0; i--, sad += 3) in eld_limit_channels()
80 int snd_pcm_hw_constraint_eld(struct snd_pcm_runtime *runtime, void *eld) in snd_pcm_hw_constraint_eld() argument
85 eld_limit_rates, eld, in snd_pcm_hw_constraint_eld()
91 eld_limit_channels, eld, in snd_pcm_hw_constraint_eld()
/linux/include/drm/
A Ddrm_edid.h425 static inline int drm_eld_mnl(const uint8_t *eld) in drm_eld_mnl() argument
434 static inline const uint8_t *drm_eld_sad(const uint8_t *eld) in drm_eld_sad() argument
438 ver = (eld[DRM_ELD_VER] & DRM_ELD_VER_MASK) >> DRM_ELD_VER_SHIFT; in drm_eld_sad()
442 mnl = drm_eld_mnl(eld); in drm_eld_sad()
446 return eld + DRM_ELD_CEA_SAD(mnl, 0); in drm_eld_sad()
453 static inline int drm_eld_sad_count(const uint8_t *eld) in drm_eld_sad_count() argument
469 drm_eld_mnl(eld) + drm_eld_sad_count(eld) * 3; in drm_eld_calc_baseline_block_size()
482 static inline int drm_eld_size(const uint8_t *eld) in drm_eld_size() argument
494 static inline u8 drm_eld_get_spk_alloc(const uint8_t *eld) in drm_eld_get_spk_alloc() argument
496 return eld[DRM_ELD_SPEAKER] & DRM_ELD_SPEAKER_MASK; in drm_eld_get_spk_alloc()
[all …]
A Dintel_lpe_audio.h35 u8 eld[HDMI_MAX_ELD_BYTES]; member
/linux/sound/soc/codecs/
A Dhdac_hdmi.c90 struct hdac_hdmi_eld eld; member
306 void *eld) in hdac_hdmi_eld_limit_formats() argument
609 port->eld.monitor_present, port->eld.eld_valid, in hdac_hdmi_pcm_open()
934 if (port->eld.monitor_present && port->eld.eld_valid) { in hdac_hdmi_set_pin_port_mux()
1240 port->eld.info.spk_alloc = port->eld.eld_buffer[DRM_ELD_SPEAKER]; in hdac_hdmi_parse_eld()
1293 if (!port->eld.monitor_present || !port->eld.eld_valid) { in hdac_hdmi_present_sense()
1312 if (port->eld.monitor_present && port->eld.eld_valid) { in hdac_hdmi_present_sense()
1319 port->eld.eld_buffer, port->eld.eld_size, false); in hdac_hdmi_present_sense()
1455 eld = &port->eld; in hdac_hdmi_eld_ctl_info()
1495 eld = &port->eld; in hdac_hdmi_eld_ctl_get()
[all …]
A Dhdmi-codec.c273 uint8_t eld[MAX_ELD_BYTES]; member
297 uinfo->count = sizeof_field(struct hdmi_codec_priv, eld); in hdmi_eld_ctl_info()
308 memcpy(ucontrol->value.bytes.data, hcp->eld, sizeof(hcp->eld)); in hdmi_eld_ctl_get()
335 spk_alloc = drm_eld_get_spk_alloc(hcp->eld); in hdmi_codec_eld_chmap()
353 spk_alloc = drm_eld_get_spk_alloc(hcp->eld); in hdmi_codec_get_ch_alloc_table_idx()
452 hcp->eld, sizeof(hcp->eld)); in hdmi_codec_startup()
456 ret = snd_pcm_hw_constraint_eld(substream->runtime, hcp->eld); in hdmi_codec_startup()
859 hcp->eld, sizeof(hcp->eld)); in plugged_cb()
864 memset(hcp->eld, 0, sizeof(hcp->eld)); in plugged_cb()
/linux/drivers/gpu/drm/i915/display/
A Dintel_audio.c302 const u8 *eld = connector->eld; in intel_eld_uptodate() local
350 const u8 *eld = connector->eld; in g4x_audio_codec_enable() local
356 drm_eld_size(eld)); in g4x_audio_codec_enable()
379 *((const u32 *)eld + i)); in g4x_audio_codec_enable()
636 const u8 *eld = connector->eld; in hsw_audio_codec_enable() local
669 len = min(drm_eld_size(eld), 84); in hsw_audio_codec_enable()
742 const u8 *eld = connector->eld; in ilk_audio_codec_enable() local
838 if (!connector->eld[0]) in intel_audio_codec_enable()
1188 const u8 *eld; in i915_audio_component_get_eld() local
1204 eld = intel_encoder->audio_connector->eld; in i915_audio_component_get_eld()
[all …]
A Dintel_lpe_audio.c326 const void *eld, int ls_clock, bool dp_output) in intel_lpe_audio_notify() argument
343 if (eld != NULL) { in intel_lpe_audio_notify()
344 memcpy(ppdata->eld, eld, HDMI_MAX_ELD_BYTES); in intel_lpe_audio_notify()
353 memset(ppdata->eld, 0, HDMI_MAX_ELD_BYTES); in intel_lpe_audio_notify()
A Dintel_lpe_audio.h20 const void *eld, int ls_clock, bool dp_output);
/linux/sound/pci/hda/
A Dpatch_hdmi.c331 struct hdmi_eld *eld; in hdmi_eld_ctl_info() local
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
382 if (eld->eld_valid) in hdmi_eld_ctl_get()
1527 snd_hdmi_parse_eld(codec, &eld->info, eld->eld_buffer, in update_eld()
1538 if (!eld->eld_valid || eld->eld_size <= 0) { in update_eld()
1540 eld->eld_size = 0; in update_eld()
1609 (eld->monitor_present && eld->eld_valid) ? in update_eld()
1648 codec->addr, pin_nid, eld->monitor_present, eld->eld_valid); in hdmi_present_sense_via_verbs()
1652 eld->eld_buffer, &eld->eld_size) < 0) in hdmi_present_sense_via_verbs()
[all …]
A Dhda_eld.c442 void snd_hdmi_print_eld_info(struct hdmi_eld *eld, in snd_hdmi_print_eld_info() argument
445 struct parsed_hdmi_eld *e = &eld->info; in snd_hdmi_print_eld_info()
463 snd_iprintf(buffer, "monitor_present\t\t%d\n", eld->monitor_present); in snd_hdmi_print_eld_info()
464 snd_iprintf(buffer, "eld_valid\t\t%d\n", eld->eld_valid); in snd_hdmi_print_eld_info()
465 if (!eld->eld_valid) in snd_hdmi_print_eld_info()
490 void snd_hdmi_write_eld_info(struct hdmi_eld *eld, in snd_hdmi_write_eld_info() argument
493 struct parsed_hdmi_eld *e = &eld->info; in snd_hdmi_write_eld_info()
509 eld->monitor_present = val; in snd_hdmi_write_eld_info()
511 eld->eld_valid = val; in snd_hdmi_write_eld_info()
/linux/drivers/gpu/drm/bridge/synopsys/
A Ddw-hdmi-audio.h12 u8 *eld; member
17 u8 *eld; member
/linux/sound/x86/
A Dintel_hdmi_audio.c437 if (intelhaddata->eld[DRM_ELD_SPEAKER] & (1 << i)) in had_channel_allocation()
484 intelhaddata->eld[DRM_ELD_SPEAKER]); in had_build_channel_allocation_map()
495 eld_high = intelhaddata->eld[DRM_ELD_SPEAKER] & eld_high_mask; in had_build_channel_allocation_map()
502 intelhaddata->eld[DRM_ELD_SPEAKER] &= in had_build_channel_allocation_map()
510 if (intelhaddata->eld[DRM_ELD_SPEAKER] & (1 << i)) in had_build_channel_allocation_map()
1461 memcpy(ucontrol->value.bytes.data, intelhaddata->eld, in had_ctl_eld_get()
1557 memset(ctx->eld, 0, sizeof(ctx->eld)); /* clear the old ELD */ in had_audio_wq()
1571 memcpy(ctx->eld, ppdata->eld, sizeof(ctx->eld)); in had_audio_wq()
A Dintel_hdmi_audio.h106 unsigned char eld[HDMI_MAX_ELD_BYTES]; member
/linux/include/sound/
A Dpcm_drm_eld.h5 int snd_pcm_hw_constraint_eld(struct snd_pcm_runtime *runtime, void *eld);
/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/
A Dsormcp89.c45 .eld = gt215_hda_eld,
A Dsorgk104.c45 .eld = gf119_hda_eld,
A Dsorgm107.c59 .eld = gf119_hda_eld,
A Dsorgt215.c61 .eld = gt215_hda_eld,
A Dsorgp100.c50 .eld = gf119_hda_eld,
A Dsorga102.c101 .eld = gf119_hda_eld,
A Dsortu102.c90 .eld = gf119_hda_eld,
A Dsorgv100.c105 .eld = gf119_hda_eld,
A Dsorgm200.c117 .eld = gf119_hda_eld,
/linux/drivers/gpu/drm/
A Ddrm_edid.c4531 memset(connector->eld, 0, sizeof(connector->eld)); in clear_eld()
4551 uint8_t *eld = connector->eld; in drm_edid_to_eld() local
4573 eld[DRM_ELD_CEA_EDID_VER_MNL] |= mnl; in drm_edid_to_eld()
4575 eld[DRM_ELD_VER] = DRM_ELD_VER_CEA861D; in drm_edid_to_eld()
4577 eld[DRM_ELD_MANUFACTURER_NAME0] = edid->mfg_id[0]; in drm_edid_to_eld()
4578 eld[DRM_ELD_MANUFACTURER_NAME1] = edid->mfg_id[1]; in drm_edid_to_eld()
4579 eld[DRM_ELD_PRODUCT_CODE0] = edid->prod_code[0]; in drm_edid_to_eld()
4580 eld[DRM_ELD_PRODUCT_CODE1] = edid->prod_code[1]; in drm_edid_to_eld()
4607 eld[DRM_ELD_SPEAKER] = db[1]; in drm_edid_to_eld()
4627 eld[DRM_ELD_BASELINE_ELD_LEN] = in drm_edid_to_eld()
[all …]
/linux/drivers/gpu/drm/msm/dp/
A Ddp_audio.c486 memcpy(buf, dp_display->connector->eld, in dp_audio_get_eld()
487 min(sizeof(dp_display->connector->eld), len)); in dp_audio_get_eld()

Completed in 68 milliseconds

12