Fix SNAFU with auto-connect. Fixes #3379.
[ardour.git] / libs / ardour / audioengine.cc
index c40180e91db372e005c3d75d820be7cb667363d9..3453deea5c700db8ab027651c05e823b0bfd5223 100644 (file)
@@ -1166,16 +1166,22 @@ AudioEngine::get_physical (DataType type, unsigned long flags, vector<string>& p
        }
 }
 
+/** Get physical ports for which JackPortIsOutput is set; ie those that correspond to
+ *  a physical input connector.
+ */
 void
 AudioEngine::get_physical_inputs (DataType type, vector<string>& ins)
 {
-       get_physical (type, JackPortIsInput, ins);
+       get_physical (type, JackPortIsOutput, ins);
 }
 
+/** Get physical ports for which JackPortIsInput is set; ie those that correspond to
+ *  a physical output connector.
+ */
 void
 AudioEngine::get_physical_outputs (DataType type, vector<string>& outs)
 {
-       get_physical (type, JackPortIsOutput, outs);
+       get_physical (type, JackPortIsInput, outs);
 }
 
 void