Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp743255ybe; Mon, 2 Sep 2019 08:28:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdV0DwbrgyUmsUjo4+K+lSfPuspM143megJWTfKrZ7APoHsO7iY/7dDaoAhaV0FNXMAmQB X-Received: by 2002:a17:902:2be7:: with SMTP id l94mr25827893plb.55.1567438101046; Mon, 02 Sep 2019 08:28:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567438101; cv=none; d=google.com; s=arc-20160816; b=xVADGT+0BhpKMQSFGX3Xoctc7LgrXHj2cO9ydpozQoS3OdayOcLSQpN5bGEL0d5epS Spo512UK/OkAsP6U2eVBGLe+LFBGjy9t8EcBdBDE/QVhsvaBWNRpatxRSZbN80qoNd8u VRyP13lEL05cBmgXIhTgvUN8wPEgT+g0H2FBMY8PVY0ueFwaHudhV4FDVUegBBMPd6pk B4dIt3s5jWk7atsa0ns3nWx8Co+K4bbqumNOlpTFSFxpZMvPJ9QwRhPhDskVJRw00oCp ektU9WA2ipz76I09fS4J9iA1XIVGqmQsc7TSZscfoNPPJFwGyLGB4pb72zJZFt9a5Lsv V1Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=lgluUPyzTE3k7AyBs9nIV6ho5+oXFx0a+s2dE+u1Fk8=; b=gyAtp+wlo8eSFvS9WWqngel5oRFoifZMdhlpdhJp4MUH2HZxvNbZebwJDBMjTfqU+y trj5mX5lFg6fDlafSopAF9TupMMnZepqnZSSvGk0/ksUPwCjLzuYNCfjdx5BozgK/aaI INzb+6evbICDFf2+b7Jl86lisDF3MEB4uwMnChK8g/+laM7ItOYgqYRD1mb4LOkmtS81 LE7jzQxvvv1beWmzDWdAq0yI9mcm0WIplc/Pj1fVWX6oRAWw/Bdbmxm5423eXSjHBkVt Y0HjLSJMHn8Sa3MfCPdtpA/1gENn+5pRNWiyzQnPt7HMffoXjEUh61JAMiIVPCh7uxAp uvpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UlCl3abu; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2si12041217pjk.86.2019.09.02.08.28.05; Mon, 02 Sep 2019 08:28:21 -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=pass header.i=@gmail.com header.s=20161025 header.b=UlCl3abu; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730745AbfIBNgK (ORCPT + 99 others); Mon, 2 Sep 2019 09:36:10 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37052 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730626AbfIBNgJ (ORCPT ); Mon, 2 Sep 2019 09:36:09 -0400 Received: by mail-wm1-f68.google.com with SMTP id d16so14644283wme.2 for ; Mon, 02 Sep 2019 06:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lgluUPyzTE3k7AyBs9nIV6ho5+oXFx0a+s2dE+u1Fk8=; b=UlCl3abuuJFpLnHk0GD3eI2rM9n0Azzsrf1m9RwHiYwS5Exwkvc49cN6lZTg4HtDf7 te3wGTJ/Q7Wy8QRj0FtydbX8PZLAfGrl8vo+++PDn7mkgS4TL0jgQ8+bXY/N6sFSQR3M x0K8Ptix0M+imYJ3mhqS5fJkHGT7j2yIVNZAkfhf0gYNF27aoG1kW2R+jzzT9GQG+BTU /vd3Ju6jWcKst2NaTlSZuIDgXKK13QwQqMJNF8Isx+KN9LAtfuCbQfAPBoEmmM5r8hsX uKBnW3Nmo8MVLpnhW97mSpcRSvhQ1UBMILml1T2Gdw/Kt2s825Bz4yoJXO3Nff6npHJR lCcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lgluUPyzTE3k7AyBs9nIV6ho5+oXFx0a+s2dE+u1Fk8=; b=g2KyAZ3APG6b0wLJPO30VoJSO0+zffjLXD6jmxFJsRh/RPffakWijfnoFn/JsUJqUn +PN8AdOtF7EDkrqfZxZIviP4i3zy53pM9nKjgIYqpuCi9ueRcuJeaCxJ+Kwms4yBStpc scABO6Ly4BdRLrxDVYGiRehYi5B80qBPNJfCRgBsGDZa0cE9dWp0dve/Vr3LrQaC+xsT cdCkWkI96iXud+6jjW1vNclVeQkNSGpnbSaxcr6E2J72A6TDppe3QAMys3hZg0nZU1Ur CswEQ+PtdGuyVpXgTo0QAAWEkY4jCtF4aRldnwV069rYQ6NTFYbIcvInHehyNi1Wz1w5 JE7w== X-Gm-Message-State: APjAAAVe7gcguAi19VeVTK9bPHb6xW+cAqjoqFCi192A3Pca7vYkJuRf k9Ls8MCMnRbxj5Du1psps7EUx5wAxoQeJw4r6TOcDX3h X-Received: by 2002:a7b:cc94:: with SMTP id p20mr9324398wma.171.1567431367725; Mon, 02 Sep 2019 06:36:07 -0700 (PDT) MIME-Version: 1.0 References: <20190830225514.5283-1-daniel.baluta@nxp.com> <20190902123944.GB5819@sirena.co.uk> In-Reply-To: <20190902123944.GB5819@sirena.co.uk> From: Daniel Baluta Date: Mon, 2 Sep 2019 16:35:56 +0300 Message-ID: Subject: Re: [PATCH] ASoC: fsl_sai: Set SAI Channel Mode to Output Mode To: Mark Brown 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 2, 2019 at 3:42 PM Mark Brown wrote: > > On Sat, Aug 31, 2019 at 01:55:14AM +0300, Daniel Baluta wrote: > > > Fix this by setting CHMOD to Output Mode so that pins will output zero > > when slots are masked or channels are disabled. > > 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? I'm not sure how to really figure out that SAI is running in TDM mode. RM says: When enabled, the SAI continuously transmits and/or receives frames of data. Each frame consists of a fixed number of words and each word consists of a fixed number of bits. Within each frame, any given word can be masked causing the receiver to ignore that word and the transmitter to tri-state for the duration of that word. Will try to ask IP designer about this, thanks a lot for your comment! Daniel.