ASoC: davinci-mcasp: Fix TDM slot rx/tx mask associations
authorAndreas Dannenberg <dannenberg@ti.com>
Mon, 9 Nov 2015 18:19:19 +0000 (12:19 -0600)
committerMark Brown <broonie@kernel.org>
Tue, 10 Nov 2015 18:49:59 +0000 (18:49 +0000)
commit1bdd593247ee5a74eb58828a4cf18bdc8a5f1baa
tree3897f076dd0fe9b3c14219517c45d51190269fcf
parentbb9a13a0209c56cdf27d125a1f2f6f34378c64f4
ASoC: davinci-mcasp: Fix TDM slot rx/tx mask associations

Fixes the associations between the tx_mask and rx_mask and the associated
playback / capture streams during setting of the TDM slot. With this
patch in place it is now possible for example to only populate tx_mask
(leaving rx_mask as 0) for output-only codecs to control the TDM slot(s)
the McASP serial port uses for transmit. Before that, this scenario
would incorrectly rely on the rx_mask for this.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Jyri Sarha <jsarha@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/davinci-mcasp.c