]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - sound/oss/pas2_pcm.c
sound: oss/pas2: Remove CLOCK_TICK_RATE dependency from PAS16 driver
[linux-2.6.git] / sound / oss / pas2_pcm.c
index 4af6aafa3d862304d85ab611d16ad71a032c593e..6f13ab4afc6bcf60537adb93936af23ff107db51 100644 (file)
@@ -17,7 +17,7 @@
 
 #include <linux/init.h>
 #include <linux/spinlock.h>
-#include <asm/timex.h>
+#include <linux/timex.h>
 #include "sound_config.h"
 
 #include "pas2.h"
@@ -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;
@@ -85,7 +85,7 @@ static int pcm_set_speed(int arg)
         * come from the SDK found on ftp.uwp.edu:/pub/msdos/proaudio/.
         *
         * I cleared bit 5 of these values, since that bit controls the master
-        * mute flag. (Olav Wölfelschneider)
+        * mute flag. (Olav Wölfelschneider)
         *
         */
 #if !defined NO_AUTO_FILTER_SET