Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2190769ybt; Mon, 15 Jun 2020 22:26:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfvwSPb2q+fYImZEB0zRlzSYEHhhtmMlCdHZ2N5sCaSAsMm4YOyIbHong0HaZ9LwR9oVP/ X-Received: by 2002:a17:906:3653:: with SMTP id r19mr1108131ejb.246.1592285192160; Mon, 15 Jun 2020 22:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592285192; cv=none; d=google.com; s=arc-20160816; b=QLr0GFdd+EUIrHwc+C3AMyB+fL8caOAzsnObYVYyFkwBvBfo43L5QX5+ovDQyeCSK4 9nIDMkQyjcZEC3HDrzoKXendKPixUiRX9CWhZJZbEwOCA0PbVSCHkBhA/8c5UrF22E6M CwkyAWKxOjjjvnytzfs9i9H4qYKhaRaMZ7z1F85EgJEzDQCVKIVC8DUPBqVD5cnN9rk6 yI6oTgMS6zXSvT9c49SEMV9R0glljBC0JsdqyZ9YflY25103rLPrxHNdjSBDFUcJ2em7 qz08g7XBMdoP2peRkVNlzjXiRyKfG/SzjyqMexpnZZIICouSxHc7ahq2c4JX4CK0TxXw 18ZA== 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=F8di4l+s/Ly7rCfnAJCSNumrdSsKS4ibEMc0wr155Lw=; b=UVhA0olAoi2IzdgvpS0XAX2sI4ZQ8wNa/nQ7KcpErZjE4E4Vi+0H6P+b0yTTuLNcRp +02T2ENjUYePIgA1N/7Qynnpm7UWbjO2c4PWciO+41M998T7p+xyI+XfyXCUBorM8Ff+ 3D+ZG3OxRCb0++qA8ZqYYwXvPsaZugdL+VDseBhZzWtUyjum95uchoHdZFgUu7sU8HZ/ kMZth7FAQqhysFomARw7uSQ+wLn5x4yZhueFzCvZmCZwlZYDBpO78zbyk2qrVKDeUKWD rDzBBJ9bBg3FS3yy9ElMeLIbUsBgxKt4eNvCmnoMh6oopn2K5q19WgwtBdT+VHLrzo6O goLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lM7xYNKX; 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 f6si9802490ejr.283.2020.06.15.22.26.09; Mon, 15 Jun 2020 22:26:32 -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=lM7xYNKX; 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 S1726883AbgFPFXY (ORCPT + 99 others); Tue, 16 Jun 2020 01:23:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726161AbgFPFXY (ORCPT ); Tue, 16 Jun 2020 01:23:24 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 267CBC05BD43 for ; Mon, 15 Jun 2020 22:23:24 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id v11so704390pgb.6 for ; Mon, 15 Jun 2020 22:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=F8di4l+s/Ly7rCfnAJCSNumrdSsKS4ibEMc0wr155Lw=; b=lM7xYNKXNC3/18xNrWIVK8uekEsB6xz+aF3OvLQ+WQIAjqOxxrV8QNtErcVGyjuFYg g2ekGJtibX1TQHLUZjVom/gQ9oi3PiHmEHLFjd3KY7POCjycjtV/31bAAc+1sdmzT3wg Cx1zS4qoeLjGbtlpMuEJw+mtrkfV25ndvHW68jWZDEuri/PNWiNlS1GwyOUVSu8H+RDY UYtFd2wci0vd0yvpivgutSmG5c70wvCz7AH+y5R5KA6+n/DKwUZ0Qc5blx5dy8Gq7ljM 9LF9mi16mdnjqFoTQpRlgZXl+AHQOlwBrEXSMqWB0bmXsUN14uYuObilLRMZRY638bir nDGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=F8di4l+s/Ly7rCfnAJCSNumrdSsKS4ibEMc0wr155Lw=; b=iDN9Se+Gi5NFhaL0rjQDCiX815fzVBc3mAhqn3MBrvSCXve7juVm2hDxdgjWRskn25 7jofDFFHf5F/1GfO1WAiB5uLByDEclXJa8trfIEPH9usIS9pLlM0aScbOsy7L7l1pv4B 4Lr0mgx9j4bb123EX2IN6jObp5DmkkC0RyPHXftXK35fpU3SbHI4yn/IXXaM/aV72Kdd tZcWJ4WG7t6Osw+n4FfMHvmIrVM8qaVVh5RSlBw+78OHk/nHscPL0EdmUr+HbUu5DXZd M+4ChvJ+TYdPIz9bqgSa/5c9IM4XOU6bu/gtVD4E3Cax46l783MRrmKloDyzJRDizq+c PGKQ== X-Gm-Message-State: AOAM533yCCuazeXlbrxE1nnLF6dZnga3IzcokMqJiJfX+/WLwL/7nRLu RRYPh5x9YFvaRLCoezkwuNBf9ovAxlA= X-Received: by 2002:a05:6a00:843:: with SMTP id q3mr579487pfk.107.1592285003585; Mon, 15 Jun 2020 22:23:23 -0700 (PDT) Received: from Asurada-Nvidia (searspoint.nvidia.com. [216.228.112.21]) by smtp.gmail.com with ESMTPSA id h6sm15684333pfq.214.2020.06.15.22.23.22 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Jun 2020 22:23:23 -0700 (PDT) Date: Mon, 15 Jun 2020 22:23:07 -0700 From: Nicolin Chen To: Shengjiu Wang Cc: timur@kernel.org, Xiubo.Lee@gmail.com, festevam@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] ASoC: fsl_ssi: Fix bclk calculation for mono channel Message-ID: <20200616052304.GA24055@Asurada-Nvidia> References: <034eff1435ff6ce300b6c781130cefd9db22ab9a.1592276147.git.shengjiu.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <034eff1435ff6ce300b6c781130cefd9db22ab9a.1592276147.git.shengjiu.wang@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 16, 2020 at 10:53:48AM +0800, Shengjiu Wang wrote: > For mono channel, SSI will switch to Normal mode. > > In Normal mode and Network mode, the Word Length Control bits > control the word length divider in clock generator, which is > different with I2S Master mode (the word length is fixed to > 32bit), it should be the value of params_width(hw_params). > > The condition "slots == 2" is not good for I2S Master mode, > because for Network mode and Normal mode, the slots can also > be 2. Then we need to use (ssi->i2s_net & SSI_SCR_I2S_MODE_MASK) > to check if it is I2S Master mode. > > So we refine the formula for mono channel, otherwise there > will be sound issue for S24_LE. > > Fixes: b0a7043d5c2c ("ASoC: fsl_ssi: Caculate bit clock rate using slot number and width") > Signed-off-by: Shengjiu Wang Reviewed-by: Nicolin Chen