Skip to content

Commit 33010d4

Browse files
committed
ASoC: Intel: sof_rt5682: add mtl_rt5650 support
RT5650 is I2S codec integrated with HP and SPK. The HW board connects SoC I2S to RT5650 codec as below: I2S0: ALC5650 aif1 for Speaker I2S2: ALC5650 aif2 for Headphone I2S1: Bluetooth audio Signed-off-by: Mac Chiang <mac.chiang@intel.com>
1 parent 4e917f5 commit 33010d4

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

sound/soc/intel/boards/sof_rt5682.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,15 @@ static const struct platform_device_id board_ids[] = {
11471147
SOF_RT5682_SSP_AMP(0) |
11481148
SOF_RT5682_NUM_HDMIDEV(3)),
11491149
},
1150+
{
1151+
.name = "mtl_rt5650",
1152+
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
1153+
SOF_RT5682_SSP_CODEC(2) |
1154+
SOF_RT5682_SSP_AMP(0) |
1155+
SOF_RT5682_NUM_HDMIDEV(3) |
1156+
SOF_BT_OFFLOAD_SSP(1) |
1157+
SOF_SSP_BT_OFFLOAD_PRESENT),
1158+
},
11501159
{ }
11511160
};
11521161
MODULE_DEVICE_TABLE(platform, board_ids);

sound/soc/intel/common/soc-acpi-intel-mtl-match.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ static const struct snd_soc_acpi_codecs mtl_lt6911_hdmi = {
4040
.codecs = {"INTC10B0"}
4141
};
4242

43+
static const struct snd_soc_acpi_codecs mtl_rt5650_amp = {
44+
.num_codecs = 1,
45+
.codecs = {"10EC5650"}
46+
};
47+
4348
struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[] = {
4449
{
4550
.comp_ids = &mtl_rt5682_rt5682s_hp,
@@ -77,6 +82,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[] = {
7782
SND_SOC_ACPI_TPLG_INTEL_SSP_MSB |
7883
SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
7984
},
85+
{
86+
.id = "10EC5650",
87+
.drv_name = "mtl_rt5650",
88+
.machine_quirk = snd_soc_acpi_codec_list,
89+
.quirk_data = &mtl_rt5650_amp,
90+
.sof_tplg_filename = "sof-mtl-rt5650.tplg",
91+
},
8092
/* place amp-only boards in the end of table */
8193
{
8294
.id = "INTC10B0",

0 commit comments

Comments
 (0)