Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: hda/hdmi: ELD procfs - print the codec NIDs

It is useful for the debugging to print also the used HDA codec NIDs
used for the given HDMI device. With the dynamic converter assignment
the converter NID is changed dynamically.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20220921093349.82680-1-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Jaroslav Kysela and committed by
Takashi Iwai
2fa22c3c 9bf320f0

+9 -3
+5 -1
sound/pci/hda/hda_eld.c
··· 440 440 } 441 441 442 442 void snd_hdmi_print_eld_info(struct hdmi_eld *eld, 443 - struct snd_info_buffer *buffer) 443 + struct snd_info_buffer *buffer, 444 + hda_nid_t pin_nid, int dev_id, hda_nid_t cvt_nid) 444 445 { 445 446 struct parsed_hdmi_eld *e = &eld->info; 446 447 char buf[SND_PRINT_CHANNEL_ALLOCATION_ADVISED_BUFSIZE]; ··· 463 462 464 463 snd_iprintf(buffer, "monitor_present\t\t%d\n", eld->monitor_present); 465 464 snd_iprintf(buffer, "eld_valid\t\t%d\n", eld->eld_valid); 465 + snd_iprintf(buffer, "codec_pin_nid\t\t0x%x\n", pin_nid); 466 + snd_iprintf(buffer, "codec_dev_id\t\t0x%x\n", dev_id); 467 + snd_iprintf(buffer, "codec_cvt_nid\t\t0x%x\n", cvt_nid); 466 468 if (!eld->eld_valid) 467 469 return; 468 470 snd_iprintf(buffer, "monitor_name\t\t%s\n", e->monitor_name);
+2 -1
sound/pci/hda/hda_local.h
··· 712 712 713 713 #ifdef CONFIG_SND_PROC_FS 714 714 void snd_hdmi_print_eld_info(struct hdmi_eld *eld, 715 - struct snd_info_buffer *buffer); 715 + struct snd_info_buffer *buffer, 716 + hda_nid_t pin_nid, int dev_id, hda_nid_t cvt_nid); 716 717 void snd_hdmi_write_eld_info(struct hdmi_eld *eld, 717 718 struct snd_info_buffer *buffer); 718 719 #endif
+2 -1
sound/pci/hda/patch_hdmi.c
··· 496 496 struct hdmi_spec_per_pin *per_pin = entry->private_data; 497 497 498 498 mutex_lock(&per_pin->lock); 499 - snd_hdmi_print_eld_info(&per_pin->sink_eld, buffer); 499 + snd_hdmi_print_eld_info(&per_pin->sink_eld, buffer, per_pin->pin_nid, 500 + per_pin->dev_id, per_pin->cvt_nid); 500 501 mutex_unlock(&per_pin->lock); 501 502 } 502 503