Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751391AbeABSVx (ORCPT + 1 other); Tue, 2 Jan 2018 13:21:53 -0500 Received: from mail-pl0-f48.google.com ([209.85.160.48]:43500 "EHLO mail-pl0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751029AbeABSVt (ORCPT ); Tue, 2 Jan 2018 13:21:49 -0500 X-Google-Smtp-Source: ACJfBovDR0/ex/XmsWroVtFmkHon3RtwQxsUsBMdJWFZrAgC8h+YUCbCq/4OXSxfBMEZ8zpMZlFkGg== Date: Tue, 2 Jan 2018 10:21:46 -0800 From: Richard Cochran To: Pierre-Louis Bossart Cc: Sagar Arun Kamble , Takashi Iwai , Vinod Koul , alsa-devel@alsa-project.org, Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [alsa-devel] [PATCH 15/27] ALSA: hda - Use timecounter_initialize interface 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-Disposition: inline In-Reply-To: <3c5734a2-8f97-4a8b-26d4-42852cc86352@linux.intel.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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