ALSA: hda/ca0132 - Slight optimization for build with DSP

This reduces the resultant binary size.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2013-02-11 14:18:29 +01:00
parent 83048ea7b1
commit f664417e23
1 changed files with 4 additions and 0 deletions

View File

@ -2615,6 +2615,7 @@ static int dspload_image(struct hda_codec *codec,
return status; return status;
} }
#ifdef CONFIG_SND_HDA_CODEC_CA0132_DSP
static bool dspload_is_loaded(struct hda_codec *codec) static bool dspload_is_loaded(struct hda_codec *codec)
{ {
unsigned int data = 0; unsigned int data = 0;
@ -2626,6 +2627,9 @@ static bool dspload_is_loaded(struct hda_codec *codec)
return true; return true;
} }
#else
#define dspload_is_loaded(codec) false
#endif
static bool dspload_wait_loaded(struct hda_codec *codec) static bool dspload_wait_loaded(struct hda_codec *codec)
{ {