diff options
author | Mengdong Lin <mengdong.lin@linux.intel.com> | 2016-11-03 01:05:32 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-11-04 11:36:39 -0600 |
commit | 6ff67ccafdf4c782489de1ccc47e1ec8d8480b63 (patch) | |
tree | 7c5b2dd68e20254ba3c2416b4b153b7542a17889 /sound | |
parent | 9aa3f03473ce1187062bb0c68aeacf7b3ac52831 (diff) | |
download | linux-stable-6ff67ccafdf4c782489de1ccc47e1ec8d8480b63.tar.gz linux-stable-6ff67ccafdf4c782489de1ccc47e1ec8d8480b63.tar.bz2 linux-stable-6ff67ccafdf4c782489de1ccc47e1ec8d8480b63.zip |
ASoC: topology: ABI - Add voice wake up flag for DAI links
Add a new flag bit SND_SOC_TPLG_LNK_FLGBIT_VOICE_WAKEUP to link flags.
If a link is used for voice wake up, users can set this flag bit and
topology will set the link's 'ignore_suspend' to true.
This ABI update is backward compatible.
Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/soc-topology.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index f44f12eb1798..8772fd994e82 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -1701,6 +1701,11 @@ static void set_link_flags(struct snd_soc_dai_link *link, link->symmetric_samplebits = flags & SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_SAMPLEBITS ? 1 : 0; + + if (flag_mask & SND_SOC_TPLG_LNK_FLGBIT_VOICE_WAKEUP) + link->ignore_suspend = + flags & SND_SOC_TPLG_LNK_FLGBIT_VOICE_WAKEUP ? + 1 : 0; } /* create the FE DAI link */ |