Skip to content

Commit df42f39

Browse files
committed
ASoC: Intel: soc-acpi-intel-mtl-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 28c1013 commit df42f39

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <sound/soc-acpi.h>
1212
#include <sound/soc-acpi-intel-match.h>
1313
#include <sound/soc-acpi-intel-ssp-common.h>
14+
#include "sof-function-topology-lib.h"
1415
#include "soc-acpi-intel-sdca-quirks.h"
1516
#include "soc-acpi-intel-sdw-mockup-match.h"
1617

@@ -1083,12 +1084,14 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_sdw_machines[] = {
10831084
.drv_name = "sof_sdw",
10841085
.machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
10851086
.sof_tplg_filename = "sof-mtl-rt712-vb-l0.tplg",
1087+
.get_function_tplg_files = sof_sdw_get_tplg_files,
10861088
},
10871089
{
10881090
.link_mask = BIT(0),
10891091
.links = mtl_712_l0,
10901092
.drv_name = "sof_sdw",
10911093
.sof_tplg_filename = "sof-mtl-rt712-l0.tplg",
1094+
.get_function_tplg_files = sof_sdw_get_tplg_files,
10921095
},
10931096
{
10941097
.link_mask = GENMASK(2, 0),
@@ -1101,30 +1104,35 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_sdw_machines[] = {
11011104
.links = cs42l43_link0_cs35l56_link2_link3,
11021105
.drv_name = "sof_sdw",
11031106
.sof_tplg_filename = "sof-mtl-cs42l43-l0-cs35l56-l23.tplg",
1107+
.get_function_tplg_files = sof_sdw_get_tplg_files,
11041108
},
11051109
{
11061110
.link_mask = BIT(0) | BIT(1) | BIT(3),
11071111
.links = cs42l43_link3_cs35l56_x4_link0_link1_spkagg,
11081112
.drv_name = "sof_sdw",
11091113
.sof_tplg_filename = "sof-mtl-cs42l43-l3-cs35l56-l01-spkagg.tplg",
1114+
.get_function_tplg_files = sof_sdw_get_tplg_files,
11101115
},
11111116
{
11121117
.link_mask = GENMASK(2, 0),
11131118
.links = mtl_cs42l43_cs35l56,
11141119
.drv_name = "sof_sdw",
11151120
.sof_tplg_filename = "sof-mtl-cs42l43-l0-cs35l56-l12.tplg",
1121+
.get_function_tplg_files = sof_sdw_get_tplg_files,
11161122
},
11171123
{
11181124
.link_mask = BIT(0) | BIT(1),
11191125
.links = mtl_cs35l56_x8_link0_link1_fb,
11201126
.drv_name = "sof_sdw",
1121-
.sof_tplg_filename = "sof-mtl-cs35l56-l01-fb8.tplg"
1127+
.sof_tplg_filename = "sof-mtl-cs35l56-l01-fb8.tplg",
1128+
.get_function_tplg_files = sof_sdw_get_tplg_files,
11221129
},
11231130
{
11241131
.link_mask = BIT(0),
11251132
.links = mtl_cs42l43_l0,
11261133
.drv_name = "sof_sdw",
11271134
.sof_tplg_filename = "sof-mtl-cs42l43-l0.tplg",
1135+
.get_function_tplg_files = sof_sdw_get_tplg_files,
11281136
},
11291137
{
11301138
.link_mask = GENMASK(3, 0),
@@ -1143,6 +1151,7 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_sdw_machines[] = {
11431151
.links = mtl_rt722_only,
11441152
.drv_name = "sof_sdw",
11451153
.sof_tplg_filename = "sof-mtl-rt722-l0.tplg",
1154+
.get_function_tplg_files = sof_sdw_get_tplg_files,
11461155
},
11471156
{
11481157
.link_mask = BIT(0),

0 commit comments

Comments
 (0)