Skip to content

Commit bc8306c

Browse files
committed
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 6e61e0c commit bc8306c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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>
@@ -316,38 +317,44 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
316317
.links = ptl_rt721_l3,
317318
.drv_name = "sof_sdw",
318319
.sof_tplg_filename = "sof-ptl-rt721.tplg",
320+
.get_function_tplg_files = sof_sdw_get_tplg_files,
319321
},
320322
{
321323
.link_mask = BIT(0),
322324
.links = ptl_rt722_only,
323325
.drv_name = "sof_sdw",
324326
.sof_tplg_filename = "sof-ptl-rt722.tplg",
327+
.get_function_tplg_files = sof_sdw_get_tplg_files,
325328
},
326329
{
327330
.link_mask = BIT(1),
328331
.links = ptl_rt722_l1,
329332
.drv_name = "sof_sdw",
330333
.sof_tplg_filename = "sof-ptl-rt722.tplg",
334+
.get_function_tplg_files = sof_sdw_get_tplg_files,
331335
},
332336
{
333337
.link_mask = BIT(3),
334338
.links = ptl_rt722_l3,
335339
.drv_name = "sof_sdw",
336340
.sof_tplg_filename = "sof-ptl-rt722.tplg",
341+
.get_function_tplg_files = sof_sdw_get_tplg_files,
337342
},
338343
{
339344
.link_mask = BIT(1) | BIT(2),
340345
.links = ptl_sdw_rt712_vb_l2_rt1320_l1,
341346
.drv_name = "sof_sdw",
342347
.machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
343-
.sof_tplg_filename = "sof-ptl-rt712-l2-rt1320-l1.tplg"
348+
.sof_tplg_filename = "sof-ptl-rt712-l2-rt1320-l1.tplg",
349+
.get_function_tplg_files = sof_sdw_get_tplg_files,
344350
},
345351
{
346352
.link_mask = BIT(1) | BIT(2) | BIT(3),
347353
.links = ptl_sdw_rt713_vb_l2_rt1320_l13,
348354
.drv_name = "sof_sdw",
349355
.machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
350-
.sof_tplg_filename = "sof-ptl-rt713-l2-rt1320-l13.tplg"
356+
.sof_tplg_filename = "sof-ptl-rt713-l2-rt1320-l13.tplg",
357+
.get_function_tplg_files = sof_sdw_get_tplg_files,
351358
},
352359
{},
353360
};

0 commit comments

Comments
 (0)