]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsaloop: parse_config(): handle long form --wake option
authorPeter Korsgaard <peter@korsgaard.com>
Wed, 7 Jan 2026 10:57:05 +0000 (11:57 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 25 May 2026 09:54:34 +0000 (11:54 +0200)
The usage info documents a long form --wake option:

"-W,--wake      process wake timeout in ms\n"

But it wasn't handled:

alsaloop --wake 42
alsaloop: unrecognized option '--wake'

Fix that.

Closes: https://github.com/alsa-project/alsa-utils/pull/317
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsaloop/alsaloop.c

index 9e457215a2eade0ebd7099e940c6cfdb11f2bb1d..917801153dd246fa667d3319fafe76cbee2aceb1 100644 (file)
@@ -386,6 +386,7 @@ static int parse_config(int argc, char *argv[], snd_output_t *output,
                {"ossmixer", 1, NULL, 'O'},
                {"workaround", 1, NULL, 'w'},
                {"xrun", 0, NULL, 'U'},
+               {"wake", 1, NULL, 'W'},
                {"syslog", 0, NULL, 'z'},
                {NULL, 0, NULL, 0},
        };