ASoC: tlv320aic32x4: Fix TAS2505/TAS2521 processing block selection
authorMarek Vasut <marex@denx.de>
Tue, 20 Jul 2021 20:03:48 +0000 (22:03 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 22 Jul 2021 11:40:03 +0000 (12:40 +0100)
commit090c57da5fd59fb59adc9d9341a77558c93b0abd
tree8cf436df040c0d65007ba7ff1e189c3896d0d986
parentd00f541a49406afc2c091aac121e29b3b61480a2
ASoC: tlv320aic32x4: Fix TAS2505/TAS2521 processing block selection

The TAS2505/TAS2521 does support only three processing block options, unlike
TLV320AIC32x4 which supports 25. This is documented in TI slau472 2.5.1.2
Processing Blocks and Page 0 / Register 60: DAC Instruction Set - 0x00 / 0x3C.

Limit the Processing Blocks maximum value to 3 on TAS2505/TAS2521 and select
processing block PRB_P1 always, because for the configuration of teh codec
implemented in this driver, this is the best quality option.

Fixes: b4525b6196cd7 ("ASoC: tlv320aic32x4: add support for TAS2505")
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Claudius Heine <ch@denx.de>
Cc: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210720200348.182139-1-marex@denx.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320aic32x4.c