diff options
author | Ajit Kumar Pandey <AjitKumar.Pandey@amd.com> | 2021-10-19 12:39:33 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-10-20 11:12:52 +0100 |
commit | e646b51f5dd5e92bcb159cb932aa540451ac803f (patch) | |
tree | ae6bb55ebe63f97f80294668aeac3a207734ffe4 /sound/soc/amd/acp/amd.h | |
parent | 58c8c8438db45fb22b8d855645e2d4d15ca9ee72 (diff) | |
download | lwn-e646b51f5dd5e92bcb159cb932aa540451ac803f.tar.gz lwn-e646b51f5dd5e92bcb159cb932aa540451ac803f.zip |
ASoC: amd: acp: Add callback for machine driver on ACP
Add method to select and register machine driver for acp platform
based on ACPI ID.
Signed-off-by: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>
Link: https://lore.kernel.org/r/20211019070938.5076-4-AjitKumar.Pandey@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/acp/amd.h')
-rw-r--r-- | sound/soc/amd/acp/amd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/amd/acp/amd.h b/sound/soc/amd/acp/amd.h index ecb53285526c..3532f4d3ccff 100644 --- a/sound/soc/amd/acp/amd.h +++ b/sound/soc/amd/acp/amd.h @@ -90,6 +90,9 @@ struct acp_dev_data { int num_dai; struct acp_stream *stream[ACP_MAX_STREAM]; + + struct snd_soc_acpi_mach *machines; + struct platform_device *mach_dev; }; extern const struct snd_soc_dai_ops asoc_acp_cpu_dai_ops; @@ -98,6 +101,9 @@ int asoc_acp_i2s_probe(struct snd_soc_dai *dai); int acp_platform_register(struct device *dev); int acp_platform_unregister(struct device *dev); +int acp_machine_select(struct acp_dev_data *adata); +extern struct snd_soc_acpi_mach snd_soc_acpi_amd_acp_machines[]; + static inline u64 acp_get_byte_count(struct acp_dev_data *adata, int dai_id, int direction) { u64 byte_count, low = 0, high = 0; |