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

@ -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) {