Skip to content
Snippets Groups Projects
Commit b6ef8fe0 authored by YC Hung's avatar YC Hung Committed by Oleksii Kutuzov
Browse files

UPSTREAM: ASoC: SOF: Add mt8195 device descriptor

parent 3445d0d4
Branches
Tags
1 merge request!13[UPSTREAM] Add Audio-related patches from Mediatek's Release 24.0
...@@ -42,7 +42,7 @@ config SND_SOC_SOF_OF ...@@ -42,7 +42,7 @@ config SND_SOC_SOF_OF
depends on OF || COMPILE_TEST depends on OF || COMPILE_TEST
help help
This adds support for Device Tree enumeration. This option is This adds support for Device Tree enumeration. This option is
required to enable i.MX8 devices. required to enable i.MX8 or Mediatek devices.
Say Y if you need this option. If unsure select "N". Say Y if you need this option. If unsure select "N".
config SND_SOC_SOF_OF_DEV config SND_SOC_SOF_OF_DEV
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <sound/sof.h> #include <sound/sof.h>
#include "ops.h" #include "ops.h"
#include "mediatek/mediatek-ops.h"
extern struct snd_sof_dsp_ops sof_imx8_ops; extern struct snd_sof_dsp_ops sof_imx8_ops;
extern struct snd_sof_dsp_ops sof_imx8x_ops; extern struct snd_sof_dsp_ops sof_imx8x_ops;
...@@ -53,6 +54,15 @@ static struct sof_dev_desc sof_of_imx8mp_desc = { ...@@ -53,6 +54,15 @@ static struct sof_dev_desc sof_of_imx8mp_desc = {
.ops = &sof_imx8m_ops, .ops = &sof_imx8m_ops,
}; };
#endif #endif
#if IS_ENABLED(CONFIG_SND_SOC_SOF_MT8195)
static const struct sof_dev_desc sof_of_mt8195_desc = {
.default_fw_path = "mediatek/sof",
.default_tplg_path = "mediatek/sof-tplg",
.default_fw_filename = "sof-mt8195.ri",
.nocodec_tplg_filename = "sof-mt8195-nocodec.tplg",
.ops = &sof_mt8195_ops,
};
#endif
static const struct dev_pm_ops sof_of_pm = { static const struct dev_pm_ops sof_of_pm = {
.prepare = snd_sof_prepare, .prepare = snd_sof_prepare,
...@@ -133,6 +143,9 @@ static const struct of_device_id sof_of_ids[] = { ...@@ -133,6 +143,9 @@ static const struct of_device_id sof_of_ids[] = {
#endif #endif
#if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8M) #if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8M)
{ .compatible = "fsl,imx8mp-dsp", .data = &sof_of_imx8mp_desc}, { .compatible = "fsl,imx8mp-dsp", .data = &sof_of_imx8mp_desc},
#endif
#if IS_ENABLED(CONFIG_SND_SOC_SOF_MT8195)
{ .compatible = "mediatek,mt8195-dsp", .data = &sof_of_mt8195_desc},
#endif #endif
{ } { }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment