From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751951Ab1HDOBv (ORCPT ); Thu, 4 Aug 2011 10:01:51 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49689 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750862Ab1HDOBr (ORCPT ); Thu, 4 Aug 2011 10:01:47 -0400 Date: Thu, 04 Aug 2011 16:01:46 +0200 Message-ID: From: Takashi Iwai To: dsaxena@plexity.net To: Jaroslav Kysela , linux-kernel@vger.kernel.org, patches@linaro.org Subject: Re: [PATCH] Remove CLOCK_TICK_RATE dependency from PAS16 driver In-Reply-To: <20110804000401.GB23503@plexity.net> References: <20110804000401.GB23503@plexity.net> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 >