]> git.alsa-project.org Git - alsa-utils.git/commit
amidi: Fix device list
authorTakashi Iwai <tiwai@suse.de>
Fri, 23 Jun 2006 12:53:38 +0000 (14:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 23 Jun 2006 12:53:38 +0000 (14:53 +0200)
commit6764ddbd5355b3e923a7c4b968c3960a2ca57e44
treece64378210c49c63046927f26d3cbf4b5cc4a022
parent8a852de04b3a94182c90385f63a63007b2206779
amidi: Fix device list

From: Matthias Koenig <mk@phasorlab.de>

amidi does not show all devices with the --list-devices option.
It assumes that all output ports equals input ports and does not
show an input only port.
This patch extends the output of amidi -l by one column which shows
the input/output direction of each port.
E.g.

zebra:amidi # ./amidi -l
Dir Device    Name
IO  hw:1,0    MPU-401 MIDI 1-0
IO  hw:2,0,0  Keystation MIDI 1
IO  hw:3,0,0  Miditerminal 1
IO  hw:3,0,1  Miditerminal 2
IO  hw:3,0,2  Miditerminal 3
IO  hw:3,0,3  Miditerminal 4
I   hw:3,0,4  Miditerminal SMPTE
amidi/amidi.c