diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-09-01 12:33:46 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-09-01 12:33:46 -0400 |
commit | 0cb7bf61b1e9f05027de58c80f9b46a714d24e35 (patch) | |
tree | 41fb55cf62d07b425122f9a8b96412c0d8eb99c5 /sound/soc/sh/rcar/src.c | |
parent | aa877175e7a9982233ed8f10cb4bfddd78d82741 (diff) | |
parent | 3eab887a55424fc2c27553b7bfe32330df83f7b8 (diff) |
Merge branch 'linus' into smp/hotplug
Apply upstream changes to avoid conflicts with pending patches.
Diffstat (limited to 'sound/soc/sh/rcar/src.c')
-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, | |||
226 | ifscr = 0; | 226 | ifscr = 0; |
227 | fsrate = 0; | 227 | fsrate = 0; |
228 | if (fin != fout) { | 228 | if (fin != fout) { |
229 | u64 n; | ||
230 | |||
229 | ifscr = 1; | 231 | ifscr = 1; |
230 | fsrate = 0x0400000 / fout * fin; | 232 | n = (u64)0x0400000 * fin; |
233 | do_div(n, fout); | ||
234 | fsrate = n; | ||
231 | } | 235 | } |
232 | 236 | ||
233 | /* | 237 | /* |