ASoC: davinci-mcasp: Add set_tdm_slots() support
authorJyri Sarha <jsarha@ti.com>
Wed, 9 Sep 2015 18:27:44 +0000 (21:27 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 16 Sep 2015 16:59:15 +0000 (17:59 +0100)
commitdd55ff8346a972cca1ad056c8258ee96d090633e
tree3f264b123c8ded9c269088738ebca657c6aed974
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
ASoC: davinci-mcasp: Add set_tdm_slots() support

Implements set_tdm_slot() callback for mcasp. Channel constraints are
updated according to the configured tdm mask and slots each time
set_tdm_slot() is called. The special case when slot width is set to
zero is allowed and it means that slot width is the same as the sample
width.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/davinci-mcasp.c