]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: SOF: Introduce generic names for IPC types
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tue, 19 Sep 2023 10:42:18 +0000 (13:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 10:01:59 +0000 (12:01 +0200)
[ Upstream commit 6974f2cd2fa94fef663133af23722cf607853e22 ]

Change the enum names for the IPC types to be more descriptive and drop
tying the IPC4 to Intel SoCs.

Add defines to avoid build breakage while the related code is
modified to use the new enum names.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20230919104226.32239-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Stable-dep-of: 305539a25a1c ("ASoC: SOF: Intel: add default firmware library path for LNL")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/sound/sof.h

index 51294f2ba302c6e55096a0fcbf97180cfefa4cad..31121c6df02721725fafcd9d1532ed2937dfa181 100644 (file)
@@ -52,11 +52,14 @@ enum sof_dsp_power_states {
 
 /* Definitions for multiple IPCs */
 enum sof_ipc_type {
-       SOF_IPC,
-       SOF_INTEL_IPC4,
+       SOF_IPC_TYPE_3,
+       SOF_IPC_TYPE_4,
        SOF_IPC_TYPE_COUNT
 };
 
+#define SOF_IPC                SOF_IPC_TYPE_3
+#define SOF_INTEL_IPC4 SOF_IPC_TYPE_4
+
 /*
  * SOF Platform data.
  */