Skip to content

Commit 186caeb

Browse files
bardliaoujfalusi
authored andcommitted
ASoC: Intel: soc-acpi-intel-lnl-match: set get_function_tplg_files ops
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>
1 parent 73b108c commit 186caeb

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

sound/soc/intel/common/soc-acpi-intel-lnl-match.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <sound/soc-acpi.h>
1010
#include <sound/soc-acpi-intel-match.h>
11+
#include "sof-function-topology-lib.h"
1112
#include "soc-acpi-intel-sdca-quirks.h"
1213
#include "soc-acpi-intel-sdw-mockup-match.h"
1314

@@ -712,6 +713,7 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
712713
.links = lnl_cs42l43_l0,
713714
.drv_name = "sof_sdw",
714715
.sof_tplg_filename = "sof-lnl-cs42l43-l0.tplg",
716+
.get_function_tplg_files = sof_sdw_get_tplg_files,
715717
},
716718
{
717719
.link_mask = BIT(0),
@@ -730,6 +732,7 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
730732
.links = lnl_rt722_only,
731733
.drv_name = "sof_sdw",
732734
.sof_tplg_filename = "sof-lnl-rt722-l0.tplg",
735+
.get_function_tplg_files = sof_sdw_get_tplg_files,
733736
},
734737
{
735738
.link_mask = GENMASK(2, 0),
@@ -748,14 +751,16 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
748751
.links = lnl_sdw_rt712_vb_l2_rt1320_l1,
749752
.drv_name = "sof_sdw",
750753
.machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
751-
.sof_tplg_filename = "sof-lnl-rt712-l2-rt1320-l1.tplg"
754+
.sof_tplg_filename = "sof-lnl-rt712-l2-rt1320-l1.tplg",
755+
.get_function_tplg_files = sof_sdw_get_tplg_files,
752756
},
753757
{
754758
.link_mask = BIT(1) | BIT(2) | BIT(3),
755759
.links = lnl_sdw_rt713_vb_l2_rt1320_l13,
756760
.drv_name = "sof_sdw",
757761
.machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
758-
.sof_tplg_filename = "sof-lnl-rt713-l2-rt1320-l13.tplg"
762+
.sof_tplg_filename = "sof-lnl-rt713-l2-rt1320-l13.tplg",
763+
.get_function_tplg_files = sof_sdw_get_tplg_files,
759764
},
760765
{},
761766
};

0 commit comments

Comments
 (0)