[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240815084923.756476-1-liuyuntao12@huawei.com>
Date: Thu, 15 Aug 2024 08:49:23 +0000
From: Yuntao Liu <liuyuntao12@...wei.com>
To: <linux-kernel@...r.kernel.org>, <linux-sound@...r.kernel.org>
CC: <AjitKumar.Pandey@....com>, <Syed.SabaKareem@....com>,
<alpernebiyasak@...il.com>, <liuyuntao12@...wei.com>, <posteuca@...ex.one>,
<tiwai@...e.com>, <perex@...ex.cz>, <broonie@...nel.org>,
<lgirdwood@...il.com>
Subject: [PATCH] ASoC: amd: acp: fix module autoloading
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from platform_device_id table.
Fixes: 9d8a7be88b336 ("ASoC: amd: acp: Add legacy sound card support for Chrome audio")
Signed-off-by: Yuntao Liu <liuyuntao12@...wei.com>
---
sound/soc/amd/acp/acp-legacy-mach.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/amd/acp/acp-legacy-mach.c b/sound/soc/amd/acp/acp-legacy-mach.c
index 47c3b5f167f5..0d529e32e552 100644
--- a/sound/soc/amd/acp/acp-legacy-mach.c
+++ b/sound/soc/amd/acp/acp-legacy-mach.c
@@ -227,6 +227,8 @@ static const struct platform_device_id board_ids[] = {
},
{ }
};
+MODULE_DEVICE_TABLE(platform, board_ids);
+
static struct platform_driver acp_asoc_audio = {
.driver = {
.pm = &snd_soc_pm_ops,
--
2.34.1
Powered by blists - more mailing lists