All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kai Vehmanen <kai.vehmanen@linux.intel.com>
To: alsa-devel@alsa-project.org, broonie@kernel.org
Cc: kai.vehmanen@linux.intel.com,
	Keyon Jie <yang.jie@linux.intel.com>,
	lgirdwood@gmail.com, pierre-louis.bossart@linux.intel.com,
	ranjani.sridharan@linux.intel.com, daniel.baluta@nxp.com
Subject: [PATCH 02/16] ASoC: SOF: add comp_ext to struct snd_sof_widget
Date: Fri,  4 Sep 2020 16:27:30 +0300	[thread overview]
Message-ID: <20200904132744.1699575-3-kai.vehmanen@linux.intel.com> (raw)
In-Reply-To: <20200904132744.1699575-1-kai.vehmanen@linux.intel.com>

From: Keyon Jie <yang.jie@linux.intel.com>

Add member comp_ext to struct snd_sof_widget, which will be used for
topology extended tokens parsing.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
---
 include/sound/sof/topology.h | 8 ++++++++
 sound/soc/sof/sof-audio.h    | 3 +++
 2 files changed, 11 insertions(+)

diff --git a/include/sound/sof/topology.h b/include/sound/sof/topology.h
index f56e80d09b32..796b6c8e851d 100644
--- a/include/sound/sof/topology.h
+++ b/include/sound/sof/topology.h
@@ -87,6 +87,9 @@ struct sof_ipc_comp {
  */
 #define SOF_BUF_UNDERRUN_PERMITTED	BIT(1)
 
+/* the UUID size in bytes, shared between FW and host */
+#define SOF_UUID_SIZE	16
+
 /* create new component buffer - SOF_IPC_TPLG_BUFFER_NEW */
 struct sof_ipc_buffer {
 	struct sof_ipc_comp comp;
@@ -300,4 +303,9 @@ enum sof_event_types {
 	SOF_KEYWORD_DETECT_DAPM_EVENT,
 };
 
+/* extended data struct for UUID components */
+struct sof_ipc_comp_ext {
+	uint8_t uuid[SOF_UUID_SIZE];
+}  __packed;
+
 #endif
diff --git a/sound/soc/sof/sof-audio.h b/sound/soc/sof/sof-audio.h
index 7f8be8817e69..196cbd322893 100644
--- a/sound/soc/sof/sof-audio.h
+++ b/sound/soc/sof/sof-audio.h
@@ -89,6 +89,9 @@ struct snd_sof_widget {
 	struct snd_soc_dapm_widget *widget;
 	struct list_head list;	/* list in sdev widget list */
 
+	/* extended data for UUID components */
+	struct sof_ipc_comp_ext comp_ext;
+
 	void *private;		/* core does not touch this */
 };
 
-- 
2.27.0


  parent reply	other threads:[~2020-09-04 13:33 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-04 13:27 [PATCH 00/16] ASoC: SOF: component UUID support for 5.10 Kai Vehmanen
2020-09-04 13:27 ` [PATCH 01/16] ASoC: SOF: tokens: add token for component UUID Kai Vehmanen
2020-09-04 13:27 ` Kai Vehmanen [this message]
2020-09-04 13:27 ` [PATCH 03/16] ASoC: SOF: topology: create component extended tokens Kai Vehmanen
2020-09-04 13:27 ` [PATCH 04/16] ASoC: SOF: topology: parse comp_ext_tokens for all widgets Kai Vehmanen
2020-09-04 13:27 ` [PATCH 05/16] ASoC: SOF: use the sof_ipc_comp reserved bytes for extended data Kai Vehmanen
2020-09-04 13:27 ` [PATCH 06/16] ASoC: SOF: topology: add helper for setting up IPC component Kai Vehmanen
2020-09-04 13:27 ` [PATCH 07/16] ASoC: SOF: append extended data to sof_ipc_comp_dai Kai Vehmanen
2020-09-04 13:27 ` [PATCH 08/16] ASoC: SOF: append extended data to sof_ipc_comp_mixer Kai Vehmanen
2020-09-04 13:27 ` [PATCH 09/16] ASoC: SOF: append extended data to sof_ipc_comp_volume Kai Vehmanen
2020-09-04 13:27 ` [PATCH 10/16] ASoC: SOF: append extended data to sof_ipc_comp_host Kai Vehmanen
2020-09-04 13:27 ` [PATCH 11/16] ASoC: SOF: append extended data to sof_ipc_comp_src Kai Vehmanen
2020-09-04 13:27 ` [PATCH 12/16] ASoC: SOF: append extended data to sof_ipc_comp_asrc Kai Vehmanen
2020-09-04 13:27 ` [PATCH 13/16] ASoC: SOF: append extended data to sof_ipc_comp_tone Kai Vehmanen
2020-09-04 13:27 ` [PATCH 14/16] ASoC: SOF: append extended data to sof_ipc_comp_process Kai Vehmanen
2020-09-04 13:27 ` [PATCH 15/16] ASoC: SOF: append extended data to sof_ipc_comp_mux Kai Vehmanen
2020-09-04 13:27 ` [PATCH 16/16] ASoC: SOF: topology: make process type optional Kai Vehmanen
2020-09-07 18:05 ` [PATCH 00/16] ASoC: SOF: component UUID support for 5.10 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=20200904132744.1699575-3-kai.vehmanen@linux.intel.com \
    --to=kai.vehmanen@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=daniel.baluta@nxp.com \
    --cc=lgirdwood@gmail.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=ranjani.sridharan@linux.intel.com \
    --cc=yang.jie@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.