diff options
author | Ranjani Sridharan <ranjani.sridharan@linux.intel.com> | 2021-01-26 18:07:36 -0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-01-27 13:06:49 +0000 |
commit | 89a400bdeb129dbc7e1c8ad2151cc8141a619709 (patch) | |
tree | 41ef0e92cbbbbb0c94d225ead6da18a5ac36402c /sound/soc/sof/intel/hda-trace.c | |
parent | ed9ce1ed2239909c23d48c723c6549417c476246 (diff) | |
download | linux-stable-89a400bdeb129dbc7e1c8ad2151cc8141a619709.tar.gz linux-stable-89a400bdeb129dbc7e1c8ad2151cc8141a619709.tar.bz2 linux-stable-89a400bdeb129dbc7e1c8ad2151cc8141a619709.zip |
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>
Diffstat (limited to 'sound/soc/sof/intel/hda-trace.c')
-rw-r--r-- | sound/soc/sof/intel/hda-trace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/sof/intel/hda-trace.c b/sound/soc/sof/intel/hda-trace.c index 1eb746d5adeb..ca869038e909 100644 --- a/sound/soc/sof/intel/hda-trace.c +++ b/sound/soc/sof/intel/hda-trace.c @@ -42,8 +42,7 @@ int hda_dsp_trace_init(struct snd_sof_dev *sdev, u32 *stream_tag) struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; int ret; - hda->dtrace_stream = hda_dsp_stream_get(sdev, - SNDRV_PCM_STREAM_CAPTURE); + hda->dtrace_stream = hda_dsp_stream_get(sdev, SNDRV_PCM_STREAM_CAPTURE, 0); if (!hda->dtrace_stream) { dev_err(sdev->dev, |