From: Takashi Iwai Subject: Re: [PATCH v5 03/10] ALSA: hda: read trigger_timestamp immediately after starting DMA Date: Mon, 09 Feb 2015 16:06:09 +0100 Message-ID: References: <1423259759-4100-1-git-send-email-pierre-louis.bossart@linux.intel.com> <1423259759-4100-4-git-send-email-pierre-louis.bossart@linux.intel.com> 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 (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id EAEA226048D for ; Mon, 9 Feb 2015 16:06:09 +0100 (CET) In-Reply-To: <1423259759-4100-4-git-send-email-pierre-louis.bossart@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 List-Id: alsa-devel@alsa-project.org At Fri, 6 Feb 2015 15:55:52 -0600, Pierre-Louis Bossart wrote: > > Make sure wallclock counter and trigger timestamp are read very > close to each other for better alignment. > > Signed-off-by: Pierre-Louis Bossart Applied, thanks. Takashi > --- > sound/pci/hda/hda_controller.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c > index 0cfc9c8..234208a 100644 > --- a/sound/pci/hda/hda_controller.c > +++ b/sound/pci/hda/hda_controller.c > @@ -657,6 +657,9 @@ static int azx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) > azx_writel(chip, SSYNC, azx_readl(chip, SSYNC) & ~sbits); > if (start) { > azx_timecounter_init(substream, 0, 0); > + snd_pcm_gettime(substream->runtime, &substream->runtime->trigger_tstamp); > + substream->runtime->trigger_tstamp_latched = true; > + > if (nsync > 1) { > cycle_t cycle_last; > > -- > 1.9.1 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >