Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp616935ybf; Wed, 26 Feb 2020 19:41:46 -0800 (PST) X-Google-Smtp-Source: APXvYqzgG3XR7JdcwudjT/pA0eviz8fWmYAPfWQHzK8IsjGSxNtOSzBFC/Qb2dbNezIWwgOp6WF3 X-Received: by 2002:aca:4789:: with SMTP id u131mr1739748oia.43.1582774906250; Wed, 26 Feb 2020 19:41:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582774906; cv=none; d=google.com; s=arc-20160816; b=CXzUEwZGY+Vyt9CaMwj5wUe6xI+upecW8RuOZYy5QN8qkrLui2SfeKYgPk6SnzgJvp r520pAlqiMOFEyQanCfVad6pZExE4o+eGlx6o8T2Sn9/dwAZMu8+8R1qDod2ZeCWlvcy +vD4v+LXT4vMaqUgLNN+y2+OU0HKCCRu9X9W1BGdo+JJauKLjAjAj9eFlGhR1Iw7bBQD ucJBp1Ggrh7z0cbAIYxnhQlMEj0XPsjJN3A4SiCkuIQCVlBpAfPZgb/sLmff/LSbtc/5 H1ixqZMLzem8qSTnZVH+WmiViSrcSsFXfwEIL8B4cm6Us9rf0O8SKxTst2FOuu8Esoox YTDw== 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=VUxAWoyzRwTi4XcElESOl4e7XyRqkwqcDDvJbUZpLIg=; b=KveX77V0zjQFwPbb6kv70jI9zvJUBTkN55eLucdZxojMiZ3CmIC5G0goPyO7JXWdup AcxXe0PiVUmfiPRB8zt6FEVhfoEFR+D4wxPxZZee2GZq9udueQ3H85cjDRBp2U8PZAEE hjfYR9R8lUSbrPVLT3nOyJMxAQ0Bowkd4x9Lk6S0UweLca1Fch+LC8HIEnBvLkp7RVp/ BfATmIFqSPIZyi2qRm2d/ztUoOTxcwTHpw/1/bkU+ZNUofnkBsYBO+NG3ydLdyoWVI0R pzUmejWjeix0Fskm/Yl/g8n46djC5obuDQeU1y+Mc1Y9SEw6X8BboyxLUGdl915rrd5U j4Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gmPw2xDs; 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 r4si775982otq.188.2020.02.26.19.41.34; Wed, 26 Feb 2020 19:41:46 -0800 (PST) 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=gmPw2xDs; 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 S1728312AbgB0DlZ (ORCPT + 99 others); Wed, 26 Feb 2020 22:41:25 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:44412 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728273AbgB0DlZ (ORCPT ); Wed, 26 Feb 2020 22:41:25 -0500 Received: by mail-pl1-f193.google.com with SMTP id d9so546524plo.11; Wed, 26 Feb 2020 19:41:24 -0800 (PST) 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=VUxAWoyzRwTi4XcElESOl4e7XyRqkwqcDDvJbUZpLIg=; b=gmPw2xDsx9eKdgHlZEL2xC7Li/8YBXlNbCA+spXw9KKfoPRWYY0KhEEeVo4KC2o1UN YrNfxZD2lybH9mVLDj+vW/MJcIbegJHj1PeRAO04tnf28Bv/GJDG5lEc0zPKDTubtW6+ N7IuMJPmP3mVcy8XVAlTdaqT1E2JxhEK5v/xdHjeyy807augrdOuYwNg+xDbcKfjDq9v jHAcRGuwNzIN3Yw/yuXMpKSZYqA5MZXi+2ZxZzj23cJPP3h3/A246g+LJnfnF+zURjDt uuHLQb7zdWVZ7jWWWGre5ezDmXMZasplcYWQ8/KYy346t8KZDjAG1MAvSBaQZYpcfvF7 BXIg== 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=VUxAWoyzRwTi4XcElESOl4e7XyRqkwqcDDvJbUZpLIg=; b=Z537Q/JEEc3PjDQ0cEKF36+g/h6AMbgQXux1TS0qE+iWz+B44iHkSOBELS8VW3oNgy 6mEEi/qfMxVmCUSPugm3wPGQdJEXA9oiQVgL3JpsUhCrN6bdPEX3La8nTpqnwYLjRL3O D4z9d6Hv6V4aY/7m3laSqU69UxNVFJgdj6aWbbcNKVdVxhtU1FJqV2tiI9looFJr6iQP SHFCFYbCvmTqMjMYso3VMFKhUL2lqT4NeHF0mfNC/xAXHGDX91naeOu/cZfK3ipym0Yt A8nnD5lyDjm4S+n3i44UHd38ZQ5odr0gu2iFObqL9pOrlxw8MkfG0ZosSUjTnAYF92so RojA== X-Gm-Message-State: APjAAAXUngrtG4rjSGwN1Q6VsFzs6DUXERz/1bEnOmixz8FwXhxk0Ukx f0DwmYqHzU824zuLBF1Bsb8= X-Received: by 2002:a17:902:7b94:: with SMTP id w20mr2521900pll.257.1582774883581; Wed, 26 Feb 2020 19:41:23 -0800 (PST) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id e1sm4658282pff.188.2020.02.26.19.41.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Feb 2020 19:41:23 -0800 (PST) Date: Wed, 26 Feb 2020 19:41:21 -0800 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 v3 1/4] ASoC: fsl_asrc: Change asrc_width to asrc_format Message-ID: <20200227034121.GA20540@Asurada-Nvidia.nvidia.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Feb 27, 2020 at 10:41:55AM +0800, Shengjiu Wang wrote: > asrc_format is more inteligent variable, which is align > with the alsa definition snd_pcm_format_t. > > Signed-off-by: Shengjiu Wang > --- > sound/soc/fsl/fsl_asrc.c | 23 +++++++++++------------ > sound/soc/fsl/fsl_asrc.h | 4 ++-- > sound/soc/fsl/fsl_asrc_dma.c | 2 +- > 3 files changed, 14 insertions(+), 15 deletions(-) > > diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c > index 0dcebc24c312..2b6a1643573c 100644 > --- a/sound/soc/fsl/fsl_asrc.c > +++ b/sound/soc/fsl/fsl_asrc.c > @@ -600,11 +599,6 @@ static int fsl_asrc_dai_hw_params(struct snd_pcm_substream *substream, > > pair->config = &config; > > - if (asrc_priv->asrc_width == 16) > - format = SNDRV_PCM_FORMAT_S16_LE; > - else > - format = SNDRV_PCM_FORMAT_S24_LE; It feels better to me that we have format settings in hw_params(). Why not let fsl_easrc align with this? Any reason that I'm missing?