Re: [PATCH] Remove CLOCK_TICK_RATE dependency from PAS16 driver

From: Takashi Iwai
Date: Thu Aug 04 2011 - 10:01:54 EST


At Wed, 3 Aug 2011 17:04:01 -0700,
Deepak Saxena wrote:
>
> 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@xxxxxxxxxx>

Thanks, applied.


Takashi

> ---
> sound/oss/pas2_pcm.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/sound/oss/pas2_pcm.c b/sound/oss/pas2_pcm.c
> index 8f7d175..6f13ab4 100644
> --- a/sound/oss/pas2_pcm.c
> +++ b/sound/oss/pas2_pcm.c
> @@ -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;
> --
> 1.7.4.1
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/