projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[cascardo/linux.git]
/
sound
/
oss
/
sb_audio.c
diff --git
a/sound/oss/sb_audio.c
b/sound/oss/sb_audio.c
index
733b014
..
b2b3c01
100644
(file)
--- a/
sound/oss/sb_audio.c
+++ b/
sound/oss/sb_audio.c
@@
-575,13
+575,15
@@
static int jazz16_audio_set_speed(int dev, int speed)
if (speed > 0)
{
int tmp;
- int s
= speed * devc->channels
;
+ int s;
if (speed < 5000)
speed = 5000;
if (speed > 44100)
speed = 44100;
+ s = speed * devc->channels;
+
devc->tconst = (256 - ((1000000 + s / 2) / s)) & 0xff;
tmp = 256 - devc->tconst;