lkml.org 
[lkml]   [2011]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Remove CLOCK_TICK_RATE dependency from PAS16 driver
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@linaro.org>

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
>


\
 
 \ /
  Last update: 2011-08-04 16:05    [W:0.070 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site