Skip to content

Commit

Permalink
ALSA: hda/ca0132 - Slight optimization for build with DSP
Browse files Browse the repository at this point in the history
This reduces the resultant binary size.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Feb 11, 2013
1 parent 83048ea commit f664417
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sound/pci/hda/patch_ca0132.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
{
Expand Down

0 comments on commit f664417

Please sign in to comment.