ASoC: rsnd: Fixup SRCm_IFSVR calculate method
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): redmine.journal-761890.20160725005929.c30ee56718186304@dm.renesas.com
PATCH 1/1 ASoC: rsnd: Fixup SRCm_IFSVR calculate method
From: Hiroyuki Yokoyama <[email protected]>
This patch fixes the calculation accuracy degradation of SRCm_IFSVR register value.
--- sound/soc/sh/rcar/src.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
sound/soc/sh/rcar/src.c +5 -1
@@ -226,8 +226,12 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io, ifscr =0 ; fsrate =0 ;if (fin != fout) { +u64 n; + ifscr =1 ; - fsrate =0x0400000 / fout * fin; + n = (u64 )0x0400000 * fin; +do_div (n, fout); + fsrate = n; }/*
Signature · 1 line
1.9.1
Mark Brown
maintainerApplied "ASoC: rsnd: Fixup SRCm_IFSVR calculate method" to the asoc tree
The patch
ASoC: rsnd: Fixup SRCm_IFSVR calculate method
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
24e06559a8f52889b3dd581d2ddd572421a73ae0Mon Sep 17 00:00:00 2001
From: Hiroyuki Yokoyama <[email protected]>
Date: Mon, 25 Jul 2016 01:52:43 +0000
Subject: [PATCH] ASoC: rsnd: Fixup SRCm_IFSVR calculate method
This patch fixes the calculation accuracy degradation of SRCm_IFSVR register value.
--- sound/soc/sh/rcar/src.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
sound/soc/sh/rcar/src.c +5 -1
@@ -226,8 +226,12 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io, ifscr =0 ; fsrate =0 ;if (fin != fout) { +u64 n; + ifscr =1 ; - fsrate =0x0400000 / fout * fin; + n = (u64 )0x0400000 * fin; +do_div (n, fout); + fsrate = n; }/*
Signature · 1 line
2.8.1