Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp210001yba; Sat, 20 Apr 2019 00:32:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCfmLoWfwNvOsBawr82PtDGDpHn03Oltp7KWZ0Bc1bAZZ7gA71Lm3z8KTILqIbLXepH2vY X-Received: by 2002:a17:902:a01:: with SMTP id 1mr8239760plo.36.1555745540666; Sat, 20 Apr 2019 00:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555745540; cv=none; d=google.com; s=arc-20160816; b=nUFV7YpfVZdQhSRQNKH4u3qgFlSa5RlyGAeBUdiijsMaHlMdZXweNynbFr1avhnd3x U6g+6WLC2uTlzLNYPaeviZz4kVLgIXB9PHYS8wj+uE2jM4+ejXc2vmoZ7w1gP4fZeqek oZutyYCjZ3vyStWp5IitdUVpwOc9t0yGhiSo9Czlmmvb5DItNFUZFv92f0TJsDNdrE4X ad2m07G2+77Ge2AulgPBEGRVVGdH3yzVJknrFK8wpGpk7H8VOfVjZjKKncWpX5u1Yljw ebhJpTK0P9S7QyxP5/cyk1LhXs54HWyfPkpiUgaEZ80wWqVB7VjWWoV2h/XEwrgQEuHL 6avQ== 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=g0walm6P/6efwRjWHafui6XopYt2biYmefDXoU2XjRE=; b=w+CTNlD93T8XpXINMGyQIAyol8O/RE7daktR2Fv4rQrCmC2IOsvO08B+jqTLZjiVK5 9Hh023Of+CM7wui60GAHzy2ftYVDvvBJPCsPWQ/p3xM/EPnSeAMNt2sgwfnPlIxWqAEu /sY59Q2oLo5jCRVFGPM2JwcwFbCQ9jNTP8mfEAJ//hZuvJw6Rvog4VSgqjPC2jK9rzOU olBxVTRo21JN6Gc0cxHHfMxnnqI8siOZvTjvWzfSuj77laB9KCVPTnmOTxuXDNJ9Bn+v 1ERsclp0BoRKYRr3E9ELsCw2TcLR2G0qDC1L5pelO2VBVQ1ZagxXAXRinhwX1B+EOztZ 8jWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KH6qtt0V; 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 91si7594172ply.104.2019.04.20.00.32.04; Sat, 20 Apr 2019 00:32:20 -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=KH6qtt0V; 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 S1727209AbfDTH37 (ORCPT + 99 others); Sat, 20 Apr 2019 03:29:59 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:35464 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725863AbfDTH37 (ORCPT ); Sat, 20 Apr 2019 03:29:59 -0400 Received: by mail-pl1-f195.google.com with SMTP id w24so3545238plp.2 for ; Sat, 20 Apr 2019 00:29:58 -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=g0walm6P/6efwRjWHafui6XopYt2biYmefDXoU2XjRE=; b=KH6qtt0VpizwpZFptxDfqcSzA2segQb7TS6O9woGE5I+aei8vBn3sLh52rlSoazVuy OHUNEqDVtT76eMq/M18lNCI01w/JfipEksmpPUtvh7eFreeRBLhYTgHtWNR1FVEvyQNk V3/BHdfPfPHyZaaXWWOlvC9hlem31FOgsgYtmE3xMtuMmBR+vTC3302lknaLV5RuAgqo NdNE2V2Cpv/vX7g9hrbKSxgkh3aIZrEjkWGiOl1EN4SAU3xtZOeiKndtVknLUmikXXVe lJgEKFH2r9ZbOX/5Nmb7DZifcRH7qYxhEfTqbwABnQBBQKpfzhKpOWuol9ey6zeb0z9h pJQQ== 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=g0walm6P/6efwRjWHafui6XopYt2biYmefDXoU2XjRE=; b=MPCdXx34uH62eWFkWLf8hqO22nrwA68dc6cIC6mzypcJv/zy+XRj0+CUd4Y0rq5HhV 7dVFBC7514ChlUsNjA759OIzC4GIzdp4HM+5Y0YHIDMxhEdBdKWpeWJyuf3G9WhfLaIr TRizgjiAiXjJo7CjTM4rtQaRREcdqku6GDlMcx9pnD6cY5Etnu7Q0Mllju9sqOAmlO65 sqC7ieYJWgXahrsrJiNUxLkqYC8r/kuhHuudAJeR4pJ7lCRY5oKCyLAPDtYuh+gq5pDN vrnICNJSSHcvlqperBhr1zOVpaTcGOjpTDnKd5MmNSYHuBVeHElNkFNQIWbnYoDS9jM5 xiVA== X-Gm-Message-State: APjAAAUUT+irCliYuzDu/X0YroPOe+WQxCk0GA9IRSXnx9aK/WqJoVXz ynPaCkzS0R43YmYo+3+SkeI= X-Received: by 2002:a17:902:848d:: with SMTP id c13mr7850119plo.279.1555745398461; Sat, 20 Apr 2019 00:29:58 -0700 (PDT) Received: from Asurada (c-98-248-47-108.hsd1.ca.comcast.net. [98.248.47.108]) by smtp.gmail.com with ESMTPSA id t13sm16299156pgo.14.2019.04.20.00.29.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Apr 2019 00:29:57 -0700 (PDT) Date: Sat, 20 Apr 2019 00:29:53 -0700 From: Nicolin Chen To: "S.j. Wang" Cc: "timur@kernel.org" , "Xiubo.Lee@gmail.com" , "festevam@gmail.com" , "broonie@kernel.org" , "alsa-devel@alsa-project.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH V4 3/3] ASoC: fsl_asrc: Unify the supported input and output rate Message-ID: <20190420072952.GA10408@Asurada> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 20, 2019 at 07:23:59AM +0000, S.j. Wang wrote: > > > /* Validate input and output sample rates */ > > > - for (in = 0; in < ARRAY_SIZE(supported_input_rate); in++) > > > - if (inrate == supported_input_rate[in]) > > > + for (in = 0; in < ARRAY_SIZE(supported_asrc_rate); in++) > > > + if (inrate == supported_asrc_rate[in]) > > > break; > > > > Not sure if we still need it upon having hw_constraint. Maybe m2m needs it? > Yes. OK. Then we can leave it there. Thanks