Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp770873ybe; Mon, 2 Sep 2019 08:54:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyp+1d1tWgT8nQHV8vbY3Nl+NvMH0i7VYe5WwJqqNY6MZlXUFuOmrMrS6m8A5V6BUHInpMd X-Received: by 2002:a17:902:e584:: with SMTP id cl4mr29666910plb.160.1567439689606; Mon, 02 Sep 2019 08:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567439689; cv=none; d=google.com; s=arc-20160816; b=UUyQRVABLwHk80sDjuDxwxqRNJdM5VQgvJIIr4sLonc1rpcwfShklRYwCIshpZWc72 tLDEKVsDJ0P/PijRgwBoHxIPSs8dHbU4WjTJh9CAQy5h7NDYSxS0LDCz7wtGd5GV+Bni EUc8ewkht2Fa/El2DKR5QtSebqhXmUDfEW6JWib3NCfBVPo0YiytQTh67DkSwa4mQCfu fDglSR9/5Tn70YkHRAu7CBKR2RV37MbBm3EbP4FeoC41nBLlQk7Yt7nvvaTK+I/WZUdS X9SdN6h7xmqOHDNzHXFj6KBCBbEJGTQLua79ppHaAK0ls3DHa+NCqNz3nZQ9ogKWwFIs JJFA== 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=4snlMMv36cskyMNKU3ymZ+DNhz9Szex5LZ1cJjgF/oE=; b=yVpadf1DUYyyF8Z8ddoA/AzdwoR9vOqbnmE1lhjGCvdlzfTMlOkSIsBCx/7Ja6YRQB 0n00IsRdLqikRpegFs/7KhVBcyh5MVoX9dbZD1SLQs8sm85LcNYitCyWglmQ7oUiZ3th JJrD1gOD2q4Xa7HV0t+JhxJyCURFf/XCqrcpAf5hDJSmM8khSL3iImv9ewjXBwx/AzKz KTPBv9iX3pdK42XTPvIR5qspOdENdudxBqWEOBn9cJDcrIj7z23jhlrv5CFZrmpmArkA kI2Sf6Cjtcdo+Ect9wBIJfABIDFoTuEhh3xcoC415A+jz+vWkS4xvYKkFMxAhNT9z55s 8B7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=vMgNoxLs; 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 w26si14243526pfn.94.2019.09.02.08.54.31; Mon, 02 Sep 2019 08:54:49 -0700 (PDT) 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=vMgNoxLs; 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 S1726027AbfIBPwZ (ORCPT + 99 others); Mon, 2 Sep 2019 11:52:25 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:60460 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725806AbfIBPwZ (ORCPT ); Mon, 2 Sep 2019 11:52:25 -0400 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=4snlMMv36cskyMNKU3ymZ+DNhz9Szex5LZ1cJjgF/oE=; b=vMgNoxLsQ2OdwDMfQal76QX6q yFK8aDuSJNaBrC6c2rEAbXdWCOi4TiUGgyAy3uzXB2xrYp3gARtzG756t6DiVArWe2VVJeV0txXl8 eSJbnWT0V/ynRwnySl2YCGJybMQrC96D26jDk0tuo0VFpysWShVi8Fj8D5DVaLjkSPabQ=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i4oct-0003fI-E6; Mon, 02 Sep 2019 15:52:19 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 852E02742CCB; Mon, 2 Sep 2019 16:52:18 +0100 (BST) Date: Mon, 2 Sep 2019 16:52:18 +0100 From: Mark Brown To: Daniel Baluta Cc: Daniel Baluta , Fabio Estevam , Nicolin Chen , Xiubo Li , "S.j. Wang" , Linux-ALSA , Linux Kernel Mailing List , Timur Tabi , Cosmin-Gabriel Samoila , NXP Linux Team , Cosmin-Gabriel Samoila Subject: Re: [PATCH] ASoC: fsl_sai: Set SAI Channel Mode to Output Mode Message-ID: <20190902155218.GC5819@sirena.co.uk> References: <20190830225514.5283-1-daniel.baluta@nxp.com> <20190902123944.GB5819@sirena.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ABTtc+pdwF7KHXCz" Content-Disposition: inline In-Reply-To: X-Cookie: Lost ticket pays maximum rate. 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 --ABTtc+pdwF7KHXCz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Sep 02, 2019 at 04:35:56PM +0300, Daniel Baluta wrote: > On Mon, Sep 2, 2019 at 3:42 PM Mark Brown wrote: > > This patch seems to do this unconditionally. This is fine for > > configurations where the SoC is the only thing driving the bus but will > > mean that for TDM configurations where something else also drives some > > of the slots we'll end up with both devices driving simultaneously. The > > safest thing would be to set this only if TDM isn't configured. > I thought that the SAI IP is the single owner of the audio data lines, > so even in TDM > mode SAI IP (which is inside SoC) is the only one adding data on the bus. > Now, you say that there could be two devices driving some of he masked > slots right? Doing that is the major point of TDM modes. It could even be another SAI on the same bus. > I'm not sure how to really figure out that SAI is running in TDM mode. As a first approximation you could just check if set_tdm_slots() has been called, it might still be the only device but it's a good first guess. --ABTtc+pdwF7KHXCz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl1tOrEACgkQJNaLcl1U h9DwBwf+JVnQJkaiQDq4QeWXVRXWkHGSybe5ZQnqojYXRZ71ee4yODWtXbxwki74 prPVLxMWCoCRvuoxUB4fQFbKN9qCkz0uZ/uthmNqsjueAVWYsAE+3YIA5cw6Kc/c KFa1n4mptpdnmRwLg79ZKuX8GiudgJon/bR5fdveOdB2oeqmx4ooAD/TXsvmx7D6 qn9AAyYbadyk/6WAVGhmBj+N7lN1R6kdW35i8kVtrMvlOnsmFOYLVXjQnKZCQT9w zHYp3kQWX2QxderqG4qqQNLc03R1qYBLWv784lj91hyXuaXGovxg84tzYzqgVb2c nIPwaFdNgrNWTHCQ4ijb7pXXcuieQw== =gUoA -----END PGP SIGNATURE----- --ABTtc+pdwF7KHXCz--