]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commit
ASoC: davinci-mcasp: Active slots depend on active serializers
authorMisael Lopez Cruz <misael.lopez@ti.com>
Fri, 19 Jul 2013 16:55:37 +0000 (11:55 -0500)
committerMisael Lopez Cruz <misael.lopez@ti.com>
Mon, 22 Jul 2013 19:42:52 +0000 (14:42 -0500)
commit5c0f2d05315f863cd8380aeb1552dd4d0e8ac663
tree7714a741844bfab7e3a9e23ea9b03fb3a0042704
parentbd05aadc181b1bd23dbe79a9c52ac5d502b9cfa7
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

Change-Id: I690a8518a807b70cebdbeb131979d68bfb86e4fe
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
sound/soc/davinci/davinci-mcasp.c
sound/soc/davinci/davinci-mcasp.h