ASoC: Intel: sof_da7219: add rpl_mx98360_da7219 board config
authorBrent Lu <brent.lu@intel.com>
Mon, 25 Mar 2024 22:10:42 +0000 (17:10 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 25 Mar 2024 22:44:52 +0000 (22:44 +0000)
This configuration supports RPL boards which implement DA7219 on SSP0
and MAX98360A on SSP1. DA7219 uses PLL bypass mode to avoid WCLK
locking problem. To use this mode, the MCLK frequency must be 12.288
or 24.576MHz in the topology binary.

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Brent Lu <brent.lu@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://msgid.link/r/20240325221059.206042-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_da7219.c
sound/soc/intel/common/soc-acpi-intel-rpl-match.c

index 6eb5a6144e97cdb265c9ec477167d79fcd2ef701..290bf75bdaef6ea1ab8712650b6573c09ed8aaaf 100644 (file)
@@ -545,6 +545,10 @@ static const struct platform_device_id board_ids[] = {
                .name = "adl_mx98360_da7219",
                /* no quirk needed for this board */
        },
+       {
+               .name = "rpl_mx98360_da7219",
+               /* no quirk needed for this board */
+       },
        { }
 };
 MODULE_DEVICE_TABLE(platform, board_ids);
index 00a21af210fa43bef143fd3ae192e8a0c32a77b3..f797937cf9d89e5965f1308c7fcec35b80f14e21 100644 (file)
@@ -455,6 +455,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_machines[] = {
                .drv_name = "rpl_lt6911_hdmi_ssp",
                .sof_tplg_filename = "sof-rpl-nocodec-hdmi-ssp02.tplg"
        },
+       {
+               .id = "DLGS7219",
+               .drv_name = "rpl_mx98360_da7219",
+               .machine_quirk = snd_soc_acpi_codec_list,
+               .quirk_data = &rpl_max98360a_amp,
+               .sof_tplg_filename = "sof-rpl-max98360a-da7219.tplg",
+       },
        {},
 };
 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_rpl_machines);