diff --git a/[refs] b/[refs] index 741ae558d35d..5422f21a2c16 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5e68fb3cab23b327e9f15803607e697d7eea1966 +refs/heads/master: 94f3ec6b2222eb5c0af0c784f0656ff5b909d870 diff --git a/trunk/sound/oss/sb_audio.c b/trunk/sound/oss/sb_audio.c index 733b014ec7d1..b2b3c014221a 100644 --- a/trunk/sound/oss/sb_audio.c +++ b/trunk/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;