linux/sound/soc/sunxi
Andrea Bondavalli 5a0cf02465
ASoC: sun4i-codec: enable 12Khz and 24Khz audio sample rates
H3 ASoC supports 12Khz and 24Khz audio sample rates but the current
drivers doesn't advertise these rates properly and they cannot be used.

For example attempt to capture at 12Khz uses 11Khz (same applies to
audio playback):

Recording raw data '/tmp/testS16_LE.raw' : Signed 16 bit Little Endian, Rate 12000 Hz, Stereo
Warning: rate is not accurate (requested = 12000Hz, got = 11025Hz)

This patch fixes the audio sample rates declared and supported by the
driver according to the H3 data sheet.  Specifically for audio playback:

8000, 11050, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 96000, 192000

and for audio capture:

8000, 11050, 12000, 16000, 22050, 24000, 32000, 44100, 48000

Signed-off-by: Andrea Bondavalli <andrea.bondavalli74@gmail.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
2017-12-12 10:38:03 +00:00
..
Kconfig ASoC: sunxi: allow the analog codec driver to be built on ARM64 2017-02-08 18:29:37 +00:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sun4i-codec.c ASoC: sun4i-codec: enable 12Khz and 24Khz audio sample rates 2017-12-12 10:38:03 +00:00
sun4i-i2s.c ASoC: sun4i-i2s: Add support for A83T 2017-12-12 10:33:02 +00:00
sun4i-spdif.c ASoC: sun4i-spdif: Handle return value of clk_prepare_enable. 2017-07-26 13:01:33 +01:00
sun8i-codec-analog.c ASoC: sun8i-codec-analog: add support for V3s SoC 2017-06-06 19:29:54 +01:00
sun8i-codec.c Merge remote-tracking branches 'asoc/topic/samsung', 'asoc/topic/sgtl5000', 'asoc/topic/stm32', 'asoc/topic/sunxi' and 'asoc/topic/tas571x' into asoc-next 2017-11-10 21:31:29 +00:00