summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorAndrea Bondavalli <andrea.bondavalli74@gmail.com>2017-12-12 10:14:50 +0100
committerMark Brown <broonie@kernel.org>2017-12-12 10:38:03 +0000
commit5a0cf02465a0510c48ab34e7ba88b0f8c20b9ea1 (patch)
treefbb0c3808480db4713231684bf1f492cd3cf0683 /include/sound
parent21faaea1343f2f8dc6539302c92231afc6d999a5 (diff)
downloadlinux-stable-5a0cf02465a0510c48ab34e7ba88b0f8c20b9ea1.tar.gz
linux-stable-5a0cf02465a0510c48ab34e7ba88b0f8c20b9ea1.tar.bz2
linux-stable-5a0cf02465a0510c48ab34e7ba88b0f8c20b9ea1.zip
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>
Diffstat (limited to 'include/sound')
0 files changed, 0 insertions, 0 deletions