The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
To: lgirdwood@gmail.com, broonie@kernel.org,
	pierre-louis.bossart@linux.intel.com,
	ranjani.sridharan@linux.intel.com
Cc: alsa-devel@alsa-project.org, kai.vehmanen@linux.intel.com,
	daniel.baluta@nxp.com, tiwai@suse.com,
	linux-kernel@vger.kernel.org, fred.oh@linux.intel.com
Subject: [PATCH v2 2/9] ASoC: SOF: Move the definition of enum sof_dsp_power_states to global header
Date: Thu, 10 Feb 2022 17:05:18 +0200	[thread overview]
Message-ID: <20220210150525.30756-3-peter.ujfalusi@linux.intel.com> (raw)
In-Reply-To: <20220210150525.30756-1-peter.ujfalusi@linux.intel.com>

Move the enum sof_dsp_power_states to include/sound/sof.h
to be accessible outside of the core SOF stack.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
---
 include/sound/sof.h      | 8 ++++++++
 sound/soc/sof/sof-priv.h | 8 --------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/sound/sof.h b/include/sound/sof.h
index 813680ab9aad..7cdfc954df12 100644
--- a/include/sound/sof.h
+++ b/include/sound/sof.h
@@ -39,6 +39,14 @@ enum sof_fw_state {
 	SOF_FW_CRASHED,
 };
 
+/* DSP power states */
+enum sof_dsp_power_states {
+	SOF_DSP_PM_D0,
+	SOF_DSP_PM_D1,
+	SOF_DSP_PM_D2,
+	SOF_DSP_PM_D3,
+};
+
 /*
  * SOF Platform data.
  */
diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h
index 6358f8c84cce..2e474048d708 100644
--- a/sound/soc/sof/sof-priv.h
+++ b/sound/soc/sof/sof-priv.h
@@ -79,14 +79,6 @@ bool sof_debug_check_flag(int mask);
 /* max number of DSP cores */
 #define SOF_MAX_DSP_NUM_CORES 8
 
-/* DSP power state */
-enum sof_dsp_power_states {
-	SOF_DSP_PM_D0,
-	SOF_DSP_PM_D1,
-	SOF_DSP_PM_D2,
-	SOF_DSP_PM_D3,
-};
-
 struct sof_dsp_power_state {
 	u32 state;
 	u32 substate; /* platform-specific */
-- 
2.35.1


  parent reply	other threads:[~2022-02-10 15:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-10 15:05 [PATCH v2 0/9] ASoC: SOF: IPC client infrastructure Peter Ujfalusi
2022-02-10 15:05 ` [PATCH v2 1/9] ASoC: SOF: Drop unused DSP power states: D3_HOT and D3_COLD Peter Ujfalusi
2022-02-10 15:05 ` Peter Ujfalusi [this message]
2022-02-10 15:05 ` [PATCH v2 3/9] ASoC: SOF: ipc: Read and pass the whole message to handlers for IPC events Peter Ujfalusi
2022-02-10 15:05 ` [PATCH v2 4/9] ASoC: SOF: Split up utils.c into sof-utils and iomem-utils Peter Ujfalusi
2022-02-10 15:05 ` [PATCH v2 5/9] ASoC: SOF: Introduce IPC SOF client support Peter Ujfalusi
2022-02-10 15:05 ` [PATCH v2 6/9] ASoC: SOF: sof-client: Add support for clients not managed by pm framework Peter Ujfalusi
2022-02-10 15:05 ` [PATCH v2 7/9] ASoC: SOF: Convert the generic IPC flood test into SOF client Peter Ujfalusi
2022-02-10 15:05 ` [PATCH v2 8/9] ASoC: SOF: Convert the generic IPC message injector " Peter Ujfalusi
2022-02-10 15:05 ` [PATCH v2 9/9] ASoC: SOF: Convert the generic probe support to " Peter Ujfalusi
2022-02-10 18:17 ` [PATCH v2 0/9] ASoC: SOF: IPC client infrastructure Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220210150525.30756-3-peter.ujfalusi@linux.intel.com \
    --to=peter.ujfalusi@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=daniel.baluta@nxp.com \
    --cc=fred.oh@linux.intel.com \
    --cc=kai.vehmanen@linux.intel.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=ranjani.sridharan@linux.intel.com \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox