]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Cleanups and fixed arguments for *_open() - default.
authorJaroslav Kysela <perex@perex.cz>
Fri, 15 Jun 2001 08:55:17 +0000 (08:55 +0000)
committerJaroslav Kysela <perex@perex.cz>
Fri, 15 Jun 2001 08:55:17 +0000 (08:55 +0000)
alsamixer/alsamixer.c
seq/aconnect/aconnect.c
seq/aseqnet/aseqnet.c

index 018e2fdb3525ae82421f6c4ffeb850f4df9002c9..9292f0aaa1ff35435dfda695e6d3a00ffe4f86d9 100644 (file)
@@ -395,7 +395,8 @@ mixer_abort (ErrType     error,
     {
     case ERR_OPEN:
       fprintf (stderr,
-              PRGNAME ": failed to open mixer %s: %s\n",
+              PRGNAME ": function %s failed for %s: %s\n",
+              err_string,
               card_id,
               snd_strerror (xerrno));
       break;
index 47ad61bbecf69fde8f4f761cbb59aebf13ad8c34..3e4b96c27fe5bb9c4869bc3a53e27c8f70e8ae3c 100644 (file)
@@ -350,7 +350,7 @@ int main(int argc, char **argv)
                }
        }
 
-       if (snd_seq_open(&seq, "hw", SND_SEQ_OPEN_DUPLEX, 0) < 0) {
+       if (snd_seq_open(&seq, "default", SND_SEQ_OPEN_DUPLEX, 0) < 0) {
                fprintf(stderr, "can't open sequencer\n");
                return 1;
        }
index 50e5c649767be50823bfb4992e475729021cd974..17d7b1eaffa284b46199901c1e4f3dfdf6ab925a 100644 (file)
@@ -254,7 +254,7 @@ static void init_seq(char *source, char *dest)
        snd_seq_addr_t addr;
        int err, counti, counto;
 
-       if (snd_seq_open(&handle, "hw", SND_SEQ_OPEN_DUPLEX, 0) < 0) {
+       if (snd_seq_open(&handle, "default", SND_SEQ_OPEN_DUPLEX, 0) < 0) {
                perror("snd_seq_open");
                exit(1);
        }