Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Mac Chiang <mac.chiang@intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20231113115907.18539-1-mac.chiang@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Mac Chiang and committed by
Mark Brown
a55ea47b a1321811

+21
+9
sound/soc/intel/boards/sof_rt5682.c
··· 1147 1147 SOF_RT5682_SSP_AMP(0) | 1148 1148 SOF_RT5682_NUM_HDMIDEV(3)), 1149 1149 }, 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 + }, 1150 1159 { } 1151 1160 }; 1152 1161 MODULE_DEVICE_TABLE(platform, board_ids);
+12
sound/soc/intel/common/soc-acpi-intel-mtl-match.c
··· 40 40 .codecs = {"INTC10B0"} 41 41 }; 42 42 43 + static const struct snd_soc_acpi_codecs mtl_rt5650_amp = { 44 + .num_codecs = 1, 45 + .codecs = {"10EC5650"} 46 + }; 47 + 43 48 struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[] = { 44 49 { 45 50 .comp_ids = &mtl_rt5682_rt5682s_hp, ··· 81 76 .tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_SSP_NUMBER | 82 77 SND_SOC_ACPI_TPLG_INTEL_SSP_MSB | 83 78 SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER, 79 + }, 80 + { 81 + .id = "10EC5650", 82 + .drv_name = "mtl_rt5650", 83 + .machine_quirk = snd_soc_acpi_codec_list, 84 + .quirk_data = &mtl_rt5650_amp, 85 + .sof_tplg_filename = "sof-mtl-rt5650.tplg", 84 86 }, 85 87 /* place amp-only boards in the end of table */ 86 88 {