Skip to content

Commit 6ea5918

Browse files
committed
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 9917ecc commit 6ea5918

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

@@ -575,6 +576,7 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
575576
.links = lnl_cs42l43_l0,
576577
.drv_name = "sof_sdw",
577578
.sof_tplg_filename = "sof-lnl-cs42l43-l0.tplg",
579+
.get_function_tplg_files = sof_sdw_get_tplg_files,
578580
},
579581
{
580582
.link_mask = BIT(0),
@@ -593,6 +595,7 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
593595
.links = lnl_rt722_only,
594596
.drv_name = "sof_sdw",
595597
.sof_tplg_filename = "sof-lnl-rt722-l0.tplg",
598+
.get_function_tplg_files = sof_sdw_get_tplg_files,
596599
},
597600
{
598601
.link_mask = GENMASK(2, 0),
@@ -611,14 +614,16 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[] = {
611614
.links = lnl_sdw_rt712_vb_l2_rt1320_l1,
612615
.drv_name = "sof_sdw",
613616
.machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
614-
.sof_tplg_filename = "sof-lnl-rt712-l2-rt1320-l1.tplg"
617+
.sof_tplg_filename = "sof-lnl-rt712-l2-rt1320-l1.tplg",
618+
.get_function_tplg_files = sof_sdw_get_tplg_files,
615619
},
616620
{
617621
.link_mask = BIT(1) | BIT(2) | BIT(3),
618622
.links = lnl_sdw_rt713_vb_l2_rt1320_l13,
619623
.drv_name = "sof_sdw",
620624
.machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
621-
.sof_tplg_filename = "sof-lnl-rt713-l2-rt1320-l13.tplg"
625+
.sof_tplg_filename = "sof-lnl-rt713-l2-rt1320-l13.tplg",
626+
.get_function_tplg_files = sof_sdw_get_tplg_files,
622627
},
623628
{},
624629
};

0 commit comments

Comments
 (0)