diff options
author | Mark Brown <broonie@kernel.org> | 2016-08-24 20:05:21 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-08-24 20:05:21 +0200 |
commit | d520519518de1423c1a7b7df1a008e58e33de9f8 (patch) | |
tree | d64b676855d4167318ba3e6b29c7f8a7f6c7a3ef /sound | |
parent | Merge remote-tracking branch 'asoc/fix/intel' into asoc-linus (diff) | |
parent | ASoC: rsnd: Fixup SRCm_IFSVR calculate method (diff) | |
download | linux-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.c | 6 |
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; } /* |