Allow for phantom power per-channel

This commit is contained in:
Geoffrey D. Bennett
2023-11-30 00:43:11 +10:30
parent 658f946202
commit 197f469bd8

View File

@@ -229,6 +229,8 @@ static void create_input_controls(
} else if (strstr(elem->name, "Phantom Power Capture Switch")) { } else if (strstr(elem->name, "Phantom Power Capture Switch")) {
int from, to; int from, to;
get_two_num_from_string(elem->name, &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"); w = make_boolean_alsa_elem(elem, "48V Off", "48V On");
gtk_widget_set_tooltip_text(w, phantom_descr); gtk_widget_set_tooltip_text(w, phantom_descr);
gtk_grid_attach(GTK_GRID(input_grid), w, from, 4, to - from + 1, 1); gtk_grid_attach(GTK_GRID(input_grid), w, from, 4, to - from + 1, 1);