| /OK3568_Linux_fs/kernel/sound/core/ |
| H A D | pcm_drm_eld.c | 31 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()
|
| /OK3568_Linux_fs/kernel/include/drm/ |
| H A D | drm_edid.h | 425 static inline int drm_eld_mnl(const uint8_t *eld) in drm_eld_mnl() argument 427 return (eld[DRM_ELD_CEA_EDID_VER_MNL] & DRM_ELD_MNL_MASK) >> DRM_ELD_MNL_SHIFT; in drm_eld_mnl() 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 455 return (eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_SAD_COUNT_MASK) >> in drm_eld_sad_count() 466 static inline int drm_eld_calc_baseline_block_size(const uint8_t *eld) in drm_eld_calc_baseline_block_size() argument 469 drm_eld_mnl(eld) + drm_eld_sad_count(eld) * 3; in drm_eld_calc_baseline_block_size() [all …]
|
| /OK3568_Linux_fs/kernel/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() 544 port->eld.monitor_present && in hdac_hdmi_get_port_from_cvt() 545 port->eld.eld_valid) in hdac_hdmi_get_port_from_cvt() 604 if ((!port->eld.monitor_present) || in hdac_hdmi_pcm_open() 605 (!port->eld.eld_valid)) { in hdac_hdmi_pcm_open() 609 port->eld.monitor_present, port->eld.eld_valid, in hdac_hdmi_pcm_open() [all …]
|
| H A D | hdmi-codec.c | 273 uint8_t eld[MAX_ELD_BYTES]; member 299 uinfo->count = sizeof_field(struct hdmi_codec_priv, eld); in hdmi_eld_ctl_info() 310 memcpy(ucontrol->value.bytes.data, hcp->eld, sizeof(hcp->eld)); in hdmi_eld_ctl_get() 337 spk_alloc = drm_eld_get_spk_alloc(hcp->eld); in hdmi_codec_eld_chmap() 358 spk_alloc = drm_eld_get_spk_alloc(hcp->eld); in hdmi_codec_get_ch_alloc_table_idx() 482 hcp->eld, sizeof(hcp->eld)); in hdmi_codec_startup() 486 ret = snd_pcm_hw_constraint_eld(substream->runtime, hcp->eld); in hdmi_codec_startup() 872 hcp->eld, sizeof(hcp->eld)); in plugged_cb() 877 memset(hcp->eld, 0, sizeof(hcp->eld)); in plugged_cb()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/ |
| H A D | intel_audio.c | 301 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 = connector->eld; in hsw_audio_codec_enable() local 648 transcoder_name(cpu_transcoder), drm_eld_size(eld)); in hsw_audio_codec_enable() 675 len = min(drm_eld_size(eld), 84); in hsw_audio_codec_enable() [all …]
|
| H A D | intel_lpe_audio.c | 329 const void *eld, int ls_clock, bool dp_output) in intel_lpe_audio_notify() argument 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()
|
| /OK3568_Linux_fs/kernel/sound/pci/hda/ |
| H A D | patch_hdmi.c | 329 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->eld_buffer, in hdmi_eld_ctl_get() 382 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 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()
|
| /OK3568_Linux_fs/kernel/drivers/video/ |
| H A D | hdmi-notifier.c | 52 void hdmi_event_new_eld(struct device *dev, const void *eld) in hdmi_event_new_eld() argument 57 memcpy(new_eld.eld, eld, sizeof(new_eld.eld)); in hdmi_event_new_eld()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | hdmi-notifier.h | 26 unsigned char eld[128]; member 32 struct hdmi_event_new_eld eld; member 43 void hdmi_event_new_eld(struct device *dev, const void *eld);
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/bridge/synopsys/ |
| H A D | dw-hdmi-i2s-audio.c | 157 u8 *eld; in dw_hdmi_i2s_get_eld() local 159 eld = audio->get_eld(audio->hdmi); in dw_hdmi_i2s_get_eld() 160 if (eld) in dw_hdmi_i2s_get_eld() 161 memcpy(buf, eld, min_t(size_t, MAX_ELD_BYTES, len)); in dw_hdmi_i2s_get_eld()
|
| H A D | dw-hdmi-qp-audio.h | 17 u8 *eld; member 22 u8 *eld; member
|
| 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()
|
| /OK3568_Linux_fs/kernel/sound/x86/ |
| H A D | intel_hdmi_audio.c | 437 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() 1476 memcpy(ucontrol->value.bytes.data, intelhaddata->eld, in had_ctl_eld_get() 1572 memset(ctx->eld, 0, sizeof(ctx->eld)); /* clear the old ELD */ in had_audio_wq() 1586 memcpy(ctx->eld, ppdata->eld, sizeof(ctx->eld)); in had_audio_wq()
|
| /OK3568_Linux_fs/kernel/include/sound/ |
| H A D | pcm_drm_eld.h | 5 int snd_pcm_hw_constraint_eld(struct snd_pcm_runtime *runtime, void *eld);
|
| /OK3568_Linux_fs/buildroot/board/rockchip/rk3562/fs-overlay/usr/share/pulseaudio/alsa-mixer/paths/ |
| H A D | hdmi-output-rockchip-2.conf | 4 eld-device = 0
|
| H A D | hdmi-output-rockchip-1.conf | 4 eld-device = 0
|
| /OK3568_Linux_fs/debian/overlay/usr/share/pulseaudio/alsa-mixer/paths/ |
| H A D | hdmi-output-rockchip-2.conf | 4 eld-device = 0
|
| /OK3568_Linux_fs/buildroot/board/rockchip/rk3588/fs-overlay/usr/share/pulseaudio/alsa-mixer/paths/ |
| H A D | hdmi-output-rockchip-2.conf | 4 eld-device = 0
|
| H A D | hdmi-output-rockchip-1.conf | 4 eld-device = 0
|
| /OK3568_Linux_fs/buildroot/board/rockchip/rk3399/fs-overlay/usr/share/pulseaudio/alsa-mixer/paths/ |
| H A D | hdmi-output-rockchip-2.conf | 4 eld-device = 0
|
| H A D | hdmi-output-rockchip-1.conf | 4 eld-device = 0
|
| /OK3568_Linux_fs/buildroot/board/rockchip/rk3566_rk3568/fs-overlay/usr/share/pulseaudio/alsa-mixer/paths/ |
| H A D | hdmi-output-rockchip-2.conf | 4 eld-device = 0
|
| H A D | hdmi-output-rockchip-1.conf | 4 eld-device = 0
|
| /OK3568_Linux_fs/buildroot/board/forlinx/ok3568/fs-overlay/usr/share/pulseaudio/alsa-mixer/paths/ |
| H A D | hdmi-output-rockchip-1.conf | 4 eld-device = 0
|