OSDN Git Service

ASoC: SOF: Intel: disable traces when switching to S0Ix D0I3
authorMarcin Rajwa <marcin.rajwa@linux.intel.com>
Mon, 27 Jul 2020 18:36:13 +0000 (11:36 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 28 Jul 2020 15:22:35 +0000 (16:22 +0100)
commit79560b8aeb01a715f75060e40085e641248bee51
tree618ed7246c2532796f3c9f9c27d5958b408e2db2
parent195f101980dc4c0d0093007d7daac68ec2270f95
ASoC: SOF: Intel: disable traces when switching to S0Ix D0I3

We should always disable DMA trace on S0Ix. When staying at S0-D0I3,
we should enable DMA trace while both DMA Trace debug is enabled and
hda_enable_trace_D0I3_S0 is set. This commit corrects the existed
logic errors about that.

Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200727183613.1419005-3-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dsp.c