From: Peter Korsgaard Date: Wed, 7 Jan 2026 10:51:18 +0000 (+0100) Subject: alsaloop: parse_config(): handle short form -B / -E options X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=d4a4054bc774dcaf2337a8cbe8bc4e7a279d5a97;p=alsa-utils.git alsaloop: parse_config(): handle short form -B / -E options The usage info documents both short and long form arguments for these: "-B,--buffer buffer size in frames\n" "-E,--period period size in frames\n" But the short form was missing from the optstring so it wasn't accepted: alsaloop -B 123 -E 42 alsaloop: invalid option -- 'B' alsaloop: invalid option -- 'E' Fix that. Closes: https://github.com/alsa-project/alsa-utils/pull/317 Signed-off-by: Peter Korsgaard Signed-off-by: Jaroslav Kysela --- diff --git a/alsaloop/alsaloop.c b/alsaloop/alsaloop.c index 51fb646..e0911b0 100644 --- a/alsaloop/alsaloop.c +++ b/alsaloop/alsaloop.c @@ -425,7 +425,7 @@ static int parse_config(int argc, char *argv[], snd_output_t *output, while (1) { int c; if ((c = getopt_long(argc, argv, - "hdg:P:C:X:Y:x:l:t:F:f:c:r:s:benvA:S:a:m:T:O:w:UW:z", + "hdg:P:C:X:Y:x:l:t:F:f:c:r:B:E:s:benvA:S:a:m:T:O:w:UW:z", long_option, NULL)) < 0) break; switch (c) {