ASoC: tlv320aic3x: Improve tdm support
authorJyri Sarha <jsarha@ti.com>
Wed, 9 Sep 2015 18:27:46 +0000 (21:27 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 16 Sep 2015 16:58:56 +0000 (17:58 +0100)
commit3e8f5263bd83fd0fe7dacba2de347b17ac99fc91
tree67cb1ca36b068e1d0f3cf39374a44c6c44736174
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
ASoC: tlv320aic3x: Improve tdm support

Before this patch the set_tdm_slots() callback did not store the value
of slot width anywhere. The tdm support only worked if selected slot
width was equal to the sample width. With this patch all sample widths
that fit into the slot width are supported. There unused bits are
filled unnecessarily in the capture direction, but the other end of
the i2s bus should be able to ignore them.

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