Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3849668ybb; Mon, 6 Apr 2020 17:30:13 -0700 (PDT) X-Google-Smtp-Source: APiQypJJQwzhp/eCpqzlpjqAcIlUzhrledf+1YP73kXjDV87gL0hTZRo+BW22/bXIOxb3M9y8img X-Received: by 2002:aca:df06:: with SMTP id w6mr1579641oig.2.1586219412934; Mon, 06 Apr 2020 17:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586219412; cv=none; d=google.com; s=arc-20160816; b=WBXoNQAVICva1+KM6mmkGXJAOpw/JwREFbnglGdjoEcLmZXwA2/5KymKKD0M1gfCqd +ghn4NgjtiWK4xMLeUzpZOlHpiqSJhKc/NANRQbOckxXnPgBLmpOioNJuEDHcRxjJHKt Mx9kihjyRnzUIuwDmMCwwBPeaUr7iCfWZjb9a+lnJRsA+6sgQ3IZOF0pMs2Tgq919Ipg RP1wDFEfwrPVt1QsADDOmBRxYGpzuH75PQRm7PsDYPkvPcwG1B/P0U7dR7xhzdXmaquV 5FrFjV3su9K/IQMWLaQrAzNYVYaQ5yWq5s6PCF/kYNP1O2DANwl5I3rRpRVxm91/jt0Y rQDw== 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=Hqwa+hUekQq3MYYw51APHLwXOUrFBa1sM5+b28OQ11o=; b=kUaUFVyfDevfzlizVno5XASAfaC/8vDKmcZCbOOP9JBmzuWVY1gdEj0ERirOuImRMg C8OrdryOh6YtAmIug2fcXjWuX+X7aUt4hXY1ltgzrjBPF/6r/EBfnl11BW7YdPI6YkUh GkiO3qj6oN+/pNXSD6B1p9UZuP9qfdkyRFokRX4cmxAZaDLLyuKrNyaoMK9pA+sPP3Jp o/2gy+jdNpmgFiff4fO5umYa/gDKEwWCQQK1jWm3AcTGC3iUcmtG38McCH+6xdC/toxz YvSeGcnZZ1jeJhwQc1f0ETSmonuyFuNTHOWBjni/IO+h20gsTOuN1Zcb+UsZivF2O9L2 Je7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="BtZs2j/d"; 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 i1si513577oto.72.2020.04.06.17.30.00; Mon, 06 Apr 2020 17:30:12 -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="BtZs2j/d"; 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 S1726444AbgDGA3P (ORCPT + 99 others); Mon, 6 Apr 2020 20:29:15 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37599 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbgDGA3P (ORCPT ); Mon, 6 Apr 2020 20:29:15 -0400 Received: by mail-pg1-f195.google.com with SMTP id r4so875782pgg.4; Mon, 06 Apr 2020 17:29:14 -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=Hqwa+hUekQq3MYYw51APHLwXOUrFBa1sM5+b28OQ11o=; b=BtZs2j/dnw2PngLknCmZUjx56rNiQyDoDmVAOgZQjjRFRVxLZmw40H/jFGMoJZu00W LLkqlHs1rwByTmWTrV9dylFtIoPG+wYrFTNW58bNW7CX3M4zii4/8arExgdhP2ic/PTf WlMBZCjZHDb/BccMKoa4uwTN/Apkz9UcGUQFfRGmkWHUDDSkqkC2cEUyLY1KFcdwEZ94 aoNc4cygUuxfFDA1FlbDFkkIC4yCB4kJuh2R4uoxmaVAYdTyERGIL9vfLA3tFkUHINdA y0q7KIHg48OMMq82+/ct57yUkpHZ+qahZDz6d7pgpWUvQ03wpYntCF+gpzk4jkfeoHU3 wBfA== 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=Hqwa+hUekQq3MYYw51APHLwXOUrFBa1sM5+b28OQ11o=; b=JvnNe+WNSlpivPBroaGVkBfPXgMmWZFih3lL9beZZykCGe1+/mzFEt5wXP+CLWuK9J 3/5iIUBJEa6OsfJ3OtnsNgwd2JK2Cd44YZ+uZev5SBxuFiFnY2d9F2hzb+Z4p5u3Qvoa BJHRFWc6zMZGZz418fcKSvPLiOYKK/opknCmDSbs6++HDnQU2dWTsXjyOsWMmspg0ba0 hqDWxr7vUS8Xkl5FnGzw0iiMv/64zb452wtLyo6N7lo4dsyobYRVVmz17ubpXRE4sLrU 3Dzk0TBBRuWLz2Cp5uOJzOzKOS1mI9hC+2ZLBBZox4U9Wl60HMXuYeI6xOTIEHBgrFbQ 3buw== X-Gm-Message-State: AGi0PuZ1Iwr5aD2V8imbG93P7xXUcs0PXKN+51Yd+iqPSLMFS8w7pzoe ZkgF3vTYe6OmvhZutztZRT4= X-Received: by 2002:aa7:97a7:: with SMTP id d7mr13246pfq.194.1586219354103; Mon, 06 Apr 2020 17:29:14 -0700 (PDT) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id s76sm11686055pgc.64.2020.04.06.17.29.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Apr 2020 17:29:13 -0700 (PDT) Date: Mon, 6 Apr 2020 17:29:18 -0700 From: Nicolin Chen To: Shengjiu Wang Cc: timur@kernel.org, Xiubo.Lee@gmail.com, festevam@gmail.com, broonie@kernel.org, alsa-devel@alsa-project.org, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 7/7] ASoC: fsl_easrc: Add EASRC ASoC CPU DAI drivers Message-ID: <20200407002918.GC20945@Asurada-Nvidia.nvidia.com> References: <3b5abe538eb293be9e82c077379d63487f71b7c6.1585726761.git.shengjiu.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3b5abe538eb293be9e82c077379d63487f71b7c6.1585726761.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 Wed, Apr 01, 2020 at 04:45:40PM +0800, Shengjiu Wang wrote: > EASRC (Enhanced Asynchronous Sample Rate Converter) is a new IP module > found on i.MX8MN. It is different with old ASRC module. > > The primary features for the EASRC are as follows: > - 4 Contexts - groups of channels with an independent time base > - Fully independent and concurrent context control > - Simultaneous processing of up to 32 audio channels > - Programmable filter charachteristics for each context > - 32, 24, 20, and 16-bit fixed point audio sample support > - 32-bit floating point audio sample support > - 8kHz to 384kHz sample rate > - 1/16 to 8x sample rate conversion ratio > > Signed-off-by: Shengjiu Wang > Signed-off-by: Cosmin-Gabriel Samoila Overall, looks good to me. Please add: Acked-by: Nicolin Chen > diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c > +static int fsl_easrc_normalize_filter(struct fsl_asrc *easrc, > + * If exponent is zero (value == 0), or 7ff (value == NaNs) [...] > + if (exp == 0 || exp == 0x7ff) { [...] > + if ((shift > 0 && exp >= 2047) || > + (shift < 0 && exp <= 0)) { Could fit into one line, and would be probably nicer to re-use "0x7ff" matching previous places, instead of "2047".