]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: apple: mca: Constrain channels according to TDM mask
authorMartin Povišer <povik+lin@cutebit.org>
Sun, 18 May 2025 10:50:46 +0000 (20:50 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:07 +0000 (11:07 +0100)
commit64362c10fdd73ea308a0dacdf8773cb962ee3a53
tree2d7a9b7f6829891f68f6895bb3c1abfc4f4c4c2a
parent11e8aff6bc0d594444068b99ea585b97d492c5c5
ASoC: apple: mca: Constrain channels according to TDM mask

[ Upstream commit e717c661e2d1a660e96c40b0fe9933e23a1d7747 ]

We don't (and can't) configure the hardware correctly if the number of
channels exceeds the weight of the TDM mask. Report that constraint in
startup of FE.

Fixes: 3df5d0d97289 ("ASoC: apple: mca: Start new platform driver")
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Link: https://patch.msgid.link/20250518-mca-fixes-v1-1-ee1015a695f6@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/apple/mca.c