patch-2.1.41 linux/drivers/sound/pas2_pcm.c

Next file: linux/drivers/sound/pnp.c
Previous file: linux/drivers/sound/pas2_midi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.40/linux/drivers/sound/pas2_pcm.c linux/drivers/sound/pas2_pcm.c
@@ -55,12 +55,12 @@
   if (pcm_channels & 2)
     {
       foo = (596590 + (arg / 2)) / arg;
-      arg = 596590 / foo;
+      arg = (596590 + (foo / 2)) / foo;
     }
   else
     {
       foo = (1193180 + (arg / 2)) / arg;
-      arg = 1193180 / foo;
+      arg = (1193180 + (foo / 2)) / foo;
     }
 
   pcm_speed = arg;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov