sound: oss/pas2: Remove CLOCK_TICK_RATE dependency from PAS16 driver

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>
This commit is contained in:
Deepak Saxena 2011-08-03 17:04:01 -07:00 коммит произвёл Takashi Iwai
Родитель c3540b81ee
Коммит 2921623f71
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -63,13 +63,13 @@ static int pcm_set_speed(int arg)
if (pcm_channels & 2) if (pcm_channels & 2)
{ {
foo = ((CLOCK_TICK_RATE / 2) + (arg / 2)) / arg; foo = ((PIT_TICK_RATE / 2) + (arg / 2)) / arg;
arg = ((CLOCK_TICK_RATE / 2) + (foo / 2)) / foo; arg = ((PIT_TICK_RATE / 2) + (foo / 2)) / foo;
} }
else else
{ {
foo = (CLOCK_TICK_RATE + (arg / 2)) / arg; foo = (PIT_TICK_RATE + (arg / 2)) / arg;
arg = (CLOCK_TICK_RATE + (foo / 2)) / foo; arg = (PIT_TICK_RATE + (foo / 2)) / foo;
} }
pcm_speed = arg; pcm_speed = arg;