Fix input counting for Clarett+ series

The Clarett+ series don't have a pad function, so can't rely on that
for creating input controls. Look for "Line ... Capture Switch" rather
than "Line ... Pad Capture Switch".
This commit is contained in:
Geoffrey D. Bennett
2023-09-20 03:36:53 +09:30
parent cf7d2b2b9d
commit 7c9ec68d7c

View File

@@ -155,9 +155,8 @@ static void create_input_controls(
) { ) {
GArray *elems = card->elems; GArray *elems = card->elems;
// there's consistently a pad capture for each analogue input that // find how many inputs have switches
// has a control int input_count = get_max_elem_by_name(elems, "Line", "Capture Switch");
int input_count = get_max_elem_by_name(elems, "Line", "Pad Capture Switch");
// Only the 18i20 Gen 2 has no input controls // Only the 18i20 Gen 2 has no input controls
if (!input_count) if (!input_count)