patch-2.3.38 linux/drivers/sound/sb_audio.c
Next file: linux/drivers/sound/sb_card.c
Previous file: linux/drivers/sound/nm256_audio.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Jan 6 15:01:56 2000
- Orig file:
v2.3.37/linux/drivers/sound/sb_audio.c
- Orig date:
Mon Oct 4 15:49:30 1999
diff -u --recursive --new-file v2.3.37/linux/drivers/sound/sb_audio.c linux/drivers/sound/sb_audio.c
@@ -460,7 +460,7 @@
speed = 44100;
if (devc->opened & OPEN_READ && speed > 15000)
speed = 15000;
- devc->tconst = ((65536 - ((256000000 + s / 2) / s)) >> 8) & 0xff;
+ devc->tconst = (256 - ((1000000 + s / 2) / s)) & 0xff;
tmp = 256 - devc->tconst;
speed = ((1000000 + tmp / 2) / tmp) / devc->channels;
@@ -591,7 +591,7 @@
if (speed > 44100)
speed = 44100;
- devc->tconst = ((65536 - ((256000000 + s / 2) / s)) >> 8) & 0xff;
+ devc->tconst = (256 - ((1000000 + s / 2) / s)) & 0xff;
tmp = 256 - devc->tconst;
speed = ((1000000 + tmp / 2) / tmp) / devc->channels;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)