ASoC: zx-i2s: fix harsh noise with 16-bit audio
authorShawn Guo <shawn.guo@linaro.org>
Sat, 27 May 2017 07:50:44 +0000 (15:50 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 29 May 2017 13:17:17 +0000 (14:17 +0100)
commit6a9a440681f2170b9a07b1cf28c6aa7532c307c8
treeda97d21ca9e0b6daf620ed57719aa344e96c26cc
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
ASoC: zx-i2s: fix harsh noise with 16-bit audio

The audio parameter setup in zx_i2s_hw_params() works fine with 32-bit
samples, but for 16-bit ones, all we can hear is harsh noises.
As suggested by vendor driver code, DMA burst size and TS width should
always be 32 bits, no matter audio sample is 16-bit or 32-bit.

Follow the suggestion above to fix the harsh noise issue seen with
16-bit audio samples.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/zte/zx-i2s.c