mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-09-21 02:29:57 +02:00
amidi: fix --list-devices
Fix the formatting of devices with several unnamed subdevices, and show input/outputness for these, too.
This commit is contained in:
parent
6764ddbd53
commit
7bae1b0a5b
2 changed files with 3 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
.TH AMIDI 1 "15 Feb 2005"
|
.TH AMIDI 1 "26 Jun 2006"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
amidi \- read from and write to ALSA RawMIDI ports
|
amidi \- read from and write to ALSA RawMIDI ports
|
||||||
|
@ -146,11 +146,6 @@ system-wide rawmidi definitions
|
||||||
.I ~/.asoundrc
|
.I ~/.asoundrc
|
||||||
user specific rawmidi definitions
|
user specific rawmidi definitions
|
||||||
|
|
||||||
.SH BUGS
|
|
||||||
The
|
|
||||||
.I \-\-list\-devices
|
|
||||||
option pretends that output and input ports are the same.
|
|
||||||
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
aplaymidi(1)
|
aplaymidi(1)
|
||||||
.br
|
.br
|
||||||
|
|
|
@ -180,7 +180,8 @@ static void list_device(snd_ctl_t *ctl, int card, int device)
|
||||||
in ? 'I' : ' ', out ? 'O' : ' ',
|
in ? 'I' : ' ', out ? 'O' : ' ',
|
||||||
card, device, name);
|
card, device, name);
|
||||||
} else
|
} else
|
||||||
printf(" hw:%d,%d %s (%d subdevices)\n",
|
printf("%c%c hw:%d,%d %s (%d subdevices)\n",
|
||||||
|
in ? 'I' : ' ', out ? 'O' : ' ',
|
||||||
card, device, name, subs);
|
card, device, name, subs);
|
||||||
} else {
|
} else {
|
||||||
sub = 0;
|
sub = 0;
|
||||||
|
|
Loading…
Reference in a new issue