Skip to content

Commit bfcad93

Browse files
gongjun-songplbossart
authored andcommitted
ASoC: Intel: soc-acpi: add support for SoundWire of TGL-H-RVP
snd_soc_acpi_intel_tgl_sdw_machines structure array does not contain the configuration information of TGL-H-RVP, which results in the inability to enable soundwire on the TGL-H-RVP platform. Add the corresponding configuration information to enable soundwire on the TGL-H-RVP platform. Signed-off-by: Gongjun Song <gongjun.song@intel.com>
1 parent 56ab165 commit bfcad93

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,15 @@ static const struct snd_soc_acpi_link_adr tgl_rvp[] = {
197197
{}
198198
};
199199

200+
static const struct snd_soc_acpi_link_adr tgl_rvp_headset_only[] = {
201+
{
202+
.mask = BIT(0),
203+
.num_adr = ARRAY_SIZE(rt711_0_adr),
204+
.adr_d = rt711_0_adr,
205+
},
206+
{}
207+
};
208+
200209
static const struct snd_soc_acpi_link_adr tgl_hp[] = {
201210
{
202211
.mask = BIT(0),
@@ -421,6 +430,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_sdw_machines[] = {
421430
.drv_name = "sof_sdw",
422431
.sof_tplg_filename = "sof-tgl-sdw-max98373-rt5682.tplg",
423432
},
433+
{
434+
.link_mask = 0x1, /* rt711 on link 0 */
435+
.links = tgl_rvp_headset_only,
436+
.drv_name = "sof_sdw",
437+
.sof_tplg_filename = "sof-tgl-rt711.tplg",
438+
},
424439
{},
425440
};
426441
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_tgl_sdw_machines);

0 commit comments

Comments
 (0)