summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2016-08-24 20:05:21 +0200
committerMark Brown <broonie@kernel.org>2016-08-24 20:05:21 +0200
commitd520519518de1423c1a7b7df1a008e58e33de9f8 (patch)
treed64b676855d4167318ba3e6b29c7f8a7f6c7a3ef /sound
parentMerge remote-tracking branch 'asoc/fix/intel' into asoc-linus (diff)
parentASoC: rsnd: Fixup SRCm_IFSVR calculate method (diff)
downloadlinux-d520519518de1423c1a7b7df1a008e58e33de9f8.tar.xz
linux-d520519518de1423c1a7b7df1a008e58e33de9f8.zip
Merge remote-tracking branch 'asoc/fix/rcar' into asoc-linus
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/sh/rcar/src.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c
index e39f916d0f2f..969a5169de25 100644
--- a/sound/soc/sh/rcar/src.c
+++ b/sound/soc/sh/rcar/src.c
@@ -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;
}
/*