ASoC: codec: tlv3204: Enable 24 bit audio support
authorMichael Sit Wei Hong <michael.wei.hong.sit@intel.com>
Wed, 12 Aug 2020 09:46:29 +0000 (17:46 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 17 Aug 2020 15:36:22 +0000 (16:36 +0100)
commitdcd79364bff36ce1341a59be8142ded5b7da7d19
tree927cf5ef954ca8cf4daeceade5f6c5e2aafc4115
parent549ade5721fe197b78165fc3476af1fe0c65f089
ASoC: codec: tlv3204: Enable 24 bit audio support

Enable 24 bit in 32 bit container audio support.
Using the params_physical_width to differentiate
24 bit in 32 bit container and 24 bit in 24 bit container modes.
Use the sample rate, bit depth and channel parameters to
calculate the bit clock needed.

Signed-off-by: Michael Sit Wei Hong <michael.wei.hong.sit@intel.com>
Reviewed-by: Sia Jee Heng <jee.heng.sia@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200812094631.4698-2-michael.wei.hong.sit@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320aic32x4.c