Skip to contentSkip to conversation

ASoC: max98090/91: added DAPM widget for digital output for max98091

PATCH In review Sharique Mohammad 2 participants 2 messages Oct 21, 2025 – Oct 22, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 ASoC: max98090/91: added DAPM widget for digital output for max98091

Added DAPM widget for digital output path from codec to the CPU DAI (capture) for secondary digital mic. "AIFOUT2L" is the left audio channel output and "AIFOUT2R" is the right audio channel output, both belonging to the stream "HiFi Capture". Stream index given as 2 and 3 respectively, as 0 and 1 belongs to "AIFOUTL" and "AIFOUTR" of the primary digital mic. Now with this commit the total channels increase to 4, so changing the ".channels_max" for ".capture" to 4 accordingly in the "struct snd_soc_dai_driver max98090_dai". This will work for max98090 and max98091 both because in case of max98090 only 1 or 2 channels could be used and in case of max98091 maximum 4 channels could be used. Both the cases get satisfied with ".channels_max" as 4.

---
 sound/soc/codecs/max98090.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
sound/soc/codecs/max98090.c +6 -1
index 5aff5a459a43..03cc6e0fc88d 100644
@@ -1241,6 +1241,11 @@ static const struct snd_soc_dapm_widget max98091_dapm_widgets[] = {
 			 SND_SOC_DAPM_POST_PMU),
 	SND_SOC_DAPM_SUPPLY("DMIC34_HPF", M98090_REG_FILTER_CONFIG,
 		M98090_FLT_DMIC34HPF_SHIFT, 0, NULL, 0),
+
+	SND_SOC_DAPM_AIF_OUT("AIFOUT2L", "HiFi Capture", 2,
+		SND_SOC_NOPM, 0, 0),
+	SND_SOC_DAPM_AIF_OUT("AIFOUT2R", "HiFi Capture", 3,
+		SND_SOC_NOPM, 0, 0),
 };
 
 static const struct snd_soc_dapm_route max98090_dapm_routes[] = {
@@ -2371,7 +2376,7 @@ static struct snd_soc_dai_driver max98090_dai = {
 	.capture = {
 		.stream_name = "HiFi Capture",
 		.channels_min = 1,
-		.channels_max = 2,
+		.channels_max = 4,
 		.rates = MAX98090_RATES,
 		.formats = MAX98090_FORMATS,
 	},
Signature · 1 line
2.30.5
maintainer
#1 lore raw
Quoted 14 lines · Sharique Mohammad

Added DAPM widget for digital output path from codec to the CPU DAI (capture) for secondary digital mic. "AIFOUT2L" is the left audio channel output and "AIFOUT2R" is the right audio channel output, both belonging to the stream "HiFi Capture". Stream index given as 2 and 3 respectively, as 0 and 1 belongs to "AIFOUTL" and "AIFOUTR" of the primary digital mic. Now with this commit the total channels increase to 4, so changing the ".channels_max" for ".capture" to 4 accordingly in the "struct snd_soc_dai_driver max98090_dai". This will work for max98090 and max98091 both because in case of max98090 only 1 or 2 channels could be used and in case of max98091 maximum 4 channels could be used. Both the cases get satisfied with ".channels_max" as 4.

Quoted 1 line

[...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[3/3] ASoC: max98090/91: added DAPM widget for digital output for max98091

      commit: 638bae3fb225a708dc67db613af62f6d14c4eff4

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