ASoC: Intel: boards: add max98390 2/4 speakers support
Subsystems (4)
PATCH v4 1/1 ASoC: Intel: boards: add max98390 2/4 speakers support
support 2 hw boards.
1. SSP2 connects max98390, 2 speakers.
2. SSP1 connects max98390, 2/4 speakers.
2 or 4 speakers playback
add echo reference capture
add bt offload support
add DMI_OEM_STRING for board variants
add ALC5682I-VS support
---
v3 -> v4:
- use comp_ids to scan acpi support ALC5682I-VD or ALC5682I-VS
- remove redundant drv_name "adl_max98390_rt5682s" from soc-acpi-intel-adl-match.c and device table in sof_rt5682.c
--- sound/soc/intel/boards/Kconfig | 1 + sound/soc/intel/boards/sof_maxim_common.c | 180 ++++++++++++++++++ sound/soc/intel/boards/sof_maxim_common.h | 16 ++ sound/soc/intel/boards/sof_rt5682.c | 72 +++++++ .../intel/common/soc-acpi-intel-adl-match.c | 13 ++ sound/soc/sof/sof-pci-dev.c | 9 + 6 files changed, 291 insertions(+)
sound/soc/intel/boards/Kconfig +1 -0
@@ -467,6 +467,7 @@ config SND_SOC_INTEL_SOF_RT5682_MACH (MFD_INTEL_LPSS || COMPILE_TEST)) ||\ (SND_SOC_SOF_BAYTRAIL && (X86_INTEL_LPSS || COMPILE_TEST)) select SND_SOC_MAX98373_I2C + select SND_SOC_MAX98390 select SND_SOC_RT1011 select SND_SOC_RT1015 select SND_SOC_RT1015P
sound/soc/intel/boards/sof_maxim_common.c +180 -0
192 lines not on this page · raw message
sound/soc/intel/boards/sof_maxim_common.h +16 -0
@@ -24,6 +24,22 @@ int max_98373_spk_codec_init(struct snd_soc_pcm_runtime *rtd);void max_98373_set_codec_conf (struct snd_soc_card *card);int max_98373_trigger (struct snd_pcm_substream *substream,int cmd); +/* +* Maxim MAX98390 +*/ +#define MAX_98390_CODEC_DAI "max98390-aif1" +#define MAX_98390_DEV0_NAME "i2c-MX98390:00" +#define MAX_98390_DEV1_NAME "i2c-MX98390:01" +#define MAX_98390_DEV2_NAME "i2c-MX98390:02" +#define MAX_98390_DEV3_NAME "i2c-MX98390:03" + +extern struct snd_soc_dai_link_component max_98390_components[2 ]; +extern struct snd_soc_dai_link_component max_98390_4spk_components[4 ]; +extern const struct snd_soc_ops max_98390_ops; + +void max_98390_set_codec_conf (struct snd_soc_card *card,int ch); +int max_98390_spk_codec_init (struct snd_soc_pcm_runtime *rtd); +/* * Maxim MAX98357A/MAX98360A */
sound/soc/intel/boards/sof_rt5682.c +72 -0
120 lines not on this page · raw message
sound/soc/intel/common/soc-acpi-intel-adl-match.c +13 -0
@@ -379,6 +379,11 @@ static const struct snd_soc_acpi_codecs adl_rt1019p_amp = { .codecs = {"RTL1019"} }; +static const struct snd_soc_acpi_codecs adl_max98390_amp = { + .num_codecs =1 , + .codecs = {"MX98390" } +}; +struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = { { .comp_ids = &adl_rt5682_rt5682s_hp,
@@ -434,6 +439,14 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[] = { .sof_fw_filename = "sof-adl.ri", .sof_tplg_filename = "sof-adl-nau8825.tplg", }, + { + .comp_ids = &adl_rt5682_rt5682s_hp, + .drv_name = "adl_max98390_rt5682", + .machine_quirk = snd_soc_acpi_codec_list, + .quirk_data = &adl_max98390_amp, + .sof_fw_filename = "sof-adl.ri", + .sof_tplg_filename = "sof-adl-max98390-rt5682.tplg", + }, {}, };EXPORT_SYMBOL_GPL (snd_soc_acpi_intel_adl_machines);
sound/soc/sof/sof-pci-dev.c +9 -0
@@ -59,6 +59,15 @@ static const struct dmi_system_id sof_tplg_table[] = { }, .driver_data = "sof-adl-rt5682-ssp0-max98373-ssp2.tplg", }, + { + .callback = sof_tplg_cb, + .matches = { + DMI_MATCH(DMI_PRODUCT_FAMILY, "Google_Brya"), + DMI_MATCH(DMI_OEM_STRING, "AUDIO-MAX98390_ALC5682I_I2S"), + }, + .driver_data = "sof-adl-max98390-ssp2-rt5682-ssp0.tplg", + }, + {} };
Signature · 1 line
2.20.1
Quoted 10 lines · Mac Chiang
support 2 hw boards.
1. SSP2 connects max98390, 2 speakers.
2. SSP1 connects max98390, 2/4 speakers.2 or 4 speakers playback
add echo reference capture
add bt offload support
addDMI_OEM_STRINGfor board variants
add ALC5682I-VS support
Quoted 4 lines
Signed-off-by Mark Hsieh <[email protected]>Signed-off-by Mac Chiang <[email protected]>Signed-off-by Kieth Tzeng <[email protected]>Signed-off-by Brent Lu <[email protected]>
LGTM
Mark Brown
maintainerQuoted 11 lines · Mac Chiang
support 2 hw boards.
1. SSP2 connects max98390, 2 speakers.
2. SSP1 connects max98390, 2/4 speakers.2 or 4 speakers playback
add echo reference capture
add bt offload support
addDMI_OEM_STRINGfor board variants
add ALC5682I-VS support[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: Intel: boards: add max98390 2/4 speakers support
commit: f316c9d9ba8ea08d6994bc5ba8fa276eab186208
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