ASoC: sun4i-codec: fixed 32bit audio capture support for H3/H2+
authorAndrea Bondavalli <andrea.bondavalli74@gmail.com>
Tue, 31 Oct 2017 11:58:18 +0000 (12:58 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 9 Nov 2017 11:44:18 +0000 (11:44 +0000)
commit8a0f95ce48304364979066600eba7cc5c939ba83
tree510bc9df6ef23b56a225c4cc0f84cbd2640caee6
parente7b8a6d3efa8316dfe786e9cd559c62e9152337c
ASoC: sun4i-codec: fixed 32bit audio capture support for H3/H2+

32bit and 24bit audio capture formats for H3/H2+ are broken because the
RX_SAMPLE_BITS and the RX_FIFO_MODE bits of AC_ADC_FIFOC register of the audio
codec are not set to operate in 24bit mode but in 16bit mode only.
The following patch sets the H3 audio codec registers and the DMA bus width
properly when a 24/32bit capture is requested.

Signed-off-by: Andrea Bondavalli <andrea.bondavalli74@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-codec.c