+ uint32_t p = 0;
+
+ PortGroup::BundleList const & bundles = group->bundles ();
+
+ for (PortGroup::BundleList::const_iterator i = bundles.begin(); i != bundles.end(); ++i) {
+
+ if ((*i)->bundle == bc.bundle) {
+
+ /* found the bundle */
+
+ if (_matrix->show_only_bundles()) {
+ return p;
+ } else {
+ return p + bc.bundle->overall_channel_to_type (_matrix->type (), bc.channel);
+ }
+
+ }
+
+ /* move past this bundle */