aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_eld.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/hda_eld.c')
-rw-r--r--sound/pci/hda/hda_eld.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_eld.c b/sound/pci/hda/hda_eld.c
index 9446a5abea13..20fa6aee29c0 100644
--- a/sound/pci/hda/hda_eld.c
+++ b/sound/pci/hda/hda_eld.c
@@ -560,13 +560,14 @@ static void hdmi_write_eld_info(struct snd_info_entry *entry,
560} 560}
561 561
562 562
563int snd_hda_eld_proc_new(struct hda_codec *codec, struct hdmi_eld *eld) 563int snd_hda_eld_proc_new(struct hda_codec *codec, struct hdmi_eld *eld,
564 int index)
564{ 565{
565 char name[32]; 566 char name[32];
566 struct snd_info_entry *entry; 567 struct snd_info_entry *entry;
567 int err; 568 int err;
568 569
569 snprintf(name, sizeof(name), "eld#%d", codec->addr); 570 snprintf(name, sizeof(name), "eld#%d.%d", codec->addr, index);
570 err = snd_card_proc_new(codec->bus->card, name, &entry); 571 err = snd_card_proc_new(codec->bus->card, name, &entry);
571 if (err < 0) 572 if (err < 0)
572 return err; 573 return err;