Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1191232imu; Wed, 9 Jan 2019 13:20:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN7903A0Kbol19NDmPnLsV9659+Fgw5tCaMmW3o/kWQbWwYo+GkM88yAHxKnS/W6hG8aLCfG X-Received: by 2002:a65:584e:: with SMTP id s14mr6911746pgr.142.1547068847262; Wed, 09 Jan 2019 13:20:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547068847; cv=none; d=google.com; s=arc-20160816; b=Ip/JAzgItEIqsoF2IGw+2WliepmFqNtwYdueAKAgZwsrxdLKEnTN88JBH805MsTqQi ohbU42J6BqscsSXlMfOrUQfaSN3CgC77XVfuUZa11+QX9JbCkyn2yfdQeyG+SgDBfKuU kLF5mH3aq8zZpZyLiNU6U3B0Va3FHbT+mDUcv61oZhNQv1M798NQNCjg3ene/xs4C+IP VYiokK6wfl3L/aYic1Eq3BbuNgTPgABsoLKdAkOXT+ug6kWEmG/+qbgySkeEjLTMLr/t f7uHWqGALmYCLQKt4WtHxlGpJfJZ9TP5gZSwzhp8IyvEKmK01Gjhtx2f1eADN7WiLBZN ttJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VMBXxHQtIn2rIyl7ckaX9SE9gtbIaHhcAOyg8NP+D8Q=; b=yogrx/STaPn34iudAE2gKt7gcRqnzqEAHplANEefgluXXssypm1U13PD3hLpb1l5ZM rNOTdPvzd6t9Xxe3Bru/r0X9xDBM5+jaPv3BfGxhpIwnSE/LmpHJxGMnE/AYPwKI4qE6 9xmUhTKXV4f9Ql/+EYdo85TJChlHtF7LO7bOacVB74scu0nILmZlJwE9QgDXHH9fW4XC uHWspSPxXdw6tl4p0x4nZcQIb7IZiHkjyu92Qek8sqPgVrpvLr+TixpHD4wZPAC4tjSm K2mTE/zKhaoobBuUP+knLH8hfmpI45zMTvd/rwBbAu0AHy/rxg8vi6WS0HnXN9nIyEYA cKbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=DM3P26aJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r39si3418172pld.434.2019.01.09.13.20.32; Wed, 09 Jan 2019 13:20:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=DM3P26aJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727868AbfAISti (ORCPT + 99 others); Wed, 9 Jan 2019 13:49:38 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:33878 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726469AbfAISti (ORCPT ); Wed, 9 Jan 2019 13:49:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VMBXxHQtIn2rIyl7ckaX9SE9gtbIaHhcAOyg8NP+D8Q=; b=DM3P26aJJVS2KzaDNza1SrCSG 7ncG4FjDkULJs/3Qmmxjfb7rP3OKkX5eUBtIWyPZT3CjgSli8u02OdsnUpJNggypYD1XLiA54TlqF asByfV3xZrT5Nh5Oyl3+mMJJLZmOaY253H3pkc2bi5ZYrs4PPw7Vggt2h3KLKXMivk/vU=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1ghIuy-0000kX-4A; Wed, 09 Jan 2019 18:49:32 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id B071B1127528; Wed, 9 Jan 2019 18:49:31 +0000 (GMT) Date: Wed, 9 Jan 2019 18:49:31 +0000 From: Mark Brown To: Chen-Yu Tsai Cc: Jonas Karlman , Code Kipper , Linux-ALSA , linux-kernel , Liam Girdwood , "Andrea Venturi (pers)" , linux-sunxi , Maxime Ripard , linux-arm-kernel Subject: Re: [alsa-devel] [PATCH v3 1/9] ASoC: sun4i-i2s: Adjust regmap settings Message-ID: <20190109184931.GK10405@sirena.org.uk> References: <20181221152110.17982-1-codekipper@gmail.com> <20181221152110.17982-2-codekipper@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AYsPlKobQGgtCvjI" Content-Disposition: inline In-Reply-To: X-Cookie: VMS version 2.0 ==> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --AYsPlKobQGgtCvjI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Dec 23, 2018 at 11:16:31AM +0800, Chen-Yu Tsai wrote: > This sounds like the flush is happening after DMA transfers and/or I2S > operations have started, disrupting the order of the audio samples. I > think that might be the case since the regcache is synced sequentially, > and the FIFO control register is after the enable bits. That would imply > that the device is taken out of runtime suspend after the .start_capture > or .start_playback callbacks. Not sure if that's the case, but that would > mean the bus clocks are still off at this point, and bypassing the cache > and updating the bits is basically moot. I would expect that the device needs to be resumed from suspend before we start actually trying to transfer audio - there is stuff in the ASoC core which is supposed to have appropriate gets but it's possible something is going wrong there. > I think there's something else happening here, but we need to figure it > out instead of papering over it with something that "just works" but > we don't know why it works. I agree. --AYsPlKobQGgtCvjI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlw2QjoACgkQJNaLcl1U h9CYkQf+LxpY1u9lPMC6ld9Jxf0JNyammIoqScIdns2JZ8ZH4M6rpKWUsUyETdVg 14bCT1yi7D5ZH9Ekcw/6yXB0FBQX0rqP2W9X7PODZTgWEVBwF6wrp9jIe5YlYsM5 47wuQFzRquRKmhaBwvuwdOM0+l2T8cRd7ZnOVmVNDJxb3oD8/0fR3LKCd8e8sQ9v vqJTljjBtGlvwwWbWLeMLkXbvlesGpc7heRgrdHFXgxf46BMpN0rZuUWZU/5XwF6 zqSDZaXBPAgm1CFJ06FQdo8VeAmXT+mD0X0tJgZKG2FxJBAKEp5Ss9+sgSCMsbVr Qo/rQCkOQYPKtuPsNLeHCFJEaBNy0g== =m/5F -----END PGP SIGNATURE----- --AYsPlKobQGgtCvjI--