Home
last modified time | relevance | path

Searched refs:eld (Results 1 - 25 of 90) sorted by relevance

1234

/kernel/linux/linux-5.10/sound/core/
H 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()
/kernel/linux/linux-5.10/include/drm/
H A Ddrm_edid.h393 * @eld: pointer to an eld memory structure with mnl set
395 static inline int drm_eld_mnl(const uint8_t *eld) in drm_eld_mnl() argument
397 return (eld[DRM_ELD_CEA_EDID_VER_MNL] & DRM_ELD_MNL_MASK) >> DRM_ELD_MNL_SHIFT; in drm_eld_mnl()
402 * @eld: pointer to an eld memory structure with sad_count set
404 static inline const uint8_t *drm_eld_sad(const uint8_t *eld) in drm_eld_sad() argument
408 ver = (eld[DRM_ELD_VER] & DRM_ELD_VER_MASK) >> DRM_ELD_VER_SHIFT; in drm_eld_sad()
412 mnl = drm_eld_mnl(eld); in drm_eld_sad()
416 return eld in drm_eld_sad()
423 drm_eld_sad_count(const uint8_t *eld) drm_eld_sad_count() argument
436 drm_eld_calc_baseline_block_size(const uint8_t *eld) drm_eld_calc_baseline_block_size() argument
452 drm_eld_size(const uint8_t *eld) drm_eld_size() argument
464 drm_eld_get_spk_alloc(const uint8_t *eld) drm_eld_get_spk_alloc() argument
476 drm_eld_get_conn_type(const uint8_t *eld) drm_eld_get_conn_type() argument
[all...]
H A Dintel_lpe_audio.h35 u8 eld[HDMI_MAX_ELD_BYTES]; member
/kernel/linux/linux-6.6/sound/core/
H A Dpcm_drm_eld.c98 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()
/kernel/linux/linux-6.6/include/drm/
H A Ddrm_edid.h414 * @eld: pointer to an eld memory structure with mnl set
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()
423 * @eld: pointer to an eld memory structure with sad_count set
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 in drm_eld_sad()
444 drm_eld_sad_count(const uint8_t *eld) drm_eld_sad_count() argument
457 drm_eld_calc_baseline_block_size(const uint8_t *eld) drm_eld_calc_baseline_block_size() argument
473 drm_eld_size(const uint8_t *eld) drm_eld_size() argument
485 drm_eld_get_spk_alloc(const uint8_t *eld) drm_eld_get_spk_alloc() argument
497 drm_eld_get_conn_type(const uint8_t *eld) drm_eld_get_conn_type() argument
[all...]
H A Dintel_lpe_audio.h35 u8 eld[HDMI_MAX_ELD_BYTES]; member
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dhdac_hdmi.c90 struct hdac_hdmi_eld eld; member
306 void *eld) in hdac_hdmi_eld_limit_formats()
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 in hdac_hdmi_pcm_open()
305 hdac_hdmi_eld_limit_formats(struct snd_pcm_runtime *runtime, void *eld) hdac_hdmi_eld_limit_formats() argument
1439 struct hdac_hdmi_eld *eld; hdac_hdmi_eld_ctl_info() local
1480 struct hdac_hdmi_eld *eld; hdac_hdmi_eld_ctl_get() local
[all...]
H A Dhdmi-codec.c274 uint8_t eld[MAX_ELD_BYTES]; member
296 uinfo->count = sizeof_field(struct hdmi_codec_priv, eld); in hdmi_eld_ctl_info()
307 memcpy(ucontrol->value.bytes.data, hcp->eld, sizeof(hcp->eld)); in hdmi_eld_ctl_get()
334 spk_alloc = drm_eld_get_spk_alloc(hcp->eld); in hdmi_codec_eld_chmap()
352 spk_alloc = drm_eld_get_spk_alloc(hcp->eld); in hdmi_codec_get_ch_alloc_table_idx()
409 hcp->eld, sizeof(hcp->eld)); in hdmi_codec_startup()
413 ret = snd_pcm_hw_constraint_eld(substream->runtime, hcp->eld); in hdmi_codec_startup()
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Dhdac_hdmi.c90 struct hdac_hdmi_eld eld; member
306 void *eld) in hdac_hdmi_eld_limit_formats()
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 in hdac_hdmi_pcm_open()
305 hdac_hdmi_eld_limit_formats(struct snd_pcm_runtime *runtime, void *eld) hdac_hdmi_eld_limit_formats() argument
1439 struct hdac_hdmi_eld *eld; hdac_hdmi_eld_ctl_info() local
1480 struct hdac_hdmi_eld *eld; hdac_hdmi_eld_ctl_get() local
[all...]
H A Dhdmi-codec.c269 uint8_t eld[MAX_ELD_BYTES]; member
293 uinfo->count = sizeof_field(struct hdmi_codec_priv, eld); in hdmi_eld_ctl_info()
304 memcpy(ucontrol->value.bytes.data, hcp->eld, sizeof(hcp->eld)); in hdmi_eld_ctl_get()
331 spk_alloc = drm_eld_get_spk_alloc(hcp->eld); in hdmi_codec_eld_chmap()
349 spk_alloc = drm_eld_get_spk_alloc(hcp->eld); in hdmi_codec_get_ch_alloc_table_idx()
453 hcp->eld, sizeof(hcp->eld)); in hdmi_codec_startup()
457 ret = snd_pcm_hw_constraint_eld(substream->runtime, hcp->eld); in hdmi_codec_startup()
867 hcp->eld, sizeo in plugged_cb()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/
H A Dintel_audio.c323 u32 *eld = (u32 *)crtc_state->eld; in g4x_audio_codec_get_config() local
334 len = min_t(int, sizeof(crtc_state->eld) / 4, eld_buffer_size); in g4x_audio_codec_get_config()
337 eld[i] = intel_de_read(i915, G4X_HDMIW_HDMIEDID); in g4x_audio_codec_get_config()
361 const u32 *eld = (const u32 *)crtc_state->eld; in g4x_audio_codec_enable() local
370 len = min(drm_eld_size(crtc_state->eld) / 4, eld_buffer_size); in g4x_audio_codec_enable()
373 intel_de_write(i915, G4X_HDMIW_HDMIEDID, eld[i]); in g4x_audio_codec_enable()
782 if (!connector->eld[0]) { in intel_audio_compute_config()
789 BUILD_BUG_ON(sizeof(crtc_state->eld) ! in intel_audio_compute_config()
1252 const u8 *eld = audio_state->eld; i915_audio_component_get_eld() local
[all...]
H A Dintel_lpe_audio.c320 * @eld : ELD data
324 * Notify lpe audio driver of eld change.
328 const void *eld, int ls_clock, bool dp_output) in intel_lpe_audio_notify()
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()
326 intel_lpe_audio_notify(struct drm_i915_private *dev_priv, enum transcoder cpu_transcoder, enum port port, const void *eld, int ls_clock, bool dp_output) intel_lpe_audio_notify() argument
H A Dintel_lpe_audio.h20 const void *eld, int ls_clock, bool dp_output);
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
H A Dintel_audio.c301 const u8 *eld = connector->eld; in intel_eld_uptodate() local
315 for (i = 0; i < drm_eld_size(eld) / 4; i++) in intel_eld_uptodate()
316 if (intel_de_read(dev_priv, reg_edid) != *((const u32 *)eld + i)) in intel_eld_uptodate()
349 const u8 *eld = connector->eld; in g4x_audio_codec_enable() local
355 drm_eld_size(eld)); in g4x_audio_codec_enable()
374 len = min(drm_eld_size(eld) / 4, len); in g4x_audio_codec_enable()
378 *((const u32 *)eld + i)); in g4x_audio_codec_enable()
642 const u8 *eld in hsw_audio_codec_enable() local
748 const u8 *eld = connector->eld; ilk_audio_codec_enable() local
1183 const u8 *eld; i915_audio_component_get_eld() local
[all...]
H A Dintel_lpe_audio.c321 * @eld : ELD data
325 * Notify lpe audio driver of eld change.
329 const void *eld, int ls_clock, bool dp_output) in intel_lpe_audio_notify()
346 if (eld != NULL) { in intel_lpe_audio_notify()
347 memcpy(ppdata->eld, eld, HDMI_MAX_ELD_BYTES); in intel_lpe_audio_notify()
356 memset(ppdata->eld, 0, HDMI_MAX_ELD_BYTES); in intel_lpe_audio_notify()
327 intel_lpe_audio_notify(struct drm_i915_private *dev_priv, enum pipe pipe, enum port port, const void *eld, int ls_clock, bool dp_output) intel_lpe_audio_notify() argument
H A Dintel_lpe_audio.h20 const void *eld, int ls_clock, bool dp_output);
/kernel/linux/linux-6.6/sound/pci/hda/
H A Dpatch_hdmi.c342 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 in hdmi_eld_ctl_get()
748 struct hdmi_eld *eld; hdmi_setup_audio_infoframe() local
1248 struct hdmi_eld *eld; hdmi_pcm_open() local
1500 update_eld(struct hda_codec *codec, struct hdmi_spec_per_pin *per_pin, struct hdmi_eld *eld, int repoll) update_eld() argument
1607 struct hdmi_eld *eld = &spec->temp_eld; hdmi_present_sense_via_verbs() local
1823 struct hdmi_eld *eld = &spec->temp_eld; sync_eld_via_acomp() local
[all...]
H A Dhda_eld.c442 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()
/kernel/linux/linux-5.10/sound/pci/hda/
H A Dpatch_hdmi.c329 struct hdmi_eld *eld; in hdmi_eld_ctl_info() local
342 eld = &per_pin->sink_eld; in hdmi_eld_ctl_info()
343 uinfo->count = eld->eld_valid ? eld->eld_size : 0; in hdmi_eld_ctl_info()
356 struct hdmi_eld *eld; in hdmi_eld_ctl_get() local
370 eld = &per_pin->sink_eld; in hdmi_eld_ctl_get()
371 if (eld->eld_size > ARRAY_SIZE(ucontrol->value.bytes.data) || in hdmi_eld_ctl_get()
372 eld->eld_size > ELD_MAX_SIZE) { in hdmi_eld_ctl_get()
380 if (eld->eld_valid) in hdmi_eld_ctl_get()
381 memcpy(ucontrol->value.bytes.data, eld in hdmi_eld_ctl_get()
737 struct hdmi_eld *eld; hdmi_setup_audio_infoframe() local
1235 struct hdmi_eld *eld; hdmi_pcm_open() local
1524 update_eld(struct hda_codec *codec, struct hdmi_spec_per_pin *per_pin, struct hdmi_eld *eld, int repoll) update_eld() argument
1630 struct hdmi_eld *eld = &spec->temp_eld; hdmi_present_sense_via_verbs() local
1773 struct hdmi_eld *eld = &spec->temp_eld; sync_eld_via_acomp() local
[all...]
H 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()
/kernel/linux/linux-6.6/drivers/gpu/drm/bridge/synopsys/
H A Ddw-hdmi-gp-audio.c117 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 Ddw-hdmi-i2s-audio.c138 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/synopsys/
H A Ddw-hdmi-i2s-audio.c138 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()
/kernel/linux/linux-5.10/include/sound/
H A Dpcm_drm_eld.h5 int snd_pcm_hw_constraint_eld(struct snd_pcm_runtime *runtime, void *eld);
/kernel/linux/linux-6.6/include/sound/
H A Dpcm_drm_eld.h5 int snd_pcm_hw_constraint_eld(struct snd_pcm_runtime *runtime, void *eld);

Completed in 37 milliseconds

1234