linux/sound/soc/sh/rcar
Mikhail Durnev 19c6a63ced
ASoC: rsnd: core: Check convert rate in rsnd_hw_params
snd_pcm_hw_params_set_rate_near can return incorrect sample rate in
some cases, e.g. when the backend output rate is set to some value higher
than 48000 Hz and the input rate is 8000 Hz. So passing the value returned
by snd_pcm_hw_params_set_rate_near to snd_pcm_hw_params will result in
"FSO/FSI ratio error" and playing no audio at all while the userland
is not properly notified about the issue.

If SRC is unable to convert the requested sample rate to the sample rate
the backend is using, then the requested sample rate should be adjusted in
rsnd_hw_params. The userland will be notified about that change in the
returned hw_params structure.

Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com>
Link: https://lore.kernel.org/r/1615870055-13954-1-git-send-email-mikhail_durnev@mentor.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-03-16 13:29:37 +00:00
..
adg.c ASoC: rsnd: cleanup ppcheck warning for adg.c 2021-03-10 13:07:13 +00:00
cmd.c ASoC: rsnd: cleanup ppcheck warning for cmd.c 2021-03-10 13:07:12 +00:00
core.c ASoC: rsnd: core: Check convert rate in rsnd_hw_params 2021-03-16 13:29:37 +00:00
ctu.c ASoC: sh: rcar: ctu: add missing error check 2021-03-10 13:07:02 +00:00
dma.c Merge branch 'for-5.4' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-5.5 2019-11-06 16:29:34 +00:00
dvc.c Merge branch 'for-4.20' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-4.21 intel dep 2018-12-13 14:36:46 +00:00
gen.c SoC: rsnd: add interrupt support for SSI BUSIF buffer 2020-05-12 10:56:21 +01:00
Makefile ASoC: rsnd: convert to SPDX identifiers 2018-06-18 12:16:46 +01:00
mix.c ASoC: rsnd: move .get_status under rsnd_mod_ops 2018-11-05 11:27:29 +00:00
rsnd.h ASoC: sh: rcar: align function prototypes 2021-03-10 13:07:00 +00:00
src.c ASoC: rsnd: src: fix compiler warnings 2019-03-11 16:59:04 +00:00
ssi.c Merge series "ASoC: rsnd: cleanup ppcheck warning for Renesas sound driver" from Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>: 2021-03-10 13:08:35 +00:00
ssiu.c ASoC: rsnd: cleanup ppcheck warning for ssiu.c 2021-03-10 13:07:09 +00:00