Lines Matching refs:eld

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()
618 port->eld.eld_buffer); in hdac_hdmi_pcm_open()
623 port->eld.eld_buffer); in hdac_hdmi_pcm_open()
934 if (port->eld.monitor_present && port->eld.eld_valid) { in hdac_hdmi_set_pin_port_mux()
1224 ver = (port->eld.eld_buffer[DRM_ELD_VER] & DRM_ELD_VER_MASK) in hdac_hdmi_parse_eld()
1232 mnl = (port->eld.eld_buffer[DRM_ELD_CEA_EDID_VER_MNL] & in hdac_hdmi_parse_eld()
1240 port->eld.info.spk_alloc = port->eld.eld_buffer[DRM_ELD_SPEAKER]; in hdac_hdmi_parse_eld()
1263 port->eld.monitor_present = false; in hdac_hdmi_present_sense()
1269 &port->eld.monitor_present, in hdac_hdmi_present_sense()
1270 port->eld.eld_buffer, in hdac_hdmi_present_sense()
1279 eld_valid = port->eld.eld_valid; in hdac_hdmi_present_sense()
1282 port->eld.eld_valid = true; in hdac_hdmi_present_sense()
1283 port->eld.eld_size = size; in hdac_hdmi_present_sense()
1285 port->eld.eld_valid = false; in hdac_hdmi_present_sense()
1286 port->eld.eld_size = 0; in hdac_hdmi_present_sense()
1289 eld_changed = (eld_valid != port->eld.eld_valid); in hdac_hdmi_present_sense()
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()
1434 struct hdac_hdmi_eld *eld; in hdac_hdmi_eld_ctl_info() local
1455 eld = &port->eld; in hdac_hdmi_eld_ctl_info()
1457 if (eld->eld_valid) { in hdac_hdmi_eld_ctl_info()
1458 uinfo->count = eld->eld_size; in hdac_hdmi_eld_ctl_info()
1475 struct hdac_hdmi_eld *eld; in hdac_hdmi_eld_ctl_get() local
1495 eld = &port->eld; in hdac_hdmi_eld_ctl_get()
1497 if (!eld->eld_valid) in hdac_hdmi_eld_ctl_get()
1500 if (eld->eld_size > ARRAY_SIZE(ucontrol->value.bytes.data) || in hdac_hdmi_eld_ctl_get()
1501 eld->eld_size > ELD_MAX_SIZE) { in hdac_hdmi_eld_ctl_get()
1505 __func__, kcontrol->id.device, eld->eld_size); in hdac_hdmi_eld_ctl_get()
1510 memcpy(ucontrol->value.bytes.data, eld->eld_buffer, in hdac_hdmi_eld_ctl_get()
1511 eld->eld_size); in hdac_hdmi_eld_ctl_get()
2123 if (!port || !port->eld.eld_valid) in hdac_hdmi_get_spk_alloc()
2126 return port->eld.info.spk_alloc; in hdac_hdmi_get_spk_alloc()