updated to version 1.1

It fixes a small bug + an issue in card detection preventing it to work
with hdsp9652 cards. It fixes too FLTK detection in configure.
This commit is contained in:
Takashi Iwai 2003-07-28 12:58:10 +00:00
parent 7dc10adba2
commit 912758aebd
2 changed files with 11 additions and 9 deletions

View file

@ -1,5 +1,5 @@
AC_INIT(src/hdspconf.cxx)
AM_INIT_AUTOMAKE(hdspconf, 1.0)
AM_INIT_AUTOMAKE(hdspconf, 1.1)
AC_PROG_CXX
AC_PROG_MAKE_SET
@ -53,7 +53,7 @@ AC_PATH_PROG(FLTK_CONFIG, fltk-config, no)
if test "$FLTK_CONFIG" = "no"; then
AC_MSG_ERROR(no fltk-config is found)
fi
FLTK_CXXFLAGS=`$FLTK_CONFIG $fltk_config_args --cxxflags`
FLTK_CXXFLAGS="`$FLTK_CONFIG $fltk_config_args --cxxflags` -fno-exceptions"
FLTK_LIBS=`$FLTK_CONFIG $fltk_config_args --ldflags`
CXXFLAGS="$CXXFLAGS $ALSA_CFLAGS $FLTK_CXXFLAGS"

View file

@ -134,7 +134,7 @@ int main(int argc, char **argv)
HC_XpmRenderer *rme_logo;
HC_AboutText *about_text;
Fl_Group *about_pane;
char **name;
char *name;
int card;
int hdsp_cards[4];
int alsa_index[4];
@ -152,24 +152,26 @@ int main(int argc, char **argv)
if (card < 0) {
break;
} else {
snd_card_get_longname(card, name);
printf("Card %d : %s\n", card, *name);
if (!strncmp(*name, "RME Hammerfall DSP + Multiface", 30)) {
snd_card_get_longname(card, &name);
printf("Card %d : %s\n", card, name);
if (!strncmp(name, "RME Hammerfall DSP + Multiface", 30)) {
printf("Multiface found !\n");
hdsp_cards[cards] = MULTIFACE;
alsa_index[cards] = card;
cards++;
} else if (!strncmp(*name, "RME Hammerfall DSP + Digiface", 29)) {
} else if (!strncmp(name, "RME Hammerfall DSP + Digiface", 29)) {
printf("Digiface found !\n");
hdsp_cards[cards] = DIGIFACE;
alsa_index[cards] = card;
cards++;
} else if (!strncmp(*name, "RME HDSP 9652", 13)) {
} else if (!strncmp(name, "RME Hammerfall HDSP 9652", 24)) {
printf("HDSP 9652 found !\n");
hdsp_cards[cards] = HDSP9652;
alsa_index[cards] = card;
cards++;
}
} else if (!strncmp(name, "RME Hammerfall DSP", 18)) {
printf("Uninitialized HDSP card found. Use hdsploader to upload firmware.\n");
}
}
}
if (!cards) {