[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220804091359.31449-3-chunxu.li@mediatek.com>
Date: Thu, 4 Aug 2022 17:13:59 +0800
From: Chunxu Li <chunxu.li@...iatek.com>
To: <pierre-louis.bossart@...ux.intel.com>,
<peter.ujfalusi@...ux.intel.com>, <lgirdwood@...il.com>,
<broonie@...nel.org>, <angelogioacchino.delregno@...labora.com>,
<daniel.baluta@....com>
CC: <matthias.bgg@...il.com>, <yc.hung@...iatek.com>,
<tinghan.shen@...iatek.com>, <linux-kernel@...r.kernel.org>,
<alsa-devel@...a-project.org>,
<sound-open-firmware@...a-project.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>,
<project_global_chrome_upstream_group@...iatek.com>,
Chunxu Li <chunxu.li@...iatek.com>
Subject: [PATCH 2/2] ASoC: SOF: mediatek: Add .of_machine_select field for mt8186
As the mt8186 do not use ACPI type machine, the of_machine_select
is used to distinguish different machines in sof_machine_check.
Signed-off-by: Chunxu Li <chunxu.li@...iatek.com>
---
sound/soc/sof/mediatek/mt8186/mt8186.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/sound/soc/sof/mediatek/mt8186/mt8186.c
b/sound/soc/sof/mediatek/mt8186/mt8186.c
index e006532caf2f..cb8bed383064 100644
--- a/sound/soc/sof/mediatek/mt8186/mt8186.c
+++ b/sound/soc/sof/mediatek/mt8186/mt8186.c
@@ -497,6 +497,8 @@ static struct snd_sof_dsp_ops sof_mt8186_ops = {
/* misc */
.get_bar_index = mt8186_get_bar_index,
+ .of_machine_select = sof_of_machine_select,
+
/* firmware loading */
.load_firmware = snd_sof_load_firmware_memcpy,
@@ -515,7 +517,16 @@ static struct snd_sof_dsp_ops sof_mt8186_ops = {
SNDRV_PCM_INFO_NO_PERIOD_WAKEUP,
};
+static struct snd_sof_of_mach sof_mt8186_machs[] = {
+ {
+ .board = "mediatek,mt8186",
+ .sof_tplg_filename = "sof-mt8186.tplg",
+ },
+ {}
+};
+
static const struct sof_dev_desc sof_of_mt8186_desc = {
+ .of_machines = sof_mt8186_machs,
.ipc_supported_mask = BIT(SOF_IPC),
.ipc_default = SOF_IPC,
.default_fw_path = {
--
2.25.1
Powered by blists - more mailing lists