Lines Matching refs:e

250 int snd_hdmi_parse_eld(struct hda_codec *codec, struct parsed_hdmi_eld *e,  in snd_hdmi_parse_eld()  argument
256 e->eld_ver = GRAB_BITS(buf, 0, 3, 5); in snd_hdmi_parse_eld()
257 if (e->eld_ver != ELD_VER_CEA_861D && in snd_hdmi_parse_eld()
258 e->eld_ver != ELD_VER_PARTIAL) { in snd_hdmi_parse_eld()
259 codec_info(codec, "HDMI: Unknown ELD version %d\n", e->eld_ver); in snd_hdmi_parse_eld()
263 e->baseline_len = GRAB_BITS(buf, 2, 0, 8); in snd_hdmi_parse_eld()
265 e->cea_edid_ver = GRAB_BITS(buf, 4, 5, 3); in snd_hdmi_parse_eld()
267 e->support_hdcp = GRAB_BITS(buf, 5, 0, 1); in snd_hdmi_parse_eld()
268 e->support_ai = GRAB_BITS(buf, 5, 1, 1); in snd_hdmi_parse_eld()
269 e->conn_type = GRAB_BITS(buf, 5, 2, 2); in snd_hdmi_parse_eld()
270 e->sad_count = GRAB_BITS(buf, 5, 4, 4); in snd_hdmi_parse_eld()
272 e->aud_synch_delay = GRAB_BITS(buf, 6, 0, 8) * 2; in snd_hdmi_parse_eld()
273 e->spk_alloc = GRAB_BITS(buf, 7, 0, 7); in snd_hdmi_parse_eld()
275 e->port_id = get_unaligned_le64(buf + 8); in snd_hdmi_parse_eld()
278 e->manufacture_id = get_unaligned_le16(buf + 16); in snd_hdmi_parse_eld()
279 e->product_id = get_unaligned_le16(buf + 18); in snd_hdmi_parse_eld()
288 strlcpy(e->monitor_name, buf + ELD_FIXED_BYTES, mnl + 1); in snd_hdmi_parse_eld()
290 for (i = 0; i < e->sad_count; i++) { in snd_hdmi_parse_eld()
295 hdmi_update_short_audio_desc(codec, e->sad + i, in snd_hdmi_parse_eld()
304 if (!e->spk_alloc) in snd_hdmi_parse_eld()
305 e->spk_alloc = 0xffff; in snd_hdmi_parse_eld()
433 void snd_hdmi_show_eld(struct hda_codec *codec, struct parsed_hdmi_eld *e) in snd_hdmi_show_eld() argument
438 e->monitor_name, in snd_hdmi_show_eld()
439 eld_connection_type_names[e->conn_type]); in snd_hdmi_show_eld()
441 if (e->spk_alloc) { in snd_hdmi_show_eld()
443 snd_print_channel_allocation(e->spk_alloc, buf, sizeof(buf)); in snd_hdmi_show_eld()
447 for (i = 0; i < e->sad_count; i++) in snd_hdmi_show_eld()
448 hdmi_show_short_audio_desc(codec, e->sad + i); in snd_hdmi_show_eld()
482 struct parsed_hdmi_eld *e = &eld->info; in snd_hdmi_print_eld_info() local
504 snd_iprintf(buffer, "monitor_name\t\t%s\n", e->monitor_name); in snd_hdmi_print_eld_info()
506 eld_connection_type_names[e->conn_type]); in snd_hdmi_print_eld_info()
507 snd_iprintf(buffer, "eld_version\t\t[0x%x] %s\n", e->eld_ver, in snd_hdmi_print_eld_info()
508 eld_version_names[e->eld_ver]); in snd_hdmi_print_eld_info()
509 snd_iprintf(buffer, "edid_version\t\t[0x%x] %s\n", e->cea_edid_ver, in snd_hdmi_print_eld_info()
510 cea_edid_version_names[e->cea_edid_ver]); in snd_hdmi_print_eld_info()
511 snd_iprintf(buffer, "manufacture_id\t\t0x%x\n", e->manufacture_id); in snd_hdmi_print_eld_info()
512 snd_iprintf(buffer, "product_id\t\t0x%x\n", e->product_id); in snd_hdmi_print_eld_info()
513 snd_iprintf(buffer, "port_id\t\t\t0x%llx\n", (long long)e->port_id); in snd_hdmi_print_eld_info()
514 snd_iprintf(buffer, "support_hdcp\t\t%d\n", e->support_hdcp); in snd_hdmi_print_eld_info()
515 snd_iprintf(buffer, "support_ai\t\t%d\n", e->support_ai); in snd_hdmi_print_eld_info()
516 snd_iprintf(buffer, "audio_sync_delay\t%d\n", e->aud_synch_delay); in snd_hdmi_print_eld_info()
518 snd_print_channel_allocation(e->spk_alloc, buf, sizeof(buf)); in snd_hdmi_print_eld_info()
519 snd_iprintf(buffer, "speakers\t\t[0x%x]%s\n", e->spk_alloc, buf); in snd_hdmi_print_eld_info()
521 snd_iprintf(buffer, "sad_count\t\t%d\n", e->sad_count); in snd_hdmi_print_eld_info()
523 for (i = 0; i < e->sad_count; i++) in snd_hdmi_print_eld_info()
524 hdmi_print_sad_info(i, e->sad + i, buffer); in snd_hdmi_print_eld_info()
530 struct parsed_hdmi_eld *e = &eld->info; in snd_hdmi_write_eld_info() local
550 e->conn_type = val; in snd_hdmi_write_eld_info()
552 e->port_id = val; in snd_hdmi_write_eld_info()
554 e->support_hdcp = val; in snd_hdmi_write_eld_info()
556 e->support_ai = val; in snd_hdmi_write_eld_info()
558 e->aud_synch_delay = val; in snd_hdmi_write_eld_info()
560 e->spk_alloc = val; in snd_hdmi_write_eld_info()
562 e->sad_count = val; in snd_hdmi_write_eld_info()
573 e->sad[n].format = val; in snd_hdmi_write_eld_info()
575 e->sad[n].channels = val; in snd_hdmi_write_eld_info()
577 e->sad[n].rates = val; in snd_hdmi_write_eld_info()
579 e->sad[n].sample_bits = val; in snd_hdmi_write_eld_info()
581 e->sad[n].max_bitrate = val; in snd_hdmi_write_eld_info()
583 e->sad[n].profile = val; in snd_hdmi_write_eld_info()
584 if (n >= e->sad_count) in snd_hdmi_write_eld_info()
585 e->sad_count = n + 1; in snd_hdmi_write_eld_info()
592 void snd_hdmi_eld_update_pcm_info(struct parsed_hdmi_eld *e, in snd_hdmi_eld_update_pcm_info() argument
609 for (i = 0; i < e->sad_count; i++) { in snd_hdmi_eld_update_pcm_info()
610 struct cea_sad *a = &e->sad[i]; in snd_hdmi_eld_update_pcm_info()