summaryrefslogtreecommitdiff
path: root/sound/pci/hda/hda_local.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-11-18 15:03:56 +0400
committerTakashi Iwai <tiwai@suse.de>2013-11-26 16:42:38 +0400
commitb21bdd0d343c8b2496690283211e27c9af598ed3 (patch)
tree23500f17dae3e8998009078e389f5702572ebbbf /sound/pci/hda/hda_local.h
parent873ce8ad502cce3ba9295890d52afcce385d4107 (diff)
downloadlinux-b21bdd0d343c8b2496690283211e27c9af598ed3.tar.xz
ALSA: hda - Split the generic parser as an individual module
Drop the hard dependency on the generic parser code and load / unload the generic parser code dynamically if built as a module. This allows us to avoid the generic parser if only HDMI/DP codecs are found. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_local.h')
-rw-r--r--sound/pci/hda/hda_local.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h
index d398b648bb5d..4d571a6d9230 100644
--- a/sound/pci/hda/hda_local.h
+++ b/sound/pci/hda/hda_local.h
@@ -352,14 +352,7 @@ int snd_hda_multi_out_analog_cleanup(struct hda_codec *codec,
/*
* generic codec parser
*/
-#ifdef CONFIG_SND_HDA_GENERIC
int snd_hda_parse_generic_codec(struct hda_codec *codec);
-#else
-static inline int snd_hda_parse_generic_codec(struct hda_codec *codec)
-{
- return -ENODEV;
-}
-#endif
/*
* generic proc interface