]> git.alsa-project.org Git - alsa-lib.git/commitdiff
topology: Add decompilation support for ignore_suspend
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Thu, 27 May 2021 12:24:49 +0000 (14:24 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 29 Jan 2023 17:55:29 +0000 (18:55 +0100)
Previous patch added build support for ignore_suspend, however it should
be also possible to decompile binary back to human readable form and not
lose data.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/topology/pcm.c

index b1e5dc592c3b18ed4757817aa36a8430a4051c52..ed4a2d716a304765d14f84826113430e745d5f13 100644 (file)
@@ -812,15 +812,17 @@ static int parse_flag(snd_config_t *n, unsigned int mask_in,
 static int save_flags(unsigned int flags, unsigned int mask,
                      struct tplg_buf *dst, const char *pfx)
 {
-       static unsigned int flag_masks[3] = {
+       static unsigned int flag_masks[4] = {
                SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_RATES,
                SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_CHANNELS,
                SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_SAMPLEBITS,
+               SND_SOC_TPLG_LNK_FLGBIT_VOICE_WAKEUP,
        };
-       static const char *flag_ids[3] = {
+       static const char *flag_ids[4] = {
                "symmetric_rates",
                "symmetric_channels",
                "symmetric_sample_bits",
+               "ignore_suspend",
        };
        unsigned int i;
        int err = 0;