Skip to content

Commit 3025d39

Browse files
plbossartbroonie
authored andcommitted
ASoC: soc-acpi: tgl: add table for SoundWire mockup devices
Follow the same idea as for CNL/UpExtreme and add mockup test first. They will only be selected if the SSDT is modified to add such mockup devices. Signed-off-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Rander Wang <[email protected]> Signed-off-by: Bard Liao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 2694cda commit 3025d39

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

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

Lines changed: 23 additions & 0 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 "soc-acpi-intel-sdw-mockup-match.h"
1112

1213
static const struct snd_soc_acpi_codecs tgl_codecs = {
1314
.num_codecs = 1,
@@ -351,6 +352,28 @@ EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_tgl_machines);
351352

352353
/* this table is used when there is no I2S codec present */
353354
struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_sdw_machines[] = {
355+
/* mockup tests need to be first */
356+
{
357+
.link_mask = GENMASK(3, 0),
358+
.links = sdw_mockup_headset_2amps_mic,
359+
.drv_name = "sof_sdw",
360+
.sof_fw_filename = "sof-tgl.ri",
361+
.sof_tplg_filename = "sof-tgl-rt711-rt1308-rt715.tplg",
362+
},
363+
{
364+
.link_mask = BIT(0) | BIT(1) | BIT(3),
365+
.links = sdw_mockup_headset_1amp_mic,
366+
.drv_name = "sof_sdw",
367+
.sof_fw_filename = "sof-tgl.ri",
368+
.sof_tplg_filename = "sof-tgl-rt711-rt1308-mono-rt715.tplg",
369+
},
370+
{
371+
.link_mask = BIT(0) | BIT(1) | BIT(2),
372+
.links = sdw_mockup_mic_headset_1amp,
373+
.drv_name = "sof_sdw",
374+
.sof_fw_filename = "sof-tgl.ri",
375+
.sof_tplg_filename = "sof-tgl-rt715-rt711-rt1308-mono.tplg",
376+
},
354377
{
355378
.link_mask = 0x7,
356379
.links = tgl_sdw_rt711_link1_rt1308_link2_rt715_link0,

0 commit comments

Comments
 (0)