summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/ardour/types.h1
-rw-r--r--libs/ardour/port_manager.cc19
2 files changed, 2 insertions, 18 deletions
diff --git a/libs/ardour/ardour/types.h b/libs/ardour/ardour/types.h
index dbe8635300..be71b4afda 100644
--- a/libs/ardour/ardour/types.h
+++ b/libs/ardour/ardour/types.h
@@ -658,7 +658,6 @@ namespace ARDOUR {
/* non-JACK related flags */
Hidden = 0x20,
Shadow = 0x40,
- ControlOnly = 0x80, /* MIDI, do not use as a source of music/performance data */
};
struct LatencyRange {
diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc
index 36b3d1ca46..408e780460 100644
--- a/libs/ardour/port_manager.cc
+++ b/libs/ardour/port_manager.cc
@@ -273,23 +273,7 @@ PortManager::get_ports (const string& port_name_pattern, DataType type, PortFlag
return 0;
}
- int ret = _backend->get_ports (port_name_pattern, type, flags, s);
- if (!ret) {
- return ret;
- }
-
- if (!(flags & ControlOnly)) {
- /* remove all ports whose name indicates that they are for control only */
- for (vector<string>::iterator si = s.begin(); si != s.end();) {
- if (port_is_control_only (*si)) {
- si = s.erase (si);
- } else {
- ++si;
- }
- }
- }
-
- return 0;
+ return _backend->get_ports (port_name_pattern, type, flags, s);
}
void
@@ -819,6 +803,7 @@ PortManager::port_is_control_only (std::string const& name)
const char * const control_only_ports[] = {
X_(".*Ableton Push.*"),
+ X_(".*FaderPort .*"),
};
pattern = "(";