]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: Intel: soc-acpi: Add entry for sof_rt5682 in NVL match table.
authorBalamurugan C <balamurugan.c@intel.com>
Thu, 23 Jul 2026 06:21:21 +0000 (14:21 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 23 Jul 2026 22:44:07 +0000 (23:44 +0100)
Adding rt5682 I2S codec support for NVL platforms and entry in match table.

Signed-off-by: Balamurugan C <balamurugan.c@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20260723062121.869857-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/common/soc-acpi-intel-nvl-match.c

index 217272260803b4ff456231c933b2f61d1d7a2fe6..a7f4097d426c1916cd08b163a2e3b1e7301d58fd 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <sound/soc-acpi.h>
 #include <sound/soc-acpi-intel-match.h>
+#include <sound/soc-acpi-intel-ssp-common.h>
 #include "soc-acpi-intel-sdw-mockup-match.h"
 
 static const struct snd_soc_acpi_codecs nvl_essx_83x6 = {
@@ -15,6 +16,11 @@ static const struct snd_soc_acpi_codecs nvl_essx_83x6 = {
        .codecs = { "ESSX8316", "ESSX8326", "ESSX8336"},
 };
 
+static const struct snd_soc_acpi_codecs nvl_rt5682_rt5682s_hp = {
+       .num_codecs = 2,
+       .codecs = {RT5682_ACPI_HID, RT5682S_ACPI_HID},
+};
+
 struct snd_soc_acpi_mach snd_soc_acpi_intel_nvl_machines[] = {
        {
                .comp_ids = &nvl_essx_83x6,
@@ -24,6 +30,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_nvl_machines[] = {
                                        SND_SOC_ACPI_TPLG_INTEL_SSP_MSB |
                                        SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
        },
+       {
+               .comp_ids = &nvl_rt5682_rt5682s_hp,
+               .drv_name = "sof_rt5682",
+               .sof_tplg_filename = "sof-nvl-rt5682", /* the tplg suffix is added at run time */
+               .tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_SSP_NUMBER |
+                                       SND_SOC_ACPI_TPLG_INTEL_SSP_MSB,
+       },
        {},
 };
 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_nvl_machines);