Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342590
b: refs/heads/master
c: 379170a
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Takashi Iwai committed Nov 18, 2012
1 parent 1a37c1c commit 6ad7472
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 190006f9d6594ee9ef4775ec09edda7df76fc8f1
refs/heads/master: 379170a42c84cee5f95fac536a4b5b76843baf90
3 changes: 2 additions & 1 deletion trunk/sound/oss/sb_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ static int sb201_audio_set_speed(int dev, int speed)
{
sb_devc *devc = audio_devs[dev]->devc;
int tmp;
int s = speed * devc->channels;
int s;

if (speed > 0)
{
Expand All @@ -452,6 +452,7 @@ static int sb201_audio_set_speed(int dev, int speed)
speed = 44100;
if (devc->opened & OPEN_READ && speed > 15000)
speed = 15000;
s = speed * devc->channels;
devc->tconst = (256 - ((1000000 + s / 2) / s)) & 0xff;
tmp = 256 - devc->tconst;
speed = ((1000000 + tmp / 2) / tmp) / devc->channels;
Expand Down

0 comments on commit 6ad7472

Please sign in to comment.