summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dai.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-06-24 12:57:16 +0200
committerMark Brown <broonie@kernel.org>2022-07-07 18:16:23 +0200
commit7d90c8e6396ba245da16bedd789df6d669375408 (patch)
tree6502a70777052354fc42ed510fcfcad9a8c90ee9 /sound/soc/soc-dai.c
parentASoC: max98396: Fix register access for PCM format settings (diff)
downloadlinux-7d90c8e6396ba245da16bedd789df6d669375408.tar.xz
linux-7d90c8e6396ba245da16bedd789df6d669375408.zip
ASoC: tlv320adcx140: Fix tx_mask check
The tx_mask check doesn't reflect what the driver and the chip support. The check currently checks for exactly two slots being enabled. The tlv320adcx140 supports anything between one and eight channels, so relax the check accordingly. The tlv320adcx140 supports arbitrary tx_mask settings, but the driver currently only supports adjacent slots beginning with the first slot, so extend the check to check that the first slot is being used and that there are no holes in the tx_mask. Leave a comment to make it's the driver that limits the tx_mask settings, not the chip itself. While at it remove the set-but-unused struct adcx140p_priv::tdm_delay field. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Link: https://lore.kernel.org/r/20220624105716.2579539-1-s.hauer@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-dai.c')
0 files changed, 0 insertions, 0 deletions