]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: intel: sof_rt5682: support jsl_rt5682s_rt1015p board
authorBrent Lu <brent.lu@intel.com>
Tue, 14 Sep 2021 10:18:45 +0000 (18:18 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 15 Sep 2021 12:09:05 +0000 (13:09 +0100)
This patch adds driver data for two ALC1015Q-VB speaker amplifiers on
SSP1 and one ALC5682I-VS headphone codec on SSP0 for JSL platform.

Topology is leveraged from jsl_rt5682_rt1015p since the capability of
two ALC5682 variants is the same.

Signed-off-by: Brent Lu <brent.lu@intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210914101847.778688-3-brent.lu@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_rt5682.c
sound/soc/intel/common/soc-acpi-intel-jsl-match.c

index 69d1d9742ba54ce702ac0fc2c6f27f82ee2bb329..eba67a99a6fe5e0327dcdbc701c52c6abd1ea7e4 100644 (file)
@@ -1046,6 +1046,16 @@ static const struct platform_device_id board_ids[] = {
                                        SOF_RT5682_SSP_AMP(2) |
                                        SOF_RT5682_NUM_HDMIDEV(4)),
        },
+       {
+               .name = "jsl_rt5682s_rt1015p",
+               .driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
+                                       SOF_RT5682_MCLK_24MHZ |
+                                       SOF_RT5682_SSP_CODEC(0) |
+                                       SOF_RT5682S_HEADPHONE_CODEC_PRESENT |
+                                       SOF_SPEAKER_AMP_PRESENT |
+                                       SOF_RT1015P_SPEAKER_AMP_PRESENT |
+                                       SOF_RT5682_SSP_AMP(1)),
+       },
        { }
 };
 MODULE_DEVICE_TABLE(platform, board_ids);
index 69ff7286d357f456f4644ba215f961d65d1b7837..3cfab0c782a40c80489e66d03468655612e47988 100644 (file)
@@ -81,6 +81,14 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_jsl_machines[] = {
                .quirk_data = &mx98360a_spk,
                .sof_tplg_filename = "sof-jsl-cs42l42-mx98360a.tplg",
        },
+       {
+               .id = "RTL5682",
+               .drv_name = "jsl_rt5682s_rt1015p",
+               .sof_fw_filename = "sof-jsl.ri",
+               .machine_quirk = snd_soc_acpi_codec_list,
+               .quirk_data = &rt1015p_spk,
+               .sof_tplg_filename = "sof-jsl-rt5682-rt1015.tplg",
+       },
        {},
 };
 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_jsl_machines);