]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: pcm3168a: Allow reconfiguration of tdm_slots and slot_width
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 12 Aug 2019 09:52:26 +0000 (12:52 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 12 Aug 2019 13:08:36 +0000 (14:08 +0100)
commit6fa4e0cae684d268d309d1b1f929d52e3df5649c
treed026959cfdc0846fe1f30ea32c4cb55c484becf3
parentabe51c351827e0086dad079dfe02918fecdf4830
ASoC: pcm3168a: Allow reconfiguration of tdm_slots and slot_width

When using right_j format and the codec is slave it can support 16bit
format, but only if slot_width == 16, in the same DAI mode the 24 bit
audio can work with 24 or 32 slot_width.

Because of this, the codec and CPU needs to be reconfigured when the sample
format changes.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20190812095226.18870-3-peter.ujfalusi@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/pcm3168a.c