mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-02-22 01:40:18 -05:00
hdspmixer: retab and reindent code.
Something seriously was wrong, probably different patches with different tabwidth levels. I switched to spaces to avoid ambiguity and let vim reindent everything. Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
f2bb47662d
commit
d0d9470dee
1 changed files with 29 additions and 29 deletions
|
|
@ -39,18 +39,18 @@ int main(int argc, char **argv)
|
||||||
char *name;
|
char *name;
|
||||||
int card;
|
int card;
|
||||||
int cards = 0;
|
int cards = 0;
|
||||||
|
|
||||||
card = -1;
|
card = -1;
|
||||||
printf("\nHDSPMixer %s - Copyright (C) 2003 Thomas Charbonnel <thomas@undata.org>\n", VERSION);
|
printf("\nHDSPMixer %s - Copyright (C) 2003 Thomas Charbonnel <thomas@undata.org>\n", VERSION);
|
||||||
printf("This program comes with ABSOLUTELY NO WARRANTY\n");
|
printf("This program comes with ABSOLUTELY NO WARRANTY\n");
|
||||||
printf("HDSPMixer is free software, see the file COPYING for details\n\n");
|
printf("HDSPMixer is free software, see the file COPYING for details\n\n");
|
||||||
printf("Looking for RME cards :\n");
|
printf("Looking for RME cards :\n");
|
||||||
while (snd_card_next(&card) >= 0) {
|
while (snd_card_next(&card) >= 0) {
|
||||||
if (card < 0) {
|
if (card < 0) {
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
snd_card_get_longname(card, &name);
|
snd_card_get_longname(card, &name);
|
||||||
printf("Card %d : %s\n", card, name);
|
printf("Card %d : %s\n", card, name);
|
||||||
if (!strncmp(name, "RME Hammerfall DSP + Multiface", 30)) {
|
if (!strncmp(name, "RME Hammerfall DSP + Multiface", 30)) {
|
||||||
printf("Multiface found !\n");
|
printf("Multiface found !\n");
|
||||||
hdsp_cards[cards] = new HDSPMixerCard(Multiface, card);
|
hdsp_cards[cards] = new HDSPMixerCard(Multiface, card);
|
||||||
|
|
@ -67,34 +67,34 @@ int main(int argc, char **argv)
|
||||||
printf("HDSP 9632 found !\n");
|
printf("HDSP 9632 found !\n");
|
||||||
hdsp_cards[cards] = new HDSPMixerCard(H9632, card);
|
hdsp_cards[cards] = new HDSPMixerCard(H9632, card);
|
||||||
cards++;
|
cards++;
|
||||||
} else if (!strncmp(name, "RME MADIface", 12)) {
|
} else if (!strncmp(name, "RME MADIface", 12)) {
|
||||||
printf("RME MADIface found !\n");
|
printf("RME MADIface found !\n");
|
||||||
hdsp_cards[cards] = new HDSPMixerCard(HDSPeMADI, card);
|
hdsp_cards[cards] = new HDSPMixerCard(HDSPeMADI, card);
|
||||||
cards++;
|
cards++;
|
||||||
} else if (!strncmp(name, "RME MADI", 8)) {
|
} else if (!strncmp(name, "RME MADI", 8)) {
|
||||||
printf("RME MADI found !\n");
|
printf("RME MADI found !\n");
|
||||||
hdsp_cards[cards] = new HDSPMixerCard(HDSPeMADI, card);
|
hdsp_cards[cards] = new HDSPMixerCard(HDSPeMADI, card);
|
||||||
cards++;
|
cards++;
|
||||||
} else if (!strncmp(name, "RME RayDAT", 10)) {
|
} else if (!strncmp(name, "RME RayDAT", 10)) {
|
||||||
printf("RME RayDAT found !\n");
|
printf("RME RayDAT found !\n");
|
||||||
hdsp_cards[cards] = new HDSPMixerCard(HDSPeRayDAT, card);
|
hdsp_cards[cards] = new HDSPMixerCard(HDSPeRayDAT, card);
|
||||||
cards++;
|
cards++;
|
||||||
} else if (!strncmp(name, "RME AIO", 7)) {
|
} else if (!strncmp(name, "RME AIO", 7)) {
|
||||||
printf("RME AIO found !\n");
|
printf("RME AIO found !\n");
|
||||||
hdsp_cards[cards] = new HDSPMixerCard(HDSPeAIO, card);
|
hdsp_cards[cards] = new HDSPMixerCard(HDSPeAIO, card);
|
||||||
cards++;
|
cards++;
|
||||||
} else if (!strncmp(name, "RME Hammerfall DSP", 18)) {
|
} else if (!strncmp(name, "RME Hammerfall DSP", 18)) {
|
||||||
printf("Uninitialized HDSP card found.\nUse hdsploader to upload configuration data to the card.\n");
|
printf("Uninitialized HDSP card found.\nUse hdsploader to upload configuration data to the card.\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(name);
|
free(name);
|
||||||
if (!cards) {
|
if (!cards) {
|
||||||
printf("No RME cards found.\n");
|
printf("No RME cards found.\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
for (int i = cards; i < 3; ++i) {
|
for (int i = cards; i < 3; ++i) {
|
||||||
hdsp_cards[i] = NULL;
|
hdsp_cards[i] = NULL;
|
||||||
}
|
}
|
||||||
printf("%d RME cards %s found.\n", cards, (cards > 1) ? "cards" : "card");
|
printf("%d RME cards %s found.\n", cards, (cards > 1) ? "cards" : "card");
|
||||||
window = new HDSPMixerWindow(0, 0, hdsp_cards[0]->window_width, hdsp_cards[0]->window_height, "HDSPMixer", hdsp_cards[0], hdsp_cards[1], hdsp_cards[2]);
|
window = new HDSPMixerWindow(0, 0, hdsp_cards[0]->window_width, hdsp_cards[0]->window_height, "HDSPMixer", hdsp_cards[0], hdsp_cards[1], hdsp_cards[2]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue