From: Kai Vehmanen <kai.vehmanen@linux.intel.com>
To: alsa-devel@alsa-project.org, broonie@kernel.org
Cc: kai.vehmanen@linux.intel.com, lgirdwood@gmail.com,
pierre-louis.bossart@linux.intel.com,
Fred Oh <fred.oh@linux.intel.com>,
ranjani.sridharan@linux.intel.com, daniel.baluta@nxp.com
Subject: [PATCH 3/5] ASoC: SOF: ext_manifest: parse cavs extra config data elem
Date: Fri, 27 Nov 2020 18:40:20 +0200 [thread overview]
Message-ID: <20201127164022.2498406-4-kai.vehmanen@linux.intel.com> (raw)
In-Reply-To: <20201127164022.2498406-1-kai.vehmanen@linux.intel.com>
From: Fred Oh <fred.oh@linux.intel.com>
OUTBOX_SIZE, INBOX_SIZE are defined but not being used yet. Handle
these elements to avoid warning about unknown token type.
Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
---
sound/soc/sof/intel/ext_manifest.h | 2 ++
sound/soc/sof/intel/hda-loader.c | 6 +++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/sound/soc/sof/intel/ext_manifest.h b/sound/soc/sof/intel/ext_manifest.h
index a30e25b4e655..2dfae9285d3c 100644
--- a/sound/soc/sof/intel/ext_manifest.h
+++ b/sound/soc/sof/intel/ext_manifest.h
@@ -21,6 +21,8 @@
enum sof_cavs_config_elem_type {
SOF_EXT_MAN_CAVS_CONFIG_EMPTY = 0,
SOF_EXT_MAN_CAVS_CONFIG_CAVS_LPRO = 1,
+ SOF_EXT_MAN_CAVS_CONFIG_OUTBOX_SIZE = 2,
+ SOF_EXT_MAN_CAVS_CONFIG_INBOX_SIZE = 3,
};
/* EXT_MAN_ELEM_PLATFORM_CONFIG_DATA elements */
diff --git a/sound/soc/sof/intel/hda-loader.c b/sound/soc/sof/intel/hda-loader.c
index 73806223abd1..52101b1a3dac 100644
--- a/sound/soc/sof/intel/hda-loader.c
+++ b/sound/soc/sof/intel/hda-loader.c
@@ -498,8 +498,12 @@ int hda_dsp_ext_man_get_cavs_config_data(struct snd_sof_dev *sdev,
dev_dbg(sdev->dev, "FW clock config: %s\n",
hda->clk_config_lpro ? "LPRO" : "HPRO");
break;
+ case SOF_EXT_MAN_CAVS_CONFIG_OUTBOX_SIZE:
+ case SOF_EXT_MAN_CAVS_CONFIG_INBOX_SIZE:
+ /* These elements are defined but not being used yet. No warn is required */
+ break;
default:
- dev_warn(sdev->dev, "unsupported token type: %d\n",
+ dev_info(sdev->dev, "unsupported token type: %d\n",
config_data->elems[i].token);
}
--
2.28.0
next prev parent reply other threads:[~2020-11-27 16:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-27 16:40 [PATCH 0/5] ASoC: SOF: Intel: fix ICL boot sequence Kai Vehmanen
2020-11-27 16:40 ` [PATCH 1/5] ASoC: SOF: ops: add parse_platform_ext_manifest() op Kai Vehmanen
2020-11-27 16:40 ` [PATCH 2/5] ASoC: SOF: Intel: hda: define parse_platform_ext_manifest op Kai Vehmanen
2020-11-27 16:40 ` Kai Vehmanen [this message]
2020-11-27 16:40 ` [PATCH 4/5] ASoC: SOF: ops: modify the signature of stall op Kai Vehmanen
2020-11-27 16:40 ` [PATCH 5/5] ASoC: SOF: Intel: hda: add sof_icl_ops for ICL platforms Kai Vehmanen
2020-11-30 16:55 ` [PATCH 0/5] ASoC: SOF: Intel: fix ICL boot sequence 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=20201127164022.2498406-4-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=fred.oh@linux.intel.com \
--cc=lgirdwood@gmail.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=ranjani.sridharan@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;
as well as URLs for NNTP newsgroup(s).