summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorKeyon Jie <yang.jie@linux.intel.com>2019-10-25 17:41:03 -0500
committerMark Brown <broonie@kernel.org>2019-10-28 14:41:46 +0000
commite5c97e88084b8dca6850eba5d2937716b88306c1 (patch)
tree3ca6f3b5ebe9dafa3af275d5e3c0a39a5023366f /sound/soc
parent35c930ba6025964ac71f041065ae212a0fcc7cca (diff)
downloadlinux-e5c97e88084b8dca6850eba5d2937716b88306c1.tar.gz
linux-e5c97e88084b8dca6850eba5d2937716b88306c1.tar.bz2
linux-e5c97e88084b8dca6850eba5d2937716b88306c1.zip
ASoC: SOF: add flag to snd_sof_pcm_stream for D0i3 compatible stream
Add flag d0i3_compatible to struct snd_sof_pcm_stream to denote if the stream can tolerate a transition to the D0i3 substate while opened (thus seen as 'active' by pm_runtime). Signed-off-by: Keyon Jie <yang.jie@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20191025224122.7718-8-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/sof/sof-priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h
index e9902e4e8e55..7a21a45d3635 100644
--- a/sound/soc/sof/sof-priv.h
+++ b/sound/soc/sof/sof-priv.h
@@ -310,6 +310,7 @@ struct snd_sof_pcm_stream {
struct sof_ipc_stream_posn posn;
struct snd_pcm_substream *substream;
struct work_struct period_elapsed_work;
+ bool d0i3_compatible; /* DSP can be in D0I3 when this pcm is opened */
};
/* ALSA SOF PCM device */