From 7c9ec68d7ce799a0464596ec7959244eeb365d39 Mon Sep 17 00:00:00 2001 From: "Geoffrey D. Bennett" Date: Wed, 20 Sep 2023 03:36:53 +0930 Subject: [PATCH] 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". --- src/iface-mixer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/iface-mixer.c b/src/iface-mixer.c index 13556f3..d94b09f 100644 --- a/src/iface-mixer.c +++ b/src/iface-mixer.c @@ -155,9 +155,8 @@ static void create_input_controls( ) { GArray *elems = card->elems; - // there's consistently a pad capture for each analogue input that - // has a control - int input_count = get_max_elem_by_name(elems, "Line", "Pad Capture Switch"); + // find how many inputs have switches + int input_count = get_max_elem_by_name(elems, "Line", "Capture Switch"); // Only the 18i20 Gen 2 has no input controls if (!input_count)