ASoC: Intel: soc-acpi-intel-lnl-match: set get_function_tplg_files ops
authorBard Liao <yung-chuan.liao@linux.intel.com>
Mon, 14 Apr 2025 06:32:34 +0000 (14:32 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 14 Apr 2025 10:22:21 +0000 (11:22 +0100)
The audio configs with multi-function SDCA codecs can use the
sof_sdw_get_tplg_files ops to get function topologies dynamically.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20250414063239.85200-7-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/common/soc-acpi-intel-lnl-match.c

index e04f6de746eb4da931eeecb30041d3f16bbeba3e..a2bee667facb8c702d8fcca760a40eed641f3b49 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <sound/soc-acpi.h>
 #include <sound/soc-acpi-intel-match.h>
+#include "sof-function-topology-lib.h"
 #include "soc-acpi-intel-sdca-quirks.h"
 #include "soc-acpi-intel-sdw-mockup-match.h"
 
@@ -712,6 +713,7 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
                .links = lnl_cs42l43_l0,
                .drv_name = "sof_sdw",
                .sof_tplg_filename = "sof-lnl-cs42l43-l0.tplg",
+               .get_function_tplg_files = sof_sdw_get_tplg_files,
        },
        {
                .link_mask = BIT(0),
@@ -730,6 +732,7 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
                .links = lnl_rt722_only,
                .drv_name = "sof_sdw",
                .sof_tplg_filename = "sof-lnl-rt722-l0.tplg",
+               .get_function_tplg_files = sof_sdw_get_tplg_files,
        },
        {
                .link_mask = GENMASK(2, 0),
@@ -748,14 +751,16 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
                .links = lnl_sdw_rt712_vb_l2_rt1320_l1,
                .drv_name = "sof_sdw",
                .machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
-               .sof_tplg_filename = "sof-lnl-rt712-l2-rt1320-l1.tplg"
+               .sof_tplg_filename = "sof-lnl-rt712-l2-rt1320-l1.tplg",
+               .get_function_tplg_files = sof_sdw_get_tplg_files,
        },
        {
                .link_mask = BIT(1) | BIT(2) | BIT(3),
                .links = lnl_sdw_rt713_vb_l2_rt1320_l13,
                .drv_name = "sof_sdw",
                .machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
-               .sof_tplg_filename = "sof-lnl-rt713-l2-rt1320-l13.tplg"
+               .sof_tplg_filename = "sof-lnl-rt713-l2-rt1320-l13.tplg",
+               .get_function_tplg_files = sof_sdw_get_tplg_files,
        },
        {},
 };