Skip to content

Commit 655b48f

Browse files
chunxu-liplbossart
authored andcommitted
ASoC: SOF: mediatek: Add .of_machine_select field for mt8186
As the mt8186 do not use ACPI based machine, the of_machine_select is used to distinguish different machines in sof_machine_check. Signed-off-by: Chunxu Li <chunxu.li@mediatek.com>
1 parent 5247450 commit 655b48f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

sound/soc/sof/mediatek/mt8186/mt8186.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,9 @@ static struct snd_sof_dsp_ops sof_mt8186_ops = {
524524
/* misc */
525525
.get_bar_index = mt8186_get_bar_index,
526526

527+
/* machine driver */
528+
.of_machine_select = sof_of_machine_select,
529+
527530
/* stream callbacks */
528531
.pcm_open = sof_stream_pcm_open,
529532
.pcm_close = sof_stream_pcm_close,
@@ -550,7 +553,24 @@ static struct snd_sof_dsp_ops sof_mt8186_ops = {
550553
SNDRV_PCM_INFO_NO_PERIOD_WAKEUP,
551554
};
552555

556+
static struct snd_sof_of_mach sof_mt8186_machs[] = {
557+
{
558+
.board = "google,kingler",
559+
.sof_tplg_filename = "sof-mt8186-mt6366-da7219-max98357.tplg",
560+
},
561+
{
562+
.board = "google,krabby",
563+
.sof_tplg_filename = "sof-mt8186-mt6366-rt1019-rt5682s.tplg",
564+
},
565+
{
566+
.board = "google,steelix",
567+
.sof_tplg_filename = "sof-mt8186-mt6366-rt1019-rt5682s.tplg",
568+
},
569+
{}
570+
};
571+
553572
static const struct sof_dev_desc sof_of_mt8186_desc = {
573+
.of_machines = sof_mt8186_machs,
554574
.ipc_supported_mask = BIT(SOF_IPC),
555575
.ipc_default = SOF_IPC,
556576
.default_fw_path = {

0 commit comments

Comments
 (0)