]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: ti: davinci-mcasp: Improve serializer handling in multi AXR setups
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 25 Jul 2019 08:34:32 +0000 (11:34 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 25 Jul 2019 12:58:34 +0000 (13:58 +0100)
commitb7989e271e9f7fd4edb4166cd2a79b980c4b6136
tree3a4d83f04b2782cf000bf960fa24aede34d242eb
parent816fe206138a7e3895c3a74fbd326a51df003f70
ASoC: ti: davinci-mcasp: Improve serializer handling in multi AXR setups

When multiple serializers are used we need to track the number of
serializers used by the other stream direction to avoid killing data lines
when the first stream used more serializers than the second would need.
We are still protected against the case when the second stream uses more
serializers which had affected the running stream as well.

To take advantage of the improved serializer logic we need to modify the
channel constraints rule as well to allow the use of multiple serializers
for the second stream as additional ones will not affect the FS/BCLK on
the bus.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20190725083432.7419-1-peter.ujfalusi@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/davinci-mcasp.c