From: Jaroslav Kysela Date: Fri, 12 Oct 2001 08:12:09 +0000 (+0000) Subject: Update by Uros X-Git-Tag: v1.0.3~126 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=b10f3cbcb6145ef86949bbafc7563f78def4d832;p=alsa-tools.git Update by Uros --- diff --git a/sb16_csp/cspctl.c b/sb16_csp/cspctl.c index 073b4bf..582c136 100644 --- a/sb16_csp/cspctl.c +++ b/sb16_csp/cspctl.c @@ -1,11 +1,8 @@ /* * SB16/AWE32 Creative Signal Processor (ASP/CSP) control program - * ver 0.2.0 * * Copyright (c) 2000 by Uros Bizjak * - * http://www.kss-loka.si/~uros/CSP.html - * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -22,13 +19,13 @@ * */ -#include +#include #include #include #include #include -#include #include +#include /* --- commands --- */ enum { @@ -66,11 +63,6 @@ static void help(char *command) , command); } -static void version(void) -{ - printf("Version: " VERSION "\n"); -} - static int csp_command (int idx, int dev, int command, char *filename) { int fd, err; @@ -136,21 +128,14 @@ int main(int argc, char *argv[]) help(argv[0]); return 0; } - if (argc > 1 && !strcmp(argv[1], "--version")) { - version(); - return 0; - } strcpy (microcode.info.codec_name, "UNKNOWN"); microcode.info.func_req = 1; - while ((c = getopt(argc, argv, "hvc:f:d:")) != EOF) { + while ((c = getopt(argc, argv, "hc:f:d:")) != EOF) { switch (c) { case 'h': help(argv[0]); return 0; - case 'v': - version(); - return 0; case 'c': { card = snd_card_get_index(optarg); @@ -210,10 +195,10 @@ int main(int argc, char *argv[]) exit(1); } - // CSP chip is present only on SB16 and SBAWE cards - if (strcmp(snd_ctl_card_info_get_driver(card_info), "SB 16") != 0 && + // CSP chip is present only on SB16 and SB AWE cards + if (strcmp(snd_ctl_card_info_get_driver(card_info), "SB16") != 0 && strcmp(snd_ctl_card_info_get_driver(card_info), "SB AWE") != 0) { - error("not a SB_16 or SB_AWE type card"); + error("not a SB16 or SB AWE type card"); exit(1); }