]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: rsnd: adjust convert rate limitation
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 5 Feb 2025 00:20:48 +0000 (00:20 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 5 Feb 2025 12:28:14 +0000 (12:28 +0000)
commit89f9cf185885d4358aa92b48e51d0f09b71775aa
tree4db3c817c3ec68eebc88f7b798fff5fa9689fce8
parentc3fc002b206c6c83d1e3702b979733002ba6fb2c
ASoC: rsnd: adjust convert rate limitation

Current rsnd driver supports Synchronous SRC Mode, but HW allow to update
rate only within 1% from current rate. Adjust to it.

Becially, this feature is used to fine-tune subtle difference that occur
during sampling rate conversion in SRC. So, it should be called within 1%
margin of rate difference.

If there was difference over 1%, it will apply with 1% increments by using
loop without indicating error message.

Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://patch.msgid.link/871pwd2qe8.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/renesas/rcar/src.c