]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit839240bc8fa3c681c0749e662c88250ea1047eef
tree510bc9df6ef23b56a225c4cc0f84cbd2640caee6
parenta5fabc5c9b83301f3fc931cf557eb01bd93b6b8d
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