Skip to content

Commit cece89e

Browse files
committed
ASoC: Intel: soc-acpi-intel-lnl/ptl-match: Add
Merge series from Bard Liao <[email protected]>: The series simplify the variable name and add rt713_vb_l3_rt1320_l3 support.
2 parents 8147e75 + 62a5897 commit cece89e

File tree

2 files changed

+39
-8
lines changed

2 files changed

+39
-8
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static const struct snd_soc_acpi_endpoint jack_dmic_endpoints[] = {
137137
},
138138
};
139139

140-
static const struct snd_soc_acpi_endpoint jack_amp_g1_dmic_endpoints_endpoints[] = {
140+
static const struct snd_soc_acpi_endpoint jack_amp_g1_dmic_endpoints[] = {
141141
/* Jack Endpoint */
142142
{
143143
.num = 0,
@@ -350,8 +350,8 @@ static const struct snd_soc_acpi_adr_device rt1712_3_single_adr[] = {
350350
static const struct snd_soc_acpi_adr_device rt712_vb_2_group1_adr[] = {
351351
{
352352
.adr = 0x000230025D071201ull,
353-
.num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints_endpoints),
354-
.endpoints = jack_amp_g1_dmic_endpoints_endpoints,
353+
.num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints),
354+
.endpoints = jack_amp_g1_dmic_endpoints,
355355
.name_prefix = "rt712"
356356
}
357357
};

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

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ static const struct snd_soc_acpi_endpoint jack_dmic_endpoints[] = {
138138
},
139139
};
140140

141-
static const struct snd_soc_acpi_endpoint jack_amp_g1_dmic_endpoints_endpoints[] = {
141+
static const struct snd_soc_acpi_endpoint jack_amp_g1_dmic_endpoints[] = {
142142
/* Jack Endpoint */
143143
{
144144
.num = 0,
@@ -288,17 +288,17 @@ static const struct snd_soc_acpi_adr_device rt711_sdca_0_adr[] = {
288288
static const struct snd_soc_acpi_adr_device rt712_vb_2_group1_adr[] = {
289289
{
290290
.adr = 0x000230025D071201ull,
291-
.num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints_endpoints),
292-
.endpoints = jack_amp_g1_dmic_endpoints_endpoints,
291+
.num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints),
292+
.endpoints = jack_amp_g1_dmic_endpoints,
293293
.name_prefix = "rt712"
294294
}
295295
};
296296

297297
static const struct snd_soc_acpi_adr_device rt712_vb_3_group1_adr[] = {
298298
{
299299
.adr = 0x000330025D071201ull,
300-
.num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints_endpoints),
301-
.endpoints = jack_amp_g1_dmic_endpoints_endpoints,
300+
.num_endpoints = ARRAY_SIZE(jack_amp_g1_dmic_endpoints),
301+
.endpoints = jack_amp_g1_dmic_endpoints,
302302
.name_prefix = "rt712"
303303
}
304304
};
@@ -321,6 +321,15 @@ static const struct snd_soc_acpi_adr_device rt713_vb_3_adr[] = {
321321
}
322322
};
323323

324+
static const struct snd_soc_acpi_adr_device rt1320_3_group1_adr[] = {
325+
{
326+
.adr = 0x000330025D132001ull,
327+
.num_endpoints = 1,
328+
.endpoints = &spk_r_endpoint,
329+
.name_prefix = "rt1320-1"
330+
}
331+
};
332+
324333
static const struct snd_soc_acpi_adr_device rt721_3_single_adr[] = {
325334
{
326335
.adr = 0x000330025d072101ull,
@@ -541,6 +550,20 @@ static const struct snd_soc_acpi_link_adr ptl_sdw_rt712_vb_l3_rt1320_l2[] = {
541550
{}
542551
};
543552

553+
static const struct snd_soc_acpi_link_adr ptl_sdw_rt712_vb_l3_rt1320_l3[] = {
554+
{
555+
.mask = BIT(3),
556+
.num_adr = ARRAY_SIZE(rt712_vb_3_group1_adr),
557+
.adr_d = rt712_vb_3_group1_adr,
558+
},
559+
{
560+
.mask = BIT(3),
561+
.num_adr = ARRAY_SIZE(rt1320_3_group1_adr),
562+
.adr_d = rt1320_3_group1_adr,
563+
},
564+
{}
565+
};
566+
544567
/* this table is used when there is no I2S codec present */
545568
struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
546569
/* Order Priority: mockup > most links > most bit link-mask > alphabetical */
@@ -633,6 +656,14 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_sdw_machines[] = {
633656
.sof_tplg_filename = "sof-ptl-cs42l43-l3.tplg",
634657
.get_function_tplg_files = sof_sdw_get_tplg_files,
635658
},
659+
{
660+
.link_mask = BIT(3),
661+
.links = ptl_sdw_rt712_vb_l3_rt1320_l3,
662+
.drv_name = "sof_sdw",
663+
.machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb,
664+
.sof_tplg_filename = "sof-ptl-rt712-l3-rt1320-l3.tplg",
665+
.get_function_tplg_files = sof_sdw_get_tplg_files,
666+
},
636667
{
637668
.link_mask = BIT(3),
638669
.links = ptl_rt721_l3,

0 commit comments

Comments
 (0)