ASoC: davinci-mcasp: Place constraint on number of channels
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 10 Nov 2014 10:32:16 +0000 (12:32 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 10 Nov 2014 15:00:01 +0000 (15:00 +0000)
commit11277833ce8018ddd18925d2f85037bf02dcba63
treef8bf476c1d629c69256b2cfd17f74f20c7dc9df6
parent1a5923da4e2e6997f03545a2b88f2cd2dea1a5c2
ASoC: davinci-mcasp: Place constraint on number of channels

In IIS (I2S, TDM, etc) mode the maximum number of allowed channels for
either direction can be:
number of serializers for the direction * tdm_slots.
This constraint applicable for the first stream, while consequent stream
should not have more channels then the first stream.

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