ASoC: SOF: Intel: hda: enable DMI L1 for D0i3-compatible streams
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Wed, 27 Jan 2021 02:07:36 +0000 (18:07 -0800)
committerMark Brown <broonie@kernel.org>
Wed, 27 Jan 2021 13:06:49 +0000 (13:06 +0000)
commit89a400bdeb129dbc7e1c8ad2151cc8141a619709
tree41ef0e92cbbbbb0c94d225ead6da18a5ac36402c
parented9ce1ed2239909c23d48c723c6549417c476246
ASoC: SOF: Intel: hda: enable DMI L1 for D0i3-compatible streams

DMI L1 entry is currently disabled whenever any capture stream is
opened to prevent xruns during pause/release. But, in
order to maximise power savings for the wake-on-voice usecase,
DMI L1 entry should be enabled for D0i3-compatible capture streams.
Introduce a new field, flags in struct sof_intel_hda_stream
that stores whether a stream is dmi_l1_compatible. All playback streams,
and D0i3-compatible capture streams are DMI L1 compatible.

Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20210127020737.1088960-2-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-compress.c
sound/soc/sof/intel/hda-loader.c
sound/soc/sof/intel/hda-pcm.c
sound/soc/sof/intel/hda-stream.c
sound/soc/sof/intel/hda-trace.c
sound/soc/sof/intel/hda.h