Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262670
b: refs/heads/master
c: 2921623
h: refs/heads/master
v: v3
  • Loading branch information
Deepak Saxena authored and Takashi Iwai committed Aug 4, 2011
1 parent a382921 commit 45395d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: c3540b81ee707bc8a7a83e850adf5feb3b84c04d
refs/heads/master: 2921623f71c0a7f8ab979a8903cccd7a374436e7
8 changes: 4 additions & 4 deletions trunk/sound/oss/pas2_pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ static int pcm_set_speed(int arg)

if (pcm_channels & 2)
{
foo = ((CLOCK_TICK_RATE / 2) + (arg / 2)) / arg;
arg = ((CLOCK_TICK_RATE / 2) + (foo / 2)) / foo;
foo = ((PIT_TICK_RATE / 2) + (arg / 2)) / arg;
arg = ((PIT_TICK_RATE / 2) + (foo / 2)) / foo;
}
else
{
foo = (CLOCK_TICK_RATE + (arg / 2)) / arg;
arg = (CLOCK_TICK_RATE + (foo / 2)) / foo;
foo = (PIT_TICK_RATE + (arg / 2)) / arg;
arg = (PIT_TICK_RATE + (foo / 2)) / foo;
}

pcm_speed = arg;
Expand Down

0 comments on commit 45395d6

Please sign in to comment.