From 197f469bd8a9aa8463ccd700b5bddf508362494d Mon Sep 17 00:00:00 2001 From: "Geoffrey D. Bennett" Date: Thu, 30 Nov 2023 00:43:11 +1030 Subject: [PATCH] Allow for phantom power per-channel --- src/iface-mixer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/iface-mixer.c b/src/iface-mixer.c index 46bc28e..39b3646 100644 --- a/src/iface-mixer.c +++ b/src/iface-mixer.c @@ -229,6 +229,8 @@ static void create_input_controls( } else if (strstr(elem->name, "Phantom Power Capture Switch")) { int from, to; get_two_num_from_string(elem->name, &from, &to); + if (to == -1) + to = from; w = make_boolean_alsa_elem(elem, "48V Off", "48V On"); gtk_widget_set_tooltip_text(w, phantom_descr); gtk_grid_attach(GTK_GRID(input_grid), w, from, 4, to - from + 1, 1);