diff options
author | Ajit Kumar Pandey <AjitKumar.Pandey@amd.com> | 2021-10-19 09:09:33 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-10-20 12:12:52 +0200 |
commit | e646b51f5dd5e92bcb159cb932aa540451ac803f (patch) | |
tree | ae6bb55ebe63f97f80294668aeac3a207734ffe4 /sound/soc/amd/acp/acp-renoir.c | |
parent | ASoC: amd: acp: Add I2S support on Renoir platform (diff) | |
download | linux-e646b51f5dd5e92bcb159cb932aa540451ac803f.tar.xz linux-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/acp-renoir.c')
-rw-r--r-- | sound/soc/amd/acp/acp-renoir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/amd/acp/acp-renoir.c b/sound/soc/amd/acp/acp-renoir.c index c7fbf71e4669..82faae1b110b 100644 --- a/sound/soc/amd/acp/acp-renoir.c +++ b/sound/soc/amd/acp/acp-renoir.c @@ -111,6 +111,9 @@ static int renoir_audio_probe(struct platform_device *pdev) adata->dai_driver = acp_renoir_dai; adata->num_dai = ARRAY_SIZE(acp_renoir_dai); + adata->machines = snd_soc_acpi_amd_acp_machines; + acp_machine_select(adata); + dev_set_drvdata(dev, adata); acp_platform_register(dev); |