diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2006-06-27 08:19:15 +0200 |
---|---|---|
committer | Clemens Ladisch <clemens@ladisch.de> | 2006-06-27 08:19:15 +0200 |
commit | 7bae1b0a5b330c0cc96744aba8fc272827b0e027 (patch) | |
tree | 017dc06ca6a9d9debba1e25e0680e0abaac442bc /amidi | |
parent | 6764ddbd5355b3e923a7c4b968c3960a2ca57e44 (diff) |
amidi: fix --list-devices
Fix the formatting of devices with several unnamed subdevices,
and show input/outputness for these, too.
Diffstat (limited to 'amidi')
-rw-r--r-- | amidi/amidi.1 | 7 | ||||
-rw-r--r-- | amidi/amidi.c | 3 |
2 files changed, 3 insertions, 7 deletions
diff --git a/amidi/amidi.1 b/amidi/amidi.1 index a3c85db..c58d65c 100644 --- a/amidi/amidi.1 +++ b/amidi/amidi.1 @@ -1,4 +1,4 @@ -.TH AMIDI 1 "15 Feb 2005" +.TH AMIDI 1 "26 Jun 2006" .SH NAME amidi \- read from and write to ALSA RawMIDI ports @@ -146,11 +146,6 @@ system-wide rawmidi definitions .I ~/.asoundrc user specific rawmidi definitions -.SH BUGS -The -.I \-\-list\-devices -option pretends that output and input ports are the same. - .SH SEE ALSO aplaymidi(1) .br diff --git a/amidi/amidi.c b/amidi/amidi.c index 28d7e1e..6cc68a0 100644 --- a/amidi/amidi.c +++ b/amidi/amidi.c @@ -180,7 +180,8 @@ static void list_device(snd_ctl_t *ctl, int card, int device) in ? 'I' : ' ', out ? 'O' : ' ', card, device, name); } 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); } else { sub = 0; |