ASoC: sti: unip reader tdm mode
authorMoise Gergaud <moise.gergaud@st.com>
Thu, 7 Apr 2016 09:25:36 +0000 (11:25 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 12 Apr 2016 03:59:09 +0000 (04:59 +0100)
commit82d4eb91ab1912cb9e8751b9aa0875af2ae36db2
tree45f0c044bc58db0bd7242145a6c9f76a05eba279
parent8d8b1e2eddaef25ca0a18500dd9425638f1cfd02
ASoC: sti: unip reader tdm mode

Here are the changes to enable reader tdm mode:
- When TDM_ENABLE is set to 1, the i2s format should be automatically
configured. Unfortunately this is not the case (HW bug). Then, we shall
force DATA_SIZE setting.
- Compute the transfer size for tdm mode: transfer size = user frame size
- Manage tdm slots configuration given in DT.
- Refine the hw param (channels & format) according to tdm slot config.

Signed-off-by: Moise Gergaud <moise.gergaud@st.com>
Acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sti/uniperif_reader.c