mirror of
https://github.com/alsa-project/alsa-utils
synced 2025-01-03 09:09:45 +01:00
Cleanups and fixed arguments for *_open() - default.
This commit is contained in:
parent
e875ea948d
commit
9f29bedbfd
3 changed files with 4 additions and 3 deletions
|
@ -395,7 +395,8 @@ mixer_abort (ErrType error,
|
||||||
{
|
{
|
||||||
case ERR_OPEN:
|
case ERR_OPEN:
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
PRGNAME ": failed to open mixer %s: %s\n",
|
PRGNAME ": function %s failed for %s: %s\n",
|
||||||
|
err_string,
|
||||||
card_id,
|
card_id,
|
||||||
snd_strerror (xerrno));
|
snd_strerror (xerrno));
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -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");
|
fprintf(stderr, "can't open sequencer\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -254,7 +254,7 @@ static void init_seq(char *source, char *dest)
|
||||||
snd_seq_addr_t addr;
|
snd_seq_addr_t addr;
|
||||||
int err, counti, counto;
|
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");
|
perror("snd_seq_open");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue