AC_INIT(src/hdspconf.cxx)
-AM_INIT_AUTOMAKE(hdspconf, 1.0)
+AM_INIT_AUTOMAKE(hdspconf, 1.1)
AC_PROG_CXX
AC_PROG_MAKE_SET
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"
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];
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) {