~martijnbraam/lsplug

f0f21b76d934688f8f05a2367b14c7a77725ba8b — Martijn Braam 9 months ago 0748c96 master
List sound devices
1 files changed, 3 insertions(+), 0 deletions(-)

M lsplug/__main__.py
M lsplug/__main__.py => lsplug/__main__.py +3 -0
@@ 107,6 107,9 @@ def get_ports(filter=None, use_db=True, fixed=False, portinfo=False, devinfo=Fal
                glob_device_basename(os.path.join(intf, "video4linux/video*"), "/dev/")
                glob_device_basename(os.path.join(intf, "media*"), "/dev/")

                # Check for sound devices
                glob_device_basename(os.path.join(intf, "sound/*"), "alsa ")

                # Check for input devices
                glob_device_basename(os.path.join(intf, "input/input*/event*"), "/dev/input/")
                glob_device_basename(os.path.join(intf, "input/input*/js*"), "/dev/input/")