ASoC: soc-acpi-intel-arl-match: add rt712_l0_rt1320_l3 support
Subsystems (3)
Bard Liao
maintainercover ASoC: soc-acpi-intel-arl-match: add rt712_l0_rt1320_l3 support
Add rt712_l0_rt1320_l3 support for ARL.
Gary C Wang (1):
ASoC: soc-acpi-intel-arl-match: add rt712_l0_rt1320_l3 support
Mac Chiang (1):
ASoC: Intel: soc-acpi-intel-arl-match: Reorder ACPI machine tables
.../intel/common/soc-acpi-intel-arl-match.c | 71 +++++++++++++++---- 1 file changed, 56 insertions(+), 15 deletions(-)
Signature · 1 line
2.43.0
Bard Liao
maintainerPATCH 1/2 ASoC: Intel: soc-acpi-intel-arl-match: Reorder ACPI machine tables
From: Mac Chiang <[email protected]>
When the SOF device driver enumerates the machine tables, it selects the entry with the most numbers of matched links in ascending order.
Align the ordering with commit 08095e20995ad6e3648af7416c90163627fe7e44 ("ASoC: Intel: soc-acpi-intel-ptl-match: Sort ACPI link/machine tables").
--- .../intel/common/soc-acpi-intel-arl-match.c | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-)
sound/soc/intel/common/soc-acpi-intel-arl-match.c +20 -20
@@ -483,24 +483,10 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_arl_sdw_machines[] = { .get_function_tplg_files = sof_sdw_get_tplg_files, }, { - .link_mask = BIT(0), - .links = arl_cs42l43_l0, + .link_mask = BIT(0) | BIT(2), + .links = arl_rt722_l0_rt1320_l2, .drv_name = "sof_sdw", - .sof_tplg_filename = "sof-arl-cs42l43-l0.tplg", - .get_function_tplg_files = sof_sdw_get_tplg_files, - }, - { - .link_mask = BIT(2) | BIT(3), - .links = arl_cs42l43_l2_cs35l56_l3, - .drv_name = "sof_sdw", - .sof_tplg_filename = "sof-arl-cs42l43-l2-cs35l56-l3.tplg", - .get_function_tplg_files = sof_sdw_get_tplg_files, - }, - { - .link_mask = BIT(2), - .links = arl_cs42l43_l2, - .drv_name = "sof_sdw", - .sof_tplg_filename = "sof-arl-cs42l43-l2.tplg", + .sof_tplg_filename = "sof-arl-rt722-l0_rt1320-l2.tplg", .get_function_tplg_files = sof_sdw_get_tplg_files, }, {
@@ -509,6 +495,20 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_arl_sdw_machines[] = { .drv_name = "sof_sdw", .sof_tplg_filename = "sof-arl-rt711-l0-rt1316-l3.tplg", }, + { + .link_mask = BIT(2) | BIT(3), + .links = arl_cs42l43_l2_cs35l56_l3, + .drv_name = "sof_sdw", + .sof_tplg_filename = "sof-arl-cs42l43-l2-cs35l56-l3.tplg", + .get_function_tplg_files = sof_sdw_get_tplg_files, + }, + { + .link_mask = BIT(0), + .links = arl_cs42l43_l0, + .drv_name = "sof_sdw", + .sof_tplg_filename = "sof-arl-cs42l43-l0.tplg", + .get_function_tplg_files = sof_sdw_get_tplg_files, + }, { .link_mask = 0x1, /* link0 required */ .links = arl_rvp,
@@ -522,10 +522,10 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_arl_sdw_machines[] = { .sof_tplg_filename = "sof-arl-rt711-l0.tplg", }, { - .link_mask = BIT(0) | BIT(2), - .links = arl_rt722_l0_rt1320_l2, + .link_mask = BIT(2), + .links = arl_cs42l43_l2, .drv_name = "sof_sdw", - .sof_tplg_filename = "sof-arl-rt722-l0_rt1320-l2.tplg", + .sof_tplg_filename = "sof-arl-cs42l43-l2.tplg", .get_function_tplg_files = sof_sdw_get_tplg_files, }, {},
Signature · 1 line
2.43.0
Bard Liao
maintainerPATCH 2/2 ASoC: soc-acpi-intel-arl-match: add rt712_l0_rt1320_l3 support
In reply to Bard LiaoFrom: Gary C Wang <[email protected]>
Add support for using the rt712 multi-function codec on link 0 and the rt1320 amplifier on link 3 on ARL platforms.
--- .../intel/common/soc-acpi-intel-arl-match.c | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+)
sound/soc/intel/common/soc-acpi-intel-arl-match.c +41 -0
@@ -8,6 +8,7 @@#include <sound/soc-acpi.h> #include <sound/soc-acpi-intel-match.h> #include <sound/soc-acpi-intel-ssp-common.h> +#include "soc-acpi-intel-sdca-quirks.h" #include "sof-function-topology-lib.h" static const struct snd_soc_acpi_endpoint single_endpoint = {
@@ -237,6 +238,15 @@ static const struct snd_soc_acpi_adr_device rt722_0_agg_adr[] = { } }; +static const struct snd_soc_acpi_adr_device rt712_0_agg_adr[] = { + { + .adr =0x000030025D071201ull , + .num_endpoints =ARRAY_SIZE (jack_amp_g1_dmic_endpoints), + .endpoints = jack_amp_g1_dmic_endpoints, + .name_prefix ="rt712" + } +}; +static const struct snd_soc_acpi_adr_device rt1316_3_single_adr[] = { { .adr =0x000330025D131601ull ,
@@ -255,6 +265,15 @@ static const struct snd_soc_acpi_adr_device rt1320_2_single_adr[] = { } }; +static const struct snd_soc_acpi_adr_device rt1320_3_group1_adr[] = { + { + .adr =0x000330025D132001ull , + .num_endpoints =1 , + .endpoints = &spk_r_endpoint, + .name_prefix ="rt1320-1" + } +}; +static const struct snd_soc_acpi_link_adr arl_cs42l43_l0[] = { { .mask =BIT (0 ),
@@ -404,6 +423,20 @@ static const struct snd_soc_acpi_link_adr arl_rt722_l0_rt1320_l2[] = { {} }; +static const struct snd_soc_acpi_link_adr arl_rt712_l0_rt1320_l3[] = { + { + .mask =BIT (0 ), + .num_adr =ARRAY_SIZE (rt712_0_agg_adr), + .adr_d = rt712_0_agg_adr, + }, + { + .mask =BIT (3 ), + .num_adr =ARRAY_SIZE (rt1320_3_group1_adr), + .adr_d = rt1320_3_group1_adr, + }, + {} +}; +static const struct snd_soc_acpi_codecs arl_essx_83x6 = { .num_codecs =3 , .codecs = {"ESSX8316" ,"ESSX8326" ,"ESSX8336" },
@@ -495,6 +528,14 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_arl_sdw_machines[] = { .drv_name = "sof_sdw", .sof_tplg_filename = "sof-arl-rt711-l0-rt1316-l3.tplg", }, + { + .link_mask = BIT(0) | BIT(3), + .links = arl_rt712_l0_rt1320_l3, + .drv_name = "sof_sdw", + .machine_check = snd_soc_acpi_intel_sdca_is_device_rt712_vb, + .sof_tplg_filename = "sof-arl-rt712-l0-rt1320-l3.tplg", + .get_function_tplg_files = sof_sdw_get_tplg_files, + }, { .link_mask = BIT(2) | BIT(3), .links = arl_cs42l43_l2_cs35l56_l3,
Signature · 1 line
2.43.0
Mark Brown
maintainerQuoted 8 lines · Bard Liao
ASoC: soc-acpi-intel-arl-match: add
rt712_l0_rt1320_l3supportAdd
rt712_l0_rt1320_l3support for ARL.Gary C Wang (1):
ASoC: soc-acpi-intel-arl-match: addrt712_l0_rt1320_l3support[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.1
Thanks!
[1/2] ASoC: Intel: soc-acpi-intel-arl-match: Reorder ACPI machine tables
https://git.kernel.org/broonie/sound/c/ac2f21ceddee
[2/2] ASoC: soc-acpi-intel-arl-match: add rt712_l0_rt1320_l3 support
https://git.kernel.org/broonie/sound/c/242200c29703
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark