Skip to content

Commit ecb754f

Browse files
committed
ASoC: soc-acpi-intel-arl-match: add rt712 + PCH DMIC config
Add rt712 + PCH DMIC configuration on ARL platform. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Tested-by: Patrick Daether <daether@pd-digital.de>
1 parent 8341fb1 commit ecb754f

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,23 @@ static const struct snd_soc_acpi_endpoint jack_amp_g1_dmic_endpoints[] = {
7070
},
7171
};
7272

73+
static const struct snd_soc_acpi_endpoint jack_amp_endpoints[] = {
74+
/* Jack Endpoint */
75+
{
76+
.num = 0,
77+
.aggregated = 0,
78+
.group_position = 0,
79+
.group_id = 0,
80+
},
81+
/* Standalone Amp Endpoint */
82+
{
83+
.num = 1,
84+
.aggregated = 0,
85+
.group_position = 0,
86+
.group_id = 0,
87+
},
88+
};
89+
7390
static const struct snd_soc_acpi_adr_device cs35l56_2_lr_adr[] = {
7491
{
7592
.adr = 0x00023001FA355601ull,
@@ -283,6 +300,15 @@ static const struct snd_soc_acpi_adr_device rt712_0_agg_adr[] = {
283300
}
284301
};
285302

303+
static const struct snd_soc_acpi_adr_device rt712_0_adr[] = {
304+
{
305+
.adr = 0x000030025D071201ull,
306+
.num_endpoints = ARRAY_SIZE(jack_amp_endpoints),
307+
.endpoints = jack_amp_endpoints,
308+
.name_prefix = "rt712"
309+
}
310+
};
311+
286312
static const struct snd_soc_acpi_adr_device rt1316_3_single_adr[] = {
287313
{
288314
.adr = 0x000330025D131601ull,
@@ -482,6 +508,15 @@ static const struct snd_soc_acpi_link_adr arl_rt712_l0_rt1320_l3[] = {
482508
{}
483509
};
484510

511+
static const struct snd_soc_acpi_link_adr arl_rt712_l0[] = {
512+
{
513+
.mask = BIT(0),
514+
.num_adr = ARRAY_SIZE(rt712_0_adr),
515+
.adr_d = rt712_0_adr,
516+
},
517+
{}
518+
};
519+
485520
static const struct snd_soc_acpi_codecs arl_essx_83x6 = {
486521
.num_codecs = 3,
487522
.codecs = { "ESSX8316", "ESSX8326", "ESSX8336"},
@@ -589,6 +624,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_arl_sdw_machines[] = {
589624
.sof_tplg_filename = "sof-arl-cs42l43-l2-cs35l56-l3.tplg",
590625
.get_function_tplg_files = sof_sdw_get_tplg_files,
591626
},
627+
{
628+
.link_mask = BIT(0),
629+
.links = arl_rt712_l0,
630+
.drv_name = "sof_sdw",
631+
.sof_tplg_filename = "sof-arl-dummy.tplg",
632+
.get_function_tplg_files = sof_sdw_get_tplg_files,
633+
},
592634
{
593635
.link_mask = BIT(0),
594636
.links = arl_cs42l43_l0,

0 commit comments

Comments
 (0)