Commit 779bedff authored by James Schulman's avatar James Schulman Committed by Mark Brown

ASoC: wm_adsp: Support new metadata block ID's

Coefficient files now support additional metadata blocks, these
contain machine parsable text strings describing the parameters
contained in the coefficient file.
Signed-off-by: default avatarJames Schulman <james.schulman@cirrus.com>
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20200723110321.16382-1-ckeepax@opensource.cirrus.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1ce8f643
...@@ -2621,6 +2621,7 @@ static int wm_adsp_load_coeff(struct wm_adsp *dsp) ...@@ -2621,6 +2621,7 @@ static int wm_adsp_load_coeff(struct wm_adsp *dsp)
switch (type) { switch (type) {
case (WMFW_NAME_TEXT << 8): case (WMFW_NAME_TEXT << 8):
case (WMFW_INFO_TEXT << 8): case (WMFW_INFO_TEXT << 8):
case (WMFW_METADATA << 8):
break; break;
case (WMFW_ABSOLUTE << 8): case (WMFW_ABSOLUTE << 8):
/* /*
......
...@@ -180,6 +180,7 @@ struct wmfw_coeff_item { ...@@ -180,6 +180,7 @@ struct wmfw_coeff_item {
#define WMFW_ABSOLUTE 0xf0 #define WMFW_ABSOLUTE 0xf0
#define WMFW_ALGORITHM_DATA 0xf2 #define WMFW_ALGORITHM_DATA 0xf2
#define WMFW_METADATA 0xfc
#define WMFW_NAME_TEXT 0xfe #define WMFW_NAME_TEXT 0xfe
#define WMFW_INFO_TEXT 0xff #define WMFW_INFO_TEXT 0xff
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment