sound: oss/pas2: Remove CLOCK_TICK_RATE dependency from PAS16 driver
authorDeepak Saxena <dsaxena@linaro.org>
Thu, 4 Aug 2011 00:04:01 +0000 (17:04 -0700)
committerTakashi Iwai <tiwai@suse.de>
Thu, 4 Aug 2011 13:23:32 +0000 (15:23 +0200)
Update the PAS16 driver to use PIT_TICK_RATE instead
of the more generic CLOCK_TICK_RATE as the two are
equivalent on X86 and we want to depecrate the later.

Signed-off-by: Deepak Saxena <dsaxena@linaro.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/oss/pas2_pcm.c

index 8f7d175767a21e75b5167bf7eb117295bef3d250..6f13ab4afc6bcf60537adb93936af23ff107db51 100644 (file)
@@ -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;