alsa: mixer - reorder the type field in path parser
authorJaroslav Kysela <perex@perex.cz>
Fri, 18 Sep 2020 14:30:02 +0000 (16:30 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Sun, 4 Oct 2020 11:22:53 +0000 (14:22 +0300)
The items array is assigned later and the order of fields is important.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/modules/alsa/alsa-mixer.c

index b1f6c490a407303d913931a73f5d7238fed63d02..7666cf434315098e93bac6b511e307185523305d 100644 (file)
@@ -2781,8 +2781,8 @@ pa_alsa_path* pa_alsa_path_new(const char *paths_dir, const char *fname, pa_alsa
         { "priority",            pa_config_parse_unsigned,          NULL, "General" },
         { "description-key",     pa_config_parse_string,            NULL, "General" },
         { "description",         pa_config_parse_string,            NULL, "General" },
-        { "type",                parse_type,                        NULL, "General" },
         { "mute-during-activation", pa_config_parse_bool,           NULL, "General" },
+        { "type",                parse_type,                        NULL, "General" },
         { "eld-device",          parse_eld_device,                  NULL, "General" },
 
         /* [Option ...] */