Browse Source

Merge remote-tracking branch 'asoc/fix/rcar' into asoc-linus

Mark Brown 9 years ago
parent
commit
d520519518
1 changed files with 5 additions and 1 deletions
  1. 5 1
      sound/soc/sh/rcar/src.c

+ 5 - 1
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;
 	}
 
 	/*