mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: dsaxena@plexity.net
To: Jaroslav Kysela <perex@perex.cz>,
	linux-kernel@vger.kernel.org, patches@linaro.org
Subject: Re: [PATCH] Remove CLOCK_TICK_RATE dependency from PAS16 driver
Date: Thu, 04 Aug 2011 16:01:46 +0200	[thread overview]
Message-ID: <s5h62mdl1h1.wl%tiwai@suse.de> (raw)
In-Reply-To: <20110804000401.GB23503@plexity.net>

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
> 

      reply	other threads:[~2011-08-04 14:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-04  0:04 Deepak Saxena
2011-08-04 14:01 ` Takashi Iwai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5h62mdl1h1.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=dsaxena@plexity.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®