Skip to content

Commit 2cfdb97

Browse files
gongjun-songpull[bot]
authored andcommitted
ASoC: Intel: soc-acpi: add configuration for variant of 0C40 product
Support configuration with SoundWire RT1316 amplifiers on link0 and link1, and RT711 on link2 for headphone/headset. This product does not support local microphones. Signed-off-by: Gongjun Song <gongjun.song@intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20221226010917.2632973-1-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 4245bb9 commit 2cfdb97

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,25 @@ static const struct snd_soc_acpi_link_adr rpl_sdw_rt711_link2_rt1316_link01_rt71
203203
{}
204204
};
205205

206+
static const struct snd_soc_acpi_link_adr rpl_sdw_rt711_link2_rt1316_link01[] = {
207+
{
208+
.mask = BIT(2),
209+
.num_adr = ARRAY_SIZE(rt711_sdca_2_adr),
210+
.adr_d = rt711_sdca_2_adr,
211+
},
212+
{
213+
.mask = BIT(0),
214+
.num_adr = ARRAY_SIZE(rt1316_0_group2_adr),
215+
.adr_d = rt1316_0_group2_adr,
216+
},
217+
{
218+
.mask = BIT(1),
219+
.num_adr = ARRAY_SIZE(rt1316_1_group2_adr),
220+
.adr_d = rt1316_1_group2_adr,
221+
},
222+
{}
223+
};
224+
206225
static const struct snd_soc_acpi_link_adr rpl_sdw_rt711_link0_rt1318_link12_rt714_link3[] = {
207226
{
208227
.mask = BIT(0),
@@ -277,6 +296,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_sdw_machines[] = {
277296
.drv_name = "sof_sdw",
278297
.sof_tplg_filename = "sof-rpl-rt1316-l12-rt714-l0.tplg",
279298
},
299+
{
300+
.link_mask = 0x7, /* rt711 on link2 & two rt1316s on link0 and link1 */
301+
.links = rpl_sdw_rt711_link2_rt1316_link01,
302+
.drv_name = "sof_sdw",
303+
.sof_tplg_filename = "sof-rpl-rt711-l2-rt1316-l01.tplg",
304+
},
280305
{
281306
.link_mask = 0x1, /* link0 required */
282307
.links = rpl_rvp,

0 commit comments

Comments
 (0)