Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321913
b: refs/heads/master
c: 94f3ec6
h: refs/heads/master
i:
  321911: 7ad16eb
v: v3
  • Loading branch information
Dan Carpenter authored and Takashi Iwai committed Aug 20, 2012
1 parent f81014c commit 2b1ac05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e68fb3cab23b327e9f15803607e697d7eea1966
refs/heads/master: 94f3ec6b2222eb5c0af0c784f0656ff5b909d870
4 changes: 3 additions & 1 deletion trunk/sound/oss/sb_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2b1ac05

Please sign in to comment.