From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Cochran Subject: Re: [PATCH 15/27] ALSA: hda - Use timecounter_initialize interface Date: Tue, 2 Jan 2018 10:21:46 -0800 Message-ID: <20180102182146.vbfnihz73lhgf6lc@localhost> References: <1513323522-15021-1-git-send-email-sagar.a.kamble@intel.com> <1513323522-15021-16-git-send-email-sagar.a.kamble@intel.com> <20171215165125.avkz25eek56i5md4@localhost> <20171228164944.crphv46zegvwautk@localhost> <1a9a1507-7ca3-459b-c2ce-02fc2afad2ff@intel.com> <3c5734a2-8f97-4a8b-26d4-42852cc86352@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pl0-f51.google.com (mail-pl0-f51.google.com [209.85.160.51]) by alsa0.perex.cz (Postfix) with ESMTP id 961A82674CE for ; Tue, 2 Jan 2018 19:21:50 +0100 (CET) Received: by mail-pl0-f51.google.com with SMTP id n13so29131558plp.11 for ; Tue, 02 Jan 2018 10:21:50 -0800 (PST) Content-Disposition: inline In-Reply-To: <3c5734a2-8f97-4a8b-26d4-42852cc86352@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org, Takashi Iwai , linux-kernel@vger.kernel.org, Vinod Koul , Thomas Gleixner , Sagar Arun Kamble List-Id: alsa-devel@alsa-project.org On Tue, Jan 02, 2018 at 11:15:45AM -0600, Pierre-Louis Bossart wrote: > I wrote the code for HDaudio and I remember wasting time trying to figure > out the gory details of the cycle counter stuff when all I wanted was a > conversion from a 24MHz counter to ns values using a 125/3 operation in the > right order - as explained in the comments Would using clocks_calc_mult_shift() work for you? Thanks, Richard