summaryrefslogtreecommitdiff
path: root/include/sound/sdca.h
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.dev>2025-02-05 11:37:53 +0000
committerMark Brown <broonie@kernel.org>2025-02-07 17:34:01 +0000
commit996bf834d0b61cb5a1389356c1ed7db1230139d7 (patch)
tree097424ed5539ad2905a2b81ec7cac9613fa95ee7 /include/sound/sdca.h
parent629dd55cf77bd3a8f80049150d3c05fef6d3b468 (diff)
ASoC: SDCA: Add code to parse Function information
Add a helper function to parse all the Function and Entity information from ACPI. In SDCA each device may have several Functions and each corresponds to a specific audio capability such as say amplifier playback or microphone capture. Each Function then contains a number of Entities that represent individual parts of the audio signal chain and are linked together in a graph similar to DAPM. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev> Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev> Link: https://patch.msgid.link/20250205113801.3699902-3-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/sdca.h')
-rw-r--r--include/sound/sdca.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/sdca.h b/include/sound/sdca.h
index 31b39f2297b9..5a5d6de78d72 100644
--- a/include/sound/sdca.h
+++ b/include/sound/sdca.h
@@ -18,11 +18,13 @@ struct sdw_slave;
/**
* struct sdca_function_desc - short descriptor for an SDCA Function
+ * @node: firmware node for the Function.
* @name: Human-readable string.
* @type: Function topology type.
* @adr: ACPI address (used for SDCA register access).
*/
struct sdca_function_desc {
+ struct fwnode_handle *node;
const char *name;
u32 type;
u8 adr;