Fix build with softfloat option

Fix build of alsa-lib when --with-softfloat is used:
 - disable ladspa plugin
 - don't use sqrt() function

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2009-01-21 09:25:48 +01:00
parent b06414151d
commit a789b66d00
2 changed files with 9 additions and 0 deletions

View file

@ -1450,7 +1450,14 @@ static int simple_add1(snd_mixer_class_t *class, const char *name,
}
if (ctype != SND_CTL_ELEM_TYPE_BOOLEAN)
return 0;
#ifdef HAVE_SOFT_FLOAT
/* up to 256 channels */
for (n = 1; n < 256; n++)
if (n * n == values)
break;
#else
n = sqrt((double)values);
#endif
if (n * n != values)
return 0;
values = n;