ASoC: Intel: machine driver updates
Subsystems (3)
cover ASoC: Intel: machine driver updates
Several updates for RPL/MTL/LNL, and one fix for SoundWire TGL device.
Bard Liao (3):
ASoC: Intel: sof_sdw: remove SOF_SDW_TGL_HDMI for MeteorLake devices
ASoC: Intel: sof_sdw: add quirk for MTL RVP
ASoC: Intel: sof_sdw: start set codec init function with an adr index
Chao Song (1):
ASoC: Intel: soc-acpi: add support for MTL SDCA boards
Peter Ujfalusi (1):
ASoC: Intel: sof_sdw: add quirk for LNL RVP
Pierre-Louis Bossart (2):
ASoC: Intel: sof_sdw: add new mapping for HP Spectre x360
ASoC: Intel: soc-acpi: add tables for LunarLake
Terry Cheong (1):
ASoC: Intel: Add rpl_max98373_8825 driver
include/sound/soc-acpi-intel-match.h | 2 + sound/soc/intel/boards/sof_nau8825.c | 10 +++ sound/soc/intel/boards/sof_sdw.c | 49 +++++++++++-- sound/soc/intel/common/Makefile | 1 + .../intel/common/soc-acpi-intel-lnl-match.c | 72 +++++++++++++++++++ .../intel/common/soc-acpi-intel-mtl-match.c | 57 +++++++++++++++ .../intel/common/soc-acpi-intel-rpl-match.c | 12 ++++ 7 files changed, 197 insertions(+), 6 deletions(-) create mode 100644 sound/soc/intel/common/soc-acpi-intel-lnl-match.c
Signature · 1 line
2.37.2
PATCH 1/8 ASoC: Intel: Add rpl_max98373_8825 driver
From: Terry Cheong <[email protected]>
Boards were using this in older kernels before adl and rpl ids were split. Add this back to maintain support.
--- sound/soc/intel/boards/sof_nau8825.c | 10 ++++++++++ sound/soc/intel/common/soc-acpi-intel-rpl-match.c | 12 ++++++++++++ 2 files changed, 22 insertions(+)
sound/soc/intel/boards/sof_nau8825.c +10 -0
@@ -674,6 +674,16 @@ static const struct platform_device_id board_ids[] = {SOF_BT_OFFLOAD_SSP (2 ) | SOF_SSP_BT_OFFLOAD_PRESENT), }, + { + .name = "rpl_max98373_8825", + .driver_data = (kernel_ulong_t)(SOF_NAU8825_SSP_CODEC (0 ) | +SOF_SPEAKER_AMP_PRESENT | +SOF_MAX98373_SPEAKER_AMP_PRESENT | +SOF_NAU8825_SSP_AMP (1 ) | +SOF_NAU8825_NUM_HDMIDEV (4 ) | +SOF_BT_OFFLOAD_SSP (2 ) | + SOF_SSP_BT_OFFLOAD_PRESENT), + }, { } };MODULE_DEVICE_TABLE (platform, board_ids);
sound/soc/intel/common/soc-acpi-intel-rpl-match.c +12 -0
@@ -303,6 +303,11 @@ static const struct snd_soc_acpi_codecs rpl_max98360a_amp = { .codecs = {"MX98360A"}, }; +static const struct snd_soc_acpi_codecs rpl_max98373_amp = { + .num_codecs = 1, + .codecs = {"MX98373"} +}; + struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_machines[] = { { .comp_ids = &rpl_rt5682_hp,
@@ -311,6 +316,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_machines[] = { .quirk_data = &rpl_max98360a_amp, .sof_tplg_filename = "sof-rpl-max98360a-rt5682.tplg", }, + { + .id = "10508825", + .drv_name = "rpl_max98373_8825", + .machine_quirk = snd_soc_acpi_codec_list, + .quirk_data = &rpl_max98373_amp, + .sof_tplg_filename = "sof-rpl-max98373-nau8825.tplg", + }, {}, };EXPORT_SYMBOL_GPL (snd_soc_acpi_intel_rpl_machines);
Signature · 1 line
2.37.2
PATCH 2/8 ASoC: Intel: sof_sdw: remove SOF_SDW_TGL_HDMI for MeteorLake devices
In reply to Pierre-Louis BossartFrom: Bard Liao <[email protected]>
Topologies support three HDMI links on MeteorLake devices only.
--- sound/soc/intel/boards/sof_sdw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/boards/sof_sdw.c +1 -1
@@ -413,7 +413,7 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = { .matches = { DMI_MATCH(DMI_PRODUCT_FAMILY, "Intel_mtlrvp"), }, - .driver_data = (void *)(RT711_JD1 | SOF_SDW_TGL_HDMI), + .driver_data = (void *)(RT711_JD1), }, {} };
Signature · 1 line
2.37.2
PATCH 3/8 ASoC: Intel: sof_sdw: add quirk for MTL RVP
In reply to Pierre-Louis BossartFrom: Bard Liao <[email protected]>
We should use RT711_JD2_100K for on board rt711.
--- sound/soc/intel/boards/sof_sdw.c | 8 ++++++++ 1 file changed, 8 insertions(+)
sound/soc/intel/boards/sof_sdw.c +8 -0
@@ -415,6 +415,14 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = { }, .driver_data = (void *)(RT711_JD1), }, + { + .callback = sof_sdw_quirk_cb, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"), + DMI_MATCH(DMI_PRODUCT_NAME, "Meteor Lake Client Platform"), + }, + .driver_data = (void *)(RT711_JD2_100K), + }, {} };
Signature · 1 line
2.37.2
PATCH 4/8 ASoC: Intel: soc-acpi: add support for MTL SDCA boards
In reply to Pierre-Louis BossartFrom: Chao Song <[email protected]>
The description and board layout is changed and different from previous ones for CometLake and Tigerlake.
The new codec layout for MTL is:
SDW0: RT711 Headphone
SDW1: RT714 DMIC
SDW2: RT1316 Speaker
SDW3: RT1316 Speaker
The previous codec layout for CML and TGL is:
SDW0: RT711 Headphone
SDW1: RT1316 Speaker
SDW2: RT1316 Speaker
SDW3: RT714 DMIC
--- .../intel/common/soc-acpi-intel-mtl-match.c | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+)
sound/soc/intel/common/soc-acpi-intel-mtl-match.c +57 -0
@@ -98,6 +98,33 @@ static const struct snd_soc_acpi_adr_device rt5682_2_adr[] = { } }; +static const struct snd_soc_acpi_adr_device rt1316_2_group1_adr[] = { + { + .adr =0x000230025D131601ull , + .num_endpoints =1 , + .endpoints = &spk_l_endpoint, + .name_prefix ="rt1316-1" + } +}; + +static const struct snd_soc_acpi_adr_device rt1316_3_group1_adr[] = { + { + .adr =0x000331025D131601ull , + .num_endpoints =1 , + .endpoints = &spk_r_endpoint, + .name_prefix ="rt1316-2" + } +}; + +static const struct snd_soc_acpi_adr_device rt714_1_adr[] = { + { + .adr =0x000130025D071401ull , + .num_endpoints =1 , + .endpoints = &single_endpoint, + .name_prefix ="rt714" + } +}; +static const struct snd_soc_acpi_link_adr rt5682_link2_max98373_link0[] = {/* Expected order: jack -> amp */ {
@@ -122,6 +149,30 @@ static const struct snd_soc_acpi_link_adr mtl_rvp[] = { {} }; +static const struct snd_soc_acpi_link_adr mtl_3_in_1_sdca[] = { + { + .mask =BIT (0 ), + .num_adr =ARRAY_SIZE (rt711_sdca_0_adr), + .adr_d = rt711_sdca_0_adr, + }, + { + .mask =BIT (2 ), + .num_adr =ARRAY_SIZE (rt1316_2_group1_adr), + .adr_d = rt1316_2_group1_adr, + }, + { + .mask =BIT (3 ), + .num_adr =ARRAY_SIZE (rt1316_3_group1_adr), + .adr_d = rt1316_3_group1_adr, + }, + { + .mask =BIT (1 ), + .num_adr =ARRAY_SIZE (rt714_1_adr), + .adr_d = rt714_1_adr, + }, + {} +}; +/* this table is used when there is no I2S codec present */ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_sdw_machines[] = {/* mockup tests need to be first */
@@ -143,6 +194,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_sdw_machines[] = { .drv_name = "sof_sdw", .sof_tplg_filename = "sof-mtl-rt715-rt711-rt1308-mono.tplg", }, + { + .link_mask = GENMASK(3, 0), + .links = mtl_3_in_1_sdca, + .drv_name = "sof_sdw", + .sof_tplg_filename = "sof-mtl-rt711-l0-rt1316-l23-rt714-l1.tplg", + }, { .link_mask = BIT(0), .links = mtl_rvp,
Signature · 1 line
2.37.2
PATCH 5/8 ASoC: Intel: sof_sdw: start set codec init function with an adr index
In reply to Pierre-Louis BossartFrom: Bard Liao <[email protected]>
Currently, set_codec_init_func always start with link->adr_d[0] because we assumed all adr_d on the same link are the same devices. The assumption is no longer valid when different devices on the same sdw link are supported.
--- sound/soc/intel/boards/sof_sdw.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)
sound/soc/intel/boards/sof_sdw.c +11 -5
@@ -910,17 +910,20 @@ static int create_codec_dai_name(struct device *dev,static int set_codec_init_func (struct snd_soc_card *card,const struct snd_soc_acpi_link_adr *link,struct snd_soc_dai_link *dai_links, -bool playback,int group_id) +bool playback,int group_id,int adr_index) { -int i; +int i = adr_index; do { /* * Initialize the codec. If codec is part of an aggregated * group (group_id>0), initialize all codecs belonging to * same group. + * The first link should start with link->adr_d[adr_index] + * because that is the device that we want to initialize and + * we should end immediately if it is not aggregated (group_id=0) */ - for (i = 0; i < link->num_adr; i++) { + for ( ; i < link->num_adr; i++) { int codec_index; codec_index = find_codec_info_part(link->adr_d[i].adr);
@@ -936,9 +939,12 @@ static int set_codec_init_func(struct snd_soc_card *card, dai_links, &codec_info_list[codec_index], playback); +if (!group_id) +return 0 ; } + i =0 ; link++; - }while (link->mask && group_id); + }while (link->mask);return 0 ; }
@@ -1188,7 +1194,7 @@ static int create_sdw_dailink(struct snd_soc_card *card, dai_links[*link_index].nonatomic = true; ret =set_codec_init_func (card, link, dai_links + (*link_index)++, - playback, group_id); + playback, group_id, adr_index);if (ret <0 ) {dev_err (dev,"failed to init codec %d" , codec_index);return ret;
Signature · 1 line
2.37.2
PATCH 6/8 ASoC: Intel: sof_sdw: add new mapping for HP Spectre x360
In reply to Pierre-Louis BossartA BIOS/DMI update seems to have broken some devices, let's add a new mapping.
--- sound/soc/intel/boards/sof_sdw.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
sound/soc/intel/boards/sof_sdw.c +14 -0
@@ -191,6 +191,20 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = {SOF_SDW_PCH_DMIC | RT711_JD1), }, + { +/* +* this entry covers HP Spectre x360 where the DMI information +* changed somehow +*/ + .callback = sof_sdw_quirk_cb, + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"HP" ), + DMI_MATCH(DMI_BOARD_NAME, "8709"), + }, + .driver_data = (void *)(SOF_SDW_TGL_HDMI | +SOF_SDW_PCH_DMIC | + RT711_JD1), + }, {/* NUC15 'Bishop County' LAPBC510 and LAPBC710 skews */ .callback = sof_sdw_quirk_cb,
Signature · 1 line
2.37.2
PATCH 7/8 ASoC: Intel: soc-acpi: add tables for LunarLake
In reply to Pierre-Louis BossartThese tables are used for 'nocodec' and SoundWire mockups+RVP tests. The LNL RVP has a single rt711-sdca SoundWire codec.
--- include/sound/soc-acpi-intel-match.h | 2 + sound/soc/intel/common/Makefile | 1 + .../intel/common/soc-acpi-intel-lnl-match.c | 72 +++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 sound/soc/intel/common/soc-acpi-intel-lnl-match.c
include/sound/soc-acpi-intel-match.h +2 -0
@@ -31,6 +31,7 @@ extern struct snd_soc_acpi_mach snd_soc_acpi_intel_jsl_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[]; +extern struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_cnl_sdw_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_cfl_sdw_machines[];
@@ -40,6 +41,7 @@ extern struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_sdw_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_sdw_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_sdw_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_sdw_machines[]; +extern struct snd_soc_acpi_mach snd_soc_acpi_intel_lnl_sdw_machines[];/* * generic table used for HDA codec-based platforms, possibly with
sound/soc/intel/common/Makefile +1 -0
@@ -10,6 +10,7 @@ snd-soc-acpi-intel-match-objs := soc-acpi-intel-byt-match.o soc-acpi-intel-cht-m soc-acpi-intel-tgl-match.o soc-acpi-intel-ehl-match.o \ soc-acpi-intel-jsl-match.o soc-acpi-intel-adl-match.o \ soc-acpi-intel-rpl-match.o soc-acpi-intel-mtl-match.o \ + soc-acpi-intel-lnl-match.o \ soc-acpi-intel-hda-match.o \ soc-acpi-intel-sdw-mockup-match.o
sound/soc/intel/common/soc-acpi-intel-lnl-match.c new file +72 -0
72 lines not on this page · raw message
Signature · 1 line
2.37.2
PATCH 8/8 ASoC: Intel: sof_sdw: add quirk for LNL RVP
In reply to Pierre-Louis BossartFrom: Peter Ujfalusi <[email protected]>
We should use RT711_JD2_100K for on board rt711
--- sound/soc/intel/boards/sof_sdw.c | 9 +++++++++ 1 file changed, 9 insertions(+)
sound/soc/intel/boards/sof_sdw.c +9 -0
@@ -437,6 +437,15 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = { }, .driver_data = (void *)(RT711_JD2_100K), }, +/* LunarLake devices */ + { + .callback = sof_sdw_quirk_cb, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"), + DMI_MATCH(DMI_PRODUCT_NAME, "Lunar Lake Client Platform"), + }, + .driver_data = (void *)(RT711_JD2_100K), + }, {} };
Signature · 1 line
2.37.2
Mark Brown
maintainerQuoted 8 lines · Pierre-Louis Bossart
Several updates for RPL/MTL/LNL, and one fix for SoundWire TGL device.
Bard Liao (3):
ASoC: Intel:sof_sdw: removeSOF_SDW_TGL_HDMIfor MeteorLake devices
ASoC: Intel:sof_sdw: add quirk for MTL RVP
ASoC: Intel:sof_sdw: start set codec init function with an adr index[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/8] ASoC: Intel: Add rpl_max98373_8825 driver
commit: 8899672f8847f1ac7767b1431266c01741047e37
[2/8] ASoC: Intel: sof_sdw: remove SOF_SDW_TGL_HDMI for MeteorLake devices
commit: 0db94947c9d3da16aa31d152b7d26fab78b02cb9
[3/8] ASoC: Intel: sof_sdw: add quirk for MTL RVP
commit: 289e1df00e49a229a1c924c059242e759a552f01
[4/8] ASoC: Intel: soc-acpi: add support for MTL SDCA boards
commit: b06e33aa0ad46bb1cc68c0cec61f86a183f8dd43
[5/8] ASoC: Intel: sof_sdw: start set codec init function with an adr index
commit: f0c8d83ab1a3532ebeb1a89acb649be01657aed8
[6/8] ASoC: Intel: sof_sdw: add new mapping for HP Spectre x360
commit: 49d1f3ccc876eec87be41b5ee816d723b9a53ae2
[7/8] ASoC: Intel: soc-acpi: add tables for LunarLake
commit: bf10d002b69da64001a22763ba46ccc1405de8ba
[8/8] ASoC: Intel: sof_sdw: add quirk for LNL RVP
commit: dfe25fea968dc4884e12d471c8263f0f611b380aAll 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