aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_ca0132.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-02-11 08:18:29 -0500
committerTakashi Iwai <tiwai@suse.de>2013-02-11 08:18:29 -0500
commitf664417e23192087bb9bdafdff80e04104994cc0 (patch)
tree1de70657ff9fd21faa3f5ed939e19220539e0138 /sound/pci/hda/patch_ca0132.c
parent83048ea7b1d11f5e560dea53873fb51d860202eb (diff)
ALSA: hda/ca0132 - Slight optimization for build with DSP
This reduces the resultant binary size. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_ca0132.c')
-rw-r--r--sound/pci/hda/patch_ca0132.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c
index fb7a32e730af..b1e099a3369c 100644
--- a/sound/pci/hda/patch_ca0132.c
+++ b/sound/pci/hda/patch_ca0132.c
@@ -2615,6 +2615,7 @@ static int dspload_image(struct hda_codec *codec,
2615 return status; 2615 return status;
2616} 2616}
2617 2617
2618#ifdef CONFIG_SND_HDA_CODEC_CA0132_DSP
2618static bool dspload_is_loaded(struct hda_codec *codec) 2619static bool dspload_is_loaded(struct hda_codec *codec)
2619{ 2620{
2620 unsigned int data = 0; 2621 unsigned int data = 0;
@@ -2626,6 +2627,9 @@ static bool dspload_is_loaded(struct hda_codec *codec)
2626 2627
2627 return true; 2628 return true;
2628} 2629}
2630#else
2631#define dspload_is_loaded(codec) false
2632#endif
2629 2633
2630static bool dspload_wait_loaded(struct hda_codec *codec) 2634static bool dspload_wait_loaded(struct hda_codec *codec)
2631{ 2635{