Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

Signed-off-by: Sharique Mohammad <sharq0406@gmail.com>
Link: https://patch.msgid.link/20251021145611.1750689-1-sharq0406@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Sharique Mohammad and committed by
Mark Brown
638bae3f 108fba26

+6 -1
+6 -1
sound/soc/codecs/max98090.c
··· 1241 1241 SND_SOC_DAPM_POST_PMU), 1242 1242 SND_SOC_DAPM_SUPPLY("DMIC34_HPF", M98090_REG_FILTER_CONFIG, 1243 1243 M98090_FLT_DMIC34HPF_SHIFT, 0, NULL, 0), 1244 + 1245 + SND_SOC_DAPM_AIF_OUT("AIFOUT2L", "HiFi Capture", 2, 1246 + SND_SOC_NOPM, 0, 0), 1247 + SND_SOC_DAPM_AIF_OUT("AIFOUT2R", "HiFi Capture", 3, 1248 + SND_SOC_NOPM, 0, 0), 1244 1249 }; 1245 1250 1246 1251 static const struct snd_soc_dapm_route max98090_dapm_routes[] = { ··· 2376 2371 .capture = { 2377 2372 .stream_name = "HiFi Capture", 2378 2373 .channels_min = 1, 2379 - .channels_max = 2, 2374 + .channels_max = 4, 2380 2375 .rates = MAX98090_RATES, 2381 2376 .formats = MAX98090_FORMATS, 2382 2377 },