diff --git a/libs/surfaces/console1/c1_operations.cc b/libs/surfaces/console1/c1_operations.cc index 32f08265c5..571d281a5f 100644 --- a/libs/surfaces/console1/c1_operations.cc +++ b/libs/surfaces/console1/c1_operations.cc @@ -932,7 +932,7 @@ Console1::map_eq_mode () if (!rt) { return; } - EQ_MODE current_eq_mode = EQ_MODE (rt->eq_mode_control() ? rt->eq_mode_control()->get_value() : -1); + EQ_MODE current_eq_mode = EQ_MODE (rt->eq_type_control() ? rt->eq_type_control()->get_value() : -1); DEBUG_TRACE (DEBUG::Console1, string_compose ("map_eq_mode() - mode: %1\n", current_eq_mode)); if (current_eq_mode != strip_eq_mode) { strip_eq_mode = current_eq_mode; diff --git a/libs/surfaces/console1/console1.cc b/libs/surfaces/console1/console1.cc index 64d4b0d89e..a5c3666583 100644 --- a/libs/surfaces/console1/console1.cc +++ b/libs/surfaces/console1/console1.cc @@ -721,17 +721,15 @@ Console1::set_current_stripable (std::shared_ptr r) stripable_connections, MISSING_INVALIDATOR, std::bind (&Console1::map_eq, this), this); } #ifdef MIXBUS - std::shared_ptr rt = std::dynamic_pointer_cast( _current_stripable ); - if (rt) - { - DEBUG_TRACE(DEBUG::Console1, "Cast to Route ok \n"); - if( rt->eq_mode_control() ) - { - DEBUG_TRACE(DEBUG::Console1, "Control EQ_Mode available \n"); - rt->eq_mode_control()->Changed.connect( - stripable_connections, MISSING_INVALIDATOR, std::bind(&Console1::map_eq_mode, this), this); - } - } + std::shared_ptr rt = std::dynamic_pointer_cast( _current_stripable ); + if (rt) { + DEBUG_TRACE(DEBUG::Console1, "Cast to Route ok \n"); + if (rt->eq_type_control()) { + DEBUG_TRACE(DEBUG::Console1, "Control EQ_Mode available \n"); + rt->eq_type_control()->Changed.connect( + stripable_connections, MISSING_INVALIDATOR, std::bind(&Console1::map_eq_mode, this), this); + } + } #endif for (uint32_t i = 0; i < _current_stripable->eq_band_cnt (); ++i) { if (_current_stripable->mapped_control (EQ_BandFreq, i)) {