Skip to content

Commit 92a9b16

Browse files
author
Mac Chiang
committed
ASoC: soc-acpi-intel-arl-match: add rt713_l0_rt1320_l2 support
Add support for the RT713 JACK/DMIC codecs on link 0 and the RT1320 stereo amplifiers on link 2. Assign .tplg_name = sof-arl-dummy.tplg, can use the functional topologies. Signed-off-by: Mac Chiang <mac.chiang@intel.com>
1 parent 83ea091 commit 92a9b16

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

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

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,23 @@ static const struct snd_soc_acpi_endpoint spk_3_endpoint = {
4646
.group_id = 1,
4747
};
4848

49+
static const struct snd_soc_acpi_endpoint jack_dmic_endpoints[] = {
50+
/* Jack Endpoint */
51+
{
52+
.num = 0,
53+
.aggregated = 0,
54+
.group_position = 0,
55+
.group_id = 0,
56+
},
57+
/* DMIC Endpoint */
58+
{
59+
.num = 1,
60+
.aggregated = 0,
61+
.group_position = 0,
62+
.group_id = 0,
63+
},
64+
};
65+
4966
static const struct snd_soc_acpi_endpoint jack_amp_g1_dmic_endpoints[] = {
5067
/* Jack Endpoint */
5168
{
@@ -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 rt713_vb_0_adr[] = {
304+
{
305+
.adr = 0x000030025d071301ull,
306+
.num_endpoints = ARRAY_SIZE(jack_dmic_endpoints),
307+
.endpoints = jack_dmic_endpoints,
308+
.name_prefix = "rt713"
309+
}
310+
};
311+
286312
static const struct snd_soc_acpi_adr_device rt1316_3_single_adr[] = {
287313
{
288314
.adr = 0x000330025D131601ull,
@@ -301,6 +327,20 @@ static const struct snd_soc_acpi_adr_device rt1320_2_single_adr[] = {
301327
}
302328
};
303329

330+
static const struct snd_soc_acpi_adr_device rt1320_2_lr_adr[] = {
331+
{
332+
.adr = 0x000230025D132001ull,
333+
.num_endpoints = 1,
334+
.endpoints = &spk_l_endpoint,
335+
.name_prefix = "rt1320-1"
336+
},
337+
{
338+
.adr = 0x000231025D132001ull,
339+
.num_endpoints = 1,
340+
.endpoints = &spk_r_endpoint,
341+
.name_prefix = "rt1320-1"
342+
}
343+
};
304344
static const struct snd_soc_acpi_link_adr arl_n_mrd_es9356_link1[] = {
305345
{
306346
.mask = BIT(1),
@@ -482,6 +522,20 @@ static const struct snd_soc_acpi_link_adr arl_rt712_l0_rt1320_l3[] = {
482522
{}
483523
};
484524

525+
static const struct snd_soc_acpi_link_adr arl_rt713_vb_l0_rt1320_l2[] = {
526+
{
527+
.mask = BIT(0),
528+
.num_adr = ARRAY_SIZE(rt713_vb_0_adr),
529+
.adr_d = rt713_vb_0_adr,
530+
},
531+
{
532+
.mask = BIT(2),
533+
.num_adr = ARRAY_SIZE(rt1320_2_lr_adr),
534+
.adr_d = rt1320_2_lr_adr,
535+
},
536+
{}
537+
};
538+
485539
static const struct snd_soc_acpi_codecs arl_essx_83x6 = {
486540
.num_codecs = 3,
487541
.codecs = { "ESSX8316", "ESSX8326", "ESSX8336"},
@@ -560,6 +614,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_arl_sdw_machines[] = {
560614
.sof_tplg_filename = "sof-arl-cs42l43-l0-cs35l56-l2.tplg",
561615
.get_function_tplg_files = sof_sdw_get_tplg_files,
562616
},
617+
{
618+
.link_mask = BIT(0) | BIT(2),
619+
.links = arl_rt713_vb_l0_rt1320_l2,
620+
.drv_name = "sof_sdw",
621+
.sof_tplg_filename = "sof-arl-dummy.tplg",
622+
.get_function_tplg_files = sof_sdw_get_tplg_files,
623+
},
563624
{
564625
.link_mask = BIT(0) | BIT(2),
565626
.links = arl_rt722_l0_rt1320_l2,

0 commit comments

Comments
 (0)