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
928 | 928 | continue; |
929 | 929 | } |
930 | 930 | |
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 | ||
931 | 940 | /* private data */ |
932 | 941 | if (strcmp(id, "data") == 0) { |
933 | 942 | err = tplg_parse_refs(n, elem, SND_TPLG_TYPE_DATA); |
1059 | 1068 | if (strcmp(id, "symmetric_sample_bits") == 0) { |
1060 | 1069 | err = parse_flag(n, |
1061 | 1070 | 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, | |
1062 | 1080 | &dai->flag_mask, &dai->flags); |
1063 | 1081 | if (err < 0) |
1064 | 1082 | return err; |
1213 | 1231 | if (strcmp(id, "symmetric_sample_bits") == 0) { |
1214 | 1232 | err = parse_flag(n, |
1215 | 1233 | 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, | |
1216 | 1243 | &link->flag_mask, &link->flags); |
1217 | 1244 | if (err < 0) |
1218 | 1245 | return err; |