Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5253332ybl; Tue, 27 Aug 2019 01:37:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLY+DRS+XnNU6lLbzf+VPKAQmibH2OHrawtcCDFlnBFEgJMSf/mmz7KKtcH3hpUpvwdmKv X-Received: by 2002:a63:b64:: with SMTP id a36mr20622327pgl.215.1566895071455; Tue, 27 Aug 2019 01:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566895071; cv=none; d=google.com; s=arc-20160816; b=KI5u4pna5fOK+iQG93GpRIkiULDap9sNOdFMLHFB8H6P7gAWXS/T4ocQcI80iDtxiy KFMDNpfMjL2I94uxMPzzoRssFkY24CZYBqVN8kRcaICbz5odmyrU/zuTYu6g2+uQoO/R BtZboa4GkyYJixjNxKhaPvBSO1a8e2cN3Gp1HypgZrUpeNguJ3Cnl37mItV57wV2IJTd 6CG8gPMiHJB5xuQsG5eWXuc/CJR4v7CU+tF23FgRU7INThzZUXrf68yGLKRZFHNhmj3b GGwYXzwleXur4odbZR3qsgA/f+i3QNdmM3ac7uOIHAF+cvyabTFS1jYatJ1njhKrVd6/ lzYw== 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=bYGEJ93XPP3XlNiRaHwzesAlOb+UBzf8KsHsim6XvxI=; b=adFj3GwRBtKBOLbensa+7T2D+9bKZ/BuHJe7Y5b/QCg5/NeAEzS6QCmG5UrHdBiMoi yZAC+wqjwYJzvKzH9H4fUkygXxyN3bvzymR4IShs11itoWYF30ak6glUKbtZLum9Vp8N m3baChqaR3bQ2QVupt22fUiLIrttV3yEpAM7YBQISdmgCwAE60Y51CDZaIBIPs/nB3Ax 721BccCgYcpF+GTKSFuqU+K3eqSpPRo6RsGIR8glTG8MHO6nUi/ShLfeXwdXwCJm/nlj PbxABER0mpyYbbSmG91PtZ1DzqRloGarueIC8S9gSu+5R42L9NXPQhVUpS1cfTq6OJyj CKyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ct0UXygt; 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 x203si11431137pgx.545.2019.08.27.01.37.35; Tue, 27 Aug 2019 01:37:51 -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=Ct0UXygt; 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 S1729508AbfH0Igk (ORCPT + 99 others); Tue, 27 Aug 2019 04:36:40 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:35745 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729047AbfH0Igj (ORCPT ); Tue, 27 Aug 2019 04:36:39 -0400 Received: by mail-lf1-f67.google.com with SMTP id h27so8603121lfp.2 for ; Tue, 27 Aug 2019 01:36:38 -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=bYGEJ93XPP3XlNiRaHwzesAlOb+UBzf8KsHsim6XvxI=; b=Ct0UXygt1kSUuk3nnThiTMEqPxe32CYU1MxV5dvmU5LU6bCGsqWFpyukGY4y2po86m h5GqJrtoo+mT42PhpQrodQCupYzjzJwXUQQ6FyPlU2V5CK8mgqEOO/JBffmlF+dJ0yS9 H1xndqUIwIck3VB+GRR0VJrpMESLRLHoBt1j599nZtN3D1CS27J4b167bKFZ20Jo+BsK mdm6nWTfW/GiAfCOzGE9ryKCng4leRfnCynTw5tjn/21ykX+sprrBb7gOF+xMHUDdtDF 25Du/NxyikkhkPbgQe0o22mwYfxt/ZIn/7KUOwtqXwKXOAhyQ85N+Kx8MMmff5KfYu0h mDDA== 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=bYGEJ93XPP3XlNiRaHwzesAlOb+UBzf8KsHsim6XvxI=; b=j6yutrm2ziufaRLgwStYzWxEF5EXQmOFZS49cWbf+KPOlALCDY9dLxM/ekINO1y8Em aKQUe24PeRtZoTOGA3P9palR+Pq/9BzCC2Cux+s4ZB/sCfDmaeaeVsMsgHLXAQyRyMGp h60WItvztzLMx/zyIlJXADZKDiuD+fJKcRsDzj/qR0bZF6jMF6f0lyz2RZAFbR6i6IyL hFGRpZMTRiKOXJQS0K1uUayP0SkWgjn8mQSJkcWV+z4TTv6YFBldX5T/yDkiD302B5lw ifxbTs0C7ZnRiPBNyfcisnHu70vblKlffzxIO4nI7jNeXPTFilF9zpD5+9lpXTBHXiJd YEmw== X-Gm-Message-State: APjAAAWLYdDs1qk91xZj6y1eUS7ZW/J2hKUFY6P9K2GsTHuQAktZ5q6E nkdFfspDgNe/7T2nOSpu+i+NU7OIJbSSeJSdgIFZvQ== X-Received: by 2002:ac2:5297:: with SMTP id q23mr13197208lfm.78.1566894997978; Tue, 27 Aug 2019 01:36:37 -0700 (PDT) MIME-Version: 1.0 References: <20190826180734.15801-1-codekipper@gmail.com> <20190826180734.15801-4-codekipper@gmail.com> <20190827070101.tastgcqvzrgv3kc5@flea> In-Reply-To: <20190827070101.tastgcqvzrgv3kc5@flea> From: Code Kipper Date: Tue, 27 Aug 2019 10:36:26 +0200 Message-ID: Subject: Re: [PATCH v6 3/3] ASoC: sun4i-i2s: Adjust LRCLK width To: Maxime Ripard Cc: Chen-Yu Tsai , linux-sunxi , linux-arm-kernel , Liam Girdwood , Mark Brown , linux-kernel , Linux-ALSA , "Andrea Venturi (pers)" 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 Tue, 27 Aug 2019 at 09:01, Maxime Ripard wrote: > > On Mon, Aug 26, 2019 at 08:07:34PM +0200, codekipper@gmail.com wrote: > > From: Marcus Cooper > > > > Some codecs such as i2s based HDMI audio and the Pine64 DAC require > > a different amount of bit clocks per frame than what is calculated > > by the sample width. Use the values obtained by the tdm slot bindings > > to adjust the LRCLK width accordingly. > > > > Signed-off-by: Marcus Cooper > > --- > > sound/soc/sunxi/sun4i-i2s.c | 5 ++++- > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c > > index 056a299c03fb..0965a97c96e5 100644 > > --- a/sound/soc/sunxi/sun4i-i2s.c > > +++ b/sound/soc/sunxi/sun4i-i2s.c > > @@ -455,7 +455,10 @@ static int sun8i_i2s_set_chan_cfg(const struct sun4i_i2s *i2s, > > break; > > > > case SND_SOC_DAIFMT_I2S: > > - lrck_period = params_physical_width(params); > > + if (i2s->slot_width) > > + lrck_period = i2s->slot_width; > > + else > > + lrck_period = params_physical_width(params); > > break; > > That would be the case with the DSP formats too, right? Maybe....but I need a TDM test volunteer!, CK > > Maxime > > -- > Maxime Ripard, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com