]> git.alsa-project.org Git - alsa-utils.git/commitdiff
amidi: fix --list-devices
authorClemens Ladisch <clemens@ladisch.de>
Tue, 27 Jun 2006 06:19:15 +0000 (08:19 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Tue, 27 Jun 2006 06:19:15 +0000 (08:19 +0200)
Fix the formatting of devices with several unnamed subdevices,
and show input/outputness for these, too.

amidi/amidi.1
amidi/amidi.c

index a3c85db1c90c7661c567b984a3b5fccf50bd47b6..c58d65c0af2fe59e0b04af615e8158bb6f32ad59 100644 (file)
@@ -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
index 28d7e1e753cecfa1a947800df8c0131ff6b1d7f7..6cc68a0d42406376b64eee7821aa51cf34a063de 100644 (file)
@@ -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;