]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: davinci-mcasp: Active slots depend on active serializers
authorMisael Lopez Cruz <misael.lopez@ti.com>
Mon, 10 Nov 2014 10:32:17 +0000 (12:32 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 10 Nov 2014 15:00:01 +0000 (15:00 +0000)
commit18a4f55756ac945bd89d1fe63dafe36462ecba86
treedab5530526a1da68fb2f17d3b021259a29cc57b0
parent11277833ce8018ddd18925d2f85037bf02dcba63
ASoC: davinci-mcasp: Active slots depend on active serializers

Active slots count depends on the number of channels in the stream
and the number of active serializers. Each serializer will handle
at most the number of channels specified via 'tdm-slots' parameter
in DT.

There are two possible scenarios:

- Single serializer: channel count fits in the max slots supported by
  McASP serializers, active slots is same as channel count

- Multiple serializers: channel count is bigger than max slots supported
  by a serializer. Channel count determines how many serializers are
  needed at their max slot count configuration

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/davinci-mcasp.c