Skip to contentSkip to conversation

sound build error in mainline (CONFIG_PROC_FS=n)

DISCUSSION Randy Dunlap 2 participants 2 messages Aug 18, 2010 – Aug 19, 2010 Sound

lore
Share & tools
lore
#0 lore raw

ERROR: "hdmi_eld_update_pcm_info" [sound/pci/hda/snd-hda-codec-nvhdmi.ko] undefined!
ERROR: "hdmi_eld_update_pcm_info" [sound/pci/hda/snd-hda-codec-intelhdmi.ko] undefined!

Signature · 2 lines
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
#1 lore raw

At Wed, 18 Aug 2010 13:47:42 -0700,

Quoted 4 lines · Randy Dunlap

ERROR: "hdmi_eld_update_pcm_info" [sound/pci/hda/snd-hda-codec-nvhdmi.ko] undefined!
ERROR: "hdmi_eld_update_pcm_info" [sound/pci/hda/snd-hda-codec-intelhdmi.ko] undefined!

Thanks, fixed now with the patch below.

Takashi

Quoted 1 line

From 274714f55c023c683a6b2deedfb2209a9457f4ec Mon Sep 17 00:00:00 2001

From: Takashi Iwai <[email protected]>
Date: Thu, 19 Aug 2010 08:11:53 +0200
Subject: [PATCH] ALSA: hda - Fix build error with CONFIG_PROC_FS=n

hdmi_eld_update_pcm_info() must be always compiled in.

---
 sound/pci/hda/hda_eld.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/pci/hda/hda_eld.c +2 -2
index 803b298..26c3ade 100644
@@ -596,6 +596,8 @@ void snd_hda_eld_proc_free(struct hda_codec *codec, struct hdmi_eld *eld)
 }
 EXPORT_SYMBOL_HDA(snd_hda_eld_proc_free);
 
+#endif /* CONFIG_PROC_FS */
+
 /* update PCM info based on ELD */
 void hdmi_eld_update_pcm_info(struct hdmi_eld *eld, struct hda_pcm_stream *pcm,
 			      struct hda_pcm_stream *codec_pars)
@@ -644,5 +646,3 @@ void hdmi_eld_update_pcm_info(struct hdmi_eld *eld, struct hda_pcm_stream *pcm,
 	pcm->maxbps = min(pcm->maxbps, codec_pars->maxbps);
 }
 EXPORT_SYMBOL_HDA(hdmi_eld_update_pcm_info);
-
-#endif /* CONFIG_PROC_FS */
Signature · 1 line
1.7.2.1