Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: alsa-devel@alsa-project.org
Cc: tiwai@suse.de, "Bard Liao" <yung-chuan.liao@linux.intel.com>,
	"Pierre-Louis Bossart" <pierre-louis.bossart@linux.intel.com>,
	"Rander Wang" <rander.wang@intel.com>,
	broonie@kernel.org,
	"Péter Ujfalusi" <peter.ujfalusi@linux.intel.com>
Subject: [PATCH 01/16] ASoC: SOF: add definitions for different IPC types
Date: Mon, 11 Apr 2022 15:17:12 -0500	[thread overview]
Message-ID: <20220411201727.77971-2-pierre-louis.bossart@linux.intel.com> (raw)
In-Reply-To: <20220411201727.77971-1-pierre-louis.bossart@linux.intel.com>

Add enum type to allow for different types of IPCs. The IPCv4 is
intended for Intel only as a convergence path with firmware used in
Windows. Follow-up patches will introduce different abstractions with
.ops and different search paths for firmware and topology files.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 include/sound/sof.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/sound/sof.h b/include/sound/sof.h
index 7cdfc954df12..2658a38be5bd 100644
--- a/include/sound/sof.h
+++ b/include/sound/sof.h
@@ -47,6 +47,13 @@ enum sof_dsp_power_states {
 	SOF_DSP_PM_D3,
 };
 
+/* Definitions for multiple IPCs */
+enum sof_ipc_type {
+	SOF_IPC,
+	SOF_INTEL_IPC4,
+	SOF_IPC_TYPE_COUNT
+};
+
 /*
  * SOF Platform data.
  */
@@ -83,6 +90,8 @@ struct snd_sof_pdata {
 	const struct snd_soc_acpi_mach *machine;
 
 	void *hw_pdata;
+
+	enum sof_ipc_type ipc_type;
 };
 
 /*
-- 
2.30.2


  reply	other threads:[~2022-04-11 20:19 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-11 20:17 [PATCH 00/16] ASoC: SOF: add INTEL_IPC4 plumbing Pierre-Louis Bossart
2022-04-11 20:17 ` Pierre-Louis Bossart [this message]
2022-04-11 20:17 ` [PATCH 02/16] ASoC: SOF: add path indirection to each IPC type Pierre-Louis Bossart
2022-04-11 20:17 ` [PATCH 03/16] ASoC: SOF: add default IPC capability and file paths Pierre-Louis Bossart
2022-04-11 20:17 ` [PATCH 04/16] ASoC: SOF: add IPC-dependent file names Pierre-Louis Bossart
2022-04-11 20:17 ` [PATCH 05/16] ASoC: SOF: sof-pci-dev: add parameter to override firmware filename Pierre-Louis Bossart
2022-04-11 20:17 ` [PATCH 06/16] ASoC: SOF: sof-pci-dev: add parameter to override topology filename Pierre-Louis Bossart
2022-04-11 20:17 ` [PATCH 07/16] ASoC: SOF: sof-audio: preserve topology filename override in nocodec mode Pierre-Louis Bossart
2022-04-11 20:17 ` [PATCH 08/16] ASoC: SOF: remove const qualifier for 'struct snd_sof_dsp_ops' Pierre-Louis Bossart
2022-04-11 20:17 ` [PATCH 09/16] ASoC: SOF: Intel: hda: use common ops across platforms Pierre-Louis Bossart
2022-04-11 20:17 ` [PATCH 10/16] ASoC: SOF: Intel: move HDA_CL_STREAM_FORMAT definition to header Pierre-Louis Bossart
2022-04-11 20:17 ` [PATCH 11/16] ASoC: SOF: Intel: hda: use BIT() macros for consistency Pierre-Louis Bossart
2022-04-11 20:17 ` [PATCH 12/16] ASoC: SOF: Intel: hda: define check_ipc_irq op Pierre-Louis Bossart
2022-04-11 20:17 ` [PATCH 13/16] ASoC: SOF: Intel: hda: Define rom_status_reg in sof_intel_dsp_desc Pierre-Louis Bossart
2022-04-11 20:17 ` [PATCH 14/16] ASoC: SOF: Intel: hda: expose some codeloader functions Pierre-Louis Bossart
2022-04-11 20:17 ` [PATCH 15/16] ASoC: SOF: Intel: add initial SKL/KBL hardware support Pierre-Louis Bossart
2022-04-12 16:42   ` Cezary Rojewski
2022-04-11 20:17 ` [PATCH 16/16] ASoC: SOF: Intel: add IP identifier Pierre-Louis Bossart
2022-04-12 16:39 ` [PATCH 00/16] ASoC: SOF: add INTEL_IPC4 plumbing Cezary Rojewski

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=20220411201727.77971-2-pierre-louis.bossart@linux.intel.com \
    --to=pierre-louis.bossart@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=peter.ujfalusi@linux.intel.com \
    --cc=rander.wang@intel.com \
    --cc=tiwai@suse.de \
    --cc=yung-chuan.liao@linux.intel.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