Skip to content

Commit 84bd641

Browse files
bardliaoujfalusi
authored andcommitted
ASoC: Intel: soc-acpi-intel-ptl-match: add 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 fbf3564 commit 84bd641

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

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

Lines changed: 9 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
#include <sound/soc-acpi-intel-ssp-common.h>
@@ -536,31 +537,36 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
536537
.links = ptl_rt721_l3,
537538
.drv_name = "sof_sdw",
538539
.sof_tplg_filename = "sof-ptl-rt721.tplg",
540+
.get_function_tplg_files = sof_sdw_get_tplg_files,
539541
},
540542
{
541543
.link_mask = BIT(0),
542544
.links = ptl_rt722_only,
543545
.drv_name = "sof_sdw",
544546
.sof_tplg_filename = "sof-ptl-rt722.tplg",
547+
.get_function_tplg_files = sof_sdw_get_tplg_files,
545548
},
546549
{
547550
.link_mask = BIT(1),
548551
.links = ptl_rt722_l1,
549552
.drv_name = "sof_sdw",
550553
.sof_tplg_filename = "sof-ptl-rt722.tplg",
554+
.get_function_tplg_files = sof_sdw_get_tplg_files,
551555
},
552556
{
553557
.link_mask = BIT(3),
554558
.links = ptl_rt722_l3,
555559
.drv_name = "sof_sdw",
556560
.sof_tplg_filename = "sof-ptl-rt722.tplg",
561+
.get_function_tplg_files = sof_sdw_get_tplg_files,
557562
},
558563
{
559564
.link_mask = BIT(1) | BIT(2),
560565
.links = ptl_sdw_rt712_vb_l2_rt1320_l1,
561566
.drv_name = "sof_sdw",
562567
.machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
563-
.sof_tplg_filename = "sof-ptl-rt712-l2-rt1320-l1.tplg"
568+
.sof_tplg_filename = "sof-ptl-rt712-l2-rt1320-l1.tplg",
569+
.get_function_tplg_files = sof_sdw_get_tplg_files,
564570
},
565571
{
566572
.link_mask = BIT(2) | BIT(3),
@@ -574,7 +580,8 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
574580
.links = ptl_sdw_rt713_vb_l2_rt1320_l13,
575581
.drv_name = "sof_sdw",
576582
.machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
577-
.sof_tplg_filename = "sof-ptl-rt713-l2-rt1320-l13.tplg"
583+
.sof_tplg_filename = "sof-ptl-rt713-l2-rt1320-l13.tplg",
584+
.get_function_tplg_files = sof_sdw_get_tplg_files,
578585
},
579586
{
580587
.link_mask = BIT(1) | BIT(2) | BIT(3),

0 commit comments

Comments
 (0)