]> git.alsa-project.org Git - alsa-tools.git/commitdiff
updated to version 1.1
authorTakashi Iwai <tiwai@suse.de>
Mon, 28 Jul 2003 12:58:10 +0000 (12:58 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 28 Jul 2003 12:58:10 +0000 (12:58 +0000)
It fixes a small bug + an issue in card detection preventing it to work
with hdsp9652 cards. It fixes too FLTK detection in configure.

hdspconf/configure.in
hdspconf/src/hdspconf.cxx

index 32a448c1f6517e5b8ffeb729b304822c76f2af42..4ff0181bf0758825b58008cfbb9b9e12c8262947 100644 (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"
index fb43d0d41d4da82726943bd58b276f9048142266..e5c31d21a473026a01d63733c575f67efa6e601e 100644 (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) {