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)
committerMark Brown <broonie@kernel.org>
Mon, 19 May 2025 10:59:44 +0000 (11:59 +0100)
commite717c661e2d1a660e96c40b0fe9933e23a1d7747
tree1d14c469299039668f62287686703da07dbfb875
parent7dd7f39fce0022b386ef1ea5ffef92ecc7dfc6af
ASoC: apple: mca: Constrain channels according to TDM mask

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>
sound/soc/apple/mca.c