ALSA: hda/ca0132 - Slight optimization for build with DSP
authorTakashi Iwai <tiwai@suse.de>
Mon, 11 Feb 2013 13:18:29 +0000 (14:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 11 Feb 2013 13:18:29 +0000 (14:18 +0100)
This reduces the resultant binary size.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c

index fb7a32e730af40de6895f693dede5b51914c1e32..b1e099a3369ce9ec9ac3e15a784c1ba0ae05e43d 100644 (file)
@@ -2615,6 +2615,7 @@ static int dspload_image(struct hda_codec *codec,
        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 @@ static bool dspload_is_loaded(struct hda_codec *codec)
 
        return true;
 }
+#else
+#define dspload_is_loaded(codec)       false
+#endif
 
 static bool dspload_wait_loaded(struct hda_codec *codec)
 {