Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3313018pxk; Mon, 21 Sep 2020 10:20:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzAGOwm8YvGUChiQkjDgloHAo+A0NKOD0Qkv67gYP8zUf9OlujJHteZXTXecLT489skdZt X-Received: by 2002:a17:906:4a19:: with SMTP id w25mr459068eju.199.1600708809053; Mon, 21 Sep 2020 10:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600708809; cv=none; d=google.com; s=arc-20160816; b=n4ZKckixNHXem3gWcwjbByKLBR6viMJYKEFw8l/dQRPjVB+WwNZQBctY36AvGX2GEc UyxrExalehbBQ2AaEamplYQa/aDmOAV5WK2QvjsIyYF0OpVEcRO/WkeSbmv9HBozcyjp 8097vLPh6B5RydtpU7FvfuLbPmTEa8GN/7MOu7TuUR9+dNPksFLoX5M1Z3s+8jGR2TLf wJtjP/AmsKx+SfD3SuveLk/f6/YITfBdvTeOq9db7TXECAfxuGinPf1MaSf71N5upvdY mFx28aWeEMr1rhwOJLzYCPDJc7QU4Z2LMMMc+Gfkjx5Z7P4++vdQVCxrTMukUzo/n7h9 vVQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=OfjpKCjgpFcyIPadh1UeQQlqIJ/XQ8FTUIY77xhbs1M=; b=PXamhNjmaWbWMWJXX/JKSHaVmpO7Q2PTS6QDTwI91+hNqts7qY9oclsxjG8mQLvnrx oSbdkPkClKGYKIfc1E+usGb+sf7K2l2ZJZqFEKhbVyIYHazDiHfU/cBq7OUhd1tocQ8j zNLBV6fqYgO96OAOYAYLboGJW6QNMW3BdJMdXFjG1FBVz8DS5tBuT8Wkl0veA2TsdvON qjB97uMIICEaXVZNa3J5fkBQdMI+KRcRcuP59NhTAECPffX9tHj0O82c9dlg30vshYwO 0gpL7ixBg6xOGT9a7n7FLms46ssqQzegRIwKz1v+EbqpQWic6Tw4pPNZxVfjosDuEY+A mwfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a1xvXmos; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id v15si8696279ede.489.2020.09.21.10.19.45; Mon, 21 Sep 2020 10:20:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a1xvXmos; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728423AbgIURP0 (ORCPT + 99 others); Mon, 21 Sep 2020 13:15:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726818AbgIURPZ (ORCPT ); Mon, 21 Sep 2020 13:15:25 -0400 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 154B0C061755; Mon, 21 Sep 2020 10:15:25 -0700 (PDT) Received: by mail-io1-xd42.google.com with SMTP id y13so16238760iow.4; Mon, 21 Sep 2020 10:15:25 -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:content-transfer-encoding; bh=OfjpKCjgpFcyIPadh1UeQQlqIJ/XQ8FTUIY77xhbs1M=; b=a1xvXmosY39aq2upt7jpTrsD4onvVX8CyT0/UwKVqUS7KlrTR0AIZii4mUTvT32hmA i/0S+WQLWmKm3JW8G8i16TOuvz/hze0R9QTcDctff7exS5RH9aTEon6Ks4J2C1XrLpIq xFqUaJfXncTM1HMMug97koDCv/+ZeV9t5l7roUlBfTvxjwg2gkiOFv0kNRzglmFEmxoN En3Z/sxR3CXjsx4MCibYjSY7G0OvMc6K/zvr4xIUxmel8A8XPK7XyJDlKGlgPX/pOj4W qo32rdACDgyvcH4JPfCUN+ic9b57C4nWB5JEB9lk0ckIlmA52RJokQdnJ+2vUXBLEiBn bWAg== 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:content-transfer-encoding; bh=OfjpKCjgpFcyIPadh1UeQQlqIJ/XQ8FTUIY77xhbs1M=; b=nKKG9V/w8KvMSOVoklmH89RcKjlDooNE7kTwLZGdWTMYLS/sp5M++OLro5tMqk3CJF xX8JuGRV+eKgcodsiDn2SP2g9G4KxOM+6ELYbprgNuT39h0IDrbKFo3KBDRQeYKAveHd PeyQoMHvpPJsY2J8eb5CvePPoGg2S6WUhBg+2MfJhMuCracyM0Y702wzB7FJVCsYgCSz BsSmFHPGOaiRYLPW1zDHEp9fJRdAxDVnTHQs0RERioK5kP/kN5CI0/6+iWZnHS6LTFQz nd1j81u3v94t5T9j1+V9PIBXtXQFocsjwUlTl1snRoRMFmMJjZyNsf8rddGTvXzc76u0 zzJA== X-Gm-Message-State: AOAM532ezlIbOHwv4TQUAcbdncvXawK4e8yR2CTrn+K5w9jM7+07N5j9 1d/wCosQs8eyP0pDpc9rPSSV+y0F/Xe9hfQ49rw= X-Received: by 2002:a02:734f:: with SMTP id a15mr907939jae.120.1600708524243; Mon, 21 Sep 2020 10:15:24 -0700 (PDT) MIME-Version: 1.0 References: <20200921102731.747736-1-peron.clem@gmail.com> <20200921102731.747736-3-peron.clem@gmail.com> <20200921122918.kzzu623wui277nwr@gilmour.lan> In-Reply-To: <20200921122918.kzzu623wui277nwr@gilmour.lan> From: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Date: Mon, 21 Sep 2020 19:15:13 +0200 Message-ID: Subject: Re: [PATCH v4 02/22] ASoC: sun4i-i2s: Change set_chan_cfg() params To: Maxime Ripard Cc: Chen-Yu Tsai , Rob Herring , Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Marcus Cooper , Jernej Skrabec , Linux-ALSA , devicetree , linux-arm-kernel , linux-kernel , linux-sunxi , Samuel Holland Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maxime, On Mon, 21 Sep 2020 at 14:29, Maxime Ripard wrote: > > On Mon, Sep 21, 2020 at 12:27:11PM +0200, Cl=C3=A9ment P=C3=A9ron wrote: > > As slots and slot_width can be overwritter in case set_tdm() is > > called. Avoid to have this logic in set_chan_cfg(). > > > > Instead pass the required values as params to set_chan_cfg(). > > It's not really clear here what the issue is, and how passing the slots > and slot_width as arguments addresses it > > > This also fix a bug when i2s->slot_width is set for TDM but not > > properly used in set_chan_cfg(). > > Which bug? Do you mean my commit log is too short or is it a real question to understa= nd ? To answer if set_tdm() is called then we set the i2s->slot_width and i2s->s= lots. But we use lrck_period =3D params_physical_width(params) instead of lrck_period =3D i2s->slot_width ? i2s->slot_width : params_physical_width(params); > > Also, Fixes tag? I think this only happens when 20/24bit is enabled so the issue has been introduced in this series. Clement > > Thanks! > Maxime