ALSA: hda/ca0132 - Slight optimization for build with DSP
This reduces the resultant binary size.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c
index fb7a32e..b1e099a 100644
--- a/sound/pci/hda/patch_ca0132.c
+++ b/sound/pci/hda/patch_ca0132.c
@@ -2615,6 +2615,7 @@
return status;
}
+#ifdef CONFIG_SND_HDA_CODEC_CA0132_DSP
static bool dspload_is_loaded(struct hda_codec *codec)
{
unsigned int data = 0;
@@ -2626,6 +2627,9 @@
return true;
}
+#else
+#define dspload_is_loaded(codec) false
+#endif
static bool dspload_wait_loaded(struct hda_codec *codec)
{