summaryrefslogtreecommitdiff
path: root/include/sound/sof.h
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2020-09-21 13:50:38 +0300
committerMark Brown <broonie@kernel.org>2020-09-21 17:28:10 +0100
commit43437d0417a36bc9174deedce4ecc2c516ffde57 (patch)
tree419a0d811f97e78cfa0bfee5115167b3cd0e9099 /include/sound/sof.h
parent641088722244f59fed00b68f7f5aaa3d56c1d73d (diff)
ASoC: SOF: pm: Fix prepare callback behavior for OF usecase
On i.MX platforms PM is not managed via ACPI although CONFIG_ACPI can be set. So, in order to correctly set the system target state we introduce a flag for platforms that require to use acpi target states. Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20200921105038.2909899-1-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/sof.h')
-rw-r--r--include/sound/sof.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/sof.h b/include/sound/sof.h
index f3e716c8ce1c..9aa055289dcc 100644
--- a/include/sound/sof.h
+++ b/include/sound/sof.h
@@ -66,6 +66,8 @@ struct sof_dev_desc {
/* alternate list of machines using this configuration */
struct snd_soc_acpi_mach *alt_machines;
+ bool use_acpi_target_states;
+
/* Platform resource indexes in BAR / ACPI resources. */
/* Must set to -1 if not used - add new items to end */
int resindex_lpe_base;