From 2bc6c86a8de4b894ee19df79675b9fc7ce659a8a Mon Sep 17 00:00:00 2001 From: "Geoffrey D. Bennett" Date: Sun, 29 Sep 2024 04:07:07 +0930 Subject: [PATCH] Handle per-channel link buttons Older kernel versions had one link button per channel pair. --- src/iface-mixer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/iface-mixer.c b/src/iface-mixer.c index 2905ff7..f7c6be0 100644 --- a/src/iface-mixer.c +++ b/src/iface-mixer.c @@ -260,8 +260,13 @@ static void create_input_link_control( int from, to; get_two_num_from_string(elem->name, &from, &to); + + // skip even numbers + if (!(from % 2)) + return; + if (to == -1) - to = from; + to = from + 1; gtk_grid_attach(GTK_GRID(grid), w, from - 1, current_row, to - from + 1, 1); }