Codebase list alsa-lib / d72da15
topology: Parse ignore_suspend flag XXX_VOICE_WAKEUP also known as 'ignore_suspend' is already processed by kernel in soc-topology, but there is no way of setting it via topology file like it's the case for other flags. Fix this by adding it to pcm, dai and link parsing mechanism. Signed-off-by: Piotr Maziarz <piotrx.maziarz@intel.com> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz> Cezary Rojewski authored 5 years ago Jaroslav Kysela committed 1 year, 3 months ago
1 changed file(s) with 27 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
928928 continue;
929929 }
930930
931 if (strcmp(id, "ignore_suspend") == 0) {
932 err = parse_flag(n,
933 SND_SOC_TPLG_LNK_FLGBIT_VOICE_WAKEUP,
934 &pcm->flag_mask, &pcm->flags);
935 if (err < 0)
936 return err;
937 continue;
938 }
939
931940 /* private data */
932941 if (strcmp(id, "data") == 0) {
933942 err = tplg_parse_refs(n, elem, SND_TPLG_TYPE_DATA);
10591068 if (strcmp(id, "symmetric_sample_bits") == 0) {
10601069 err = parse_flag(n,
10611070 SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_SAMPLEBITS,
1071 &dai->flag_mask, &dai->flags);
1072 if (err < 0)
1073 return err;
1074 continue;
1075 }
1076
1077 if (strcmp(id, "ignore_suspend") == 0) {
1078 err = parse_flag(n,
1079 SND_SOC_TPLG_LNK_FLGBIT_VOICE_WAKEUP,
10621080 &dai->flag_mask, &dai->flags);
10631081 if (err < 0)
10641082 return err;
12131231 if (strcmp(id, "symmetric_sample_bits") == 0) {
12141232 err = parse_flag(n,
12151233 SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_SAMPLEBITS,
1234 &link->flag_mask, &link->flags);
1235 if (err < 0)
1236 return err;
1237 continue;
1238 }
1239
1240 if (strcmp(id, "ignore_suspend") == 0) {
1241 err = parse_flag(n,
1242 SND_SOC_TPLG_LNK_FLGBIT_VOICE_WAKEUP,
12161243 &link->flag_mask, &link->flags);
12171244 if (err < 0)
12181245 return err;