From: Takashi Iwai Subject: Re: [PATCH 2/3] ALSA - hda: Add support for link audio time reporting Date: Fri, 15 Jul 2016 07:56:51 +0200 Message-ID: References: <1468232009-14130-3-git-send-email-vinod.koul@intel.com> <201607111916.R5HdrB76%fengguang.wu@intel.com> <20160715043721.GL9681@localhost> <20160715051906.GM9681@localhost> <20160715053910.GN9681@localhost> <20160715055024.GO9681@localhost> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 194C6265873 for ; Fri, 15 Jul 2016 07:56:52 +0200 (CEST) In-Reply-To: <20160715055024.GO9681@localhost> 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: Vinod Koul Cc: alsa-devel@alsa-project.org, patches.audio@intel.com, Hardik T Shah , Guneshwor Singh , liam.r.girdwood@linux.intel.com, broonie@kernel.org, kbuild-all@01.org List-Id: alsa-devel@alsa-project.org On Fri, 15 Jul 2016 07:50:25 +0200, Vinod Koul wrote: > > On Fri, Jul 15, 2016 at 07:39:17AM +0200, Takashi Iwai wrote: > > > > > > So dependency is around convert_art_to_tsc() which is x86 API. > > > > How is defined in the spec? I wonder it because HD-audio spec itself > > is usually CPU-neutral. > > You are right. HDA spec is not x86 specfic. HDA counter report the value > of ART counter for a time snapshot. > > The problem is we do not get TSC value from HDA controller :( > > So we need to use asm code for conversion.. OK, then let's cover the relevant code with ifdef CONFIG_X86 as a temporary workaround until we get a more universal solution. Takashi