Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f664417e authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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



This reduces the resultant binary size.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 83048ea7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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)
{