Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6153350yba; Thu, 11 Apr 2019 13:13:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLjk6EiRTNITuu5zX7MSfA/6+cpYheoh6aOg1PEq2HaEUB7zlOZV+bKMTi8xNPUKbL1jt9 X-Received: by 2002:a65:408b:: with SMTP id t11mr46296764pgp.372.1555013605043; Thu, 11 Apr 2019 13:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555013605; cv=none; d=google.com; s=arc-20160816; b=bACkZFcrHnM/pLfNXXNVOTMvYo2shI+Ii44/vpwr96FgPukyDxd7FdnU6hx4x9kBYe yDXKvbhzqMHRt4ehByIjxDP0haTr0B168PAaP6GVpziikEBsl+Kd3dxKDtHu+FVKQRU7 oshBtuQImW+z4LLj7NskpMjen+VD2FDbEPzh2C8hy5HLK3lwdwhBRRGH2VnV2LpsVNJn zXi2JuDm8+3OXultwG2RcOpNF+7Fi/OYrdEitw4vpQ91L1pSoe4p9E2Pb1hsxVx5fD+B bUf9fLpylYOf4yVPF0T8kxBSQjBR/nnXJDYyWWv1noBRSWZxH/ceJM82gk5NVtJPcHws tWig== 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=lkadqpOzNcf9LB0J7+vgu9aowMST+yhJ4ntbZQm8mK8=; b=cQuTul3rWuGnwEX4zdWPx57HWaVCsA4LzbDoD+D9JptqhAmzfzouA/PATVKdfpQ9qQ 0ionvQhaLoCKGkd5sNRTsvLkL9S8RC4dmdT6Urwdc6JNbU/O7fpZ0YrFT5VrdeKUerEZ NFypMT1+3bj5CVCtARw2TfjQsB3FLWJk1kOiTuHnRS8du8VKqiOrh48Yt4wb9KU4n3cZ wKmf6p9gZtR2f0WRl6kVfbhTNB8rNk8zyemIonJdx7rtYYFyRkRs9ixYFO0D/yYzoCpf 3evhn3MB8QnjeDp3H7fkrihEyETXosF8TrNTez7IXWoBAID3oeHaLIGYUby+hl45QCcJ TLYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ahey5ESf; 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 r17si35574203pgm.52.2019.04.11.13.13.09; Thu, 11 Apr 2019 13:13:25 -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=Ahey5ESf; 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 S1726801AbfDKUMD (ORCPT + 99 others); Thu, 11 Apr 2019 16:12:03 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:32889 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726538AbfDKUMC (ORCPT ); Thu, 11 Apr 2019 16:12:02 -0400 Received: by mail-pf1-f193.google.com with SMTP id h5so3988949pfo.0 for ; Thu, 11 Apr 2019 13:12:02 -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=lkadqpOzNcf9LB0J7+vgu9aowMST+yhJ4ntbZQm8mK8=; b=Ahey5ESf4YTsZMyDj4Z3utUoGjJNU09BAjDZUKQ4heDd8tga8DW6XtxbmwQZSgDwHc J9hjI0kmlwcTyPm/5/FvQ89a/vF8GftB0Ti5lip9t1XGRaufWcv/4CBdWYPb/86S//y2 mbed1DO8XUlcNQraiVKsqIlmInYCXPlzx22bKcgRhATvq0UDceETZbDW66wv8dkjRGgL CJq79JBJL4VORZTlKHW336gg+73R8GUkBjB/VJxchr95Cznj0Avnz43Vp23OsNdozTC0 qfUUFM/7bAuLIBS0gQVR5/8EnoUW06dcoGIrBkhrJqnOcIpki6++OZt72vXsYo4pP0n+ JomQ== 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=lkadqpOzNcf9LB0J7+vgu9aowMST+yhJ4ntbZQm8mK8=; b=rMvA6jyxIb27pu1tlxOYxjSnJ/O64bWvOW0FBhHNIycQgzj4rc54xycl4MMz9IAVT9 Q+WQVj0RKpl1kSRDobmCKOINBM2mK/RyNcNJLhV5nLK63bAS+sGTAnb7N9zUntahn5je wmaABaYWxQ9pxK2GbjSucFE3FwF41KBg5DAqWshpTXnN2PquQxsH+dIoh7jn912diva0 LBwv+Jht+9qMjdg59PMN00JirtvpDEKmLhDM4QUOjPWrd530zJ8TuJG/iGrRV7mN/H8s KMue2xaT/0KmYx4wh8ELODq4UqutOQoFcO6gbh/w2E33Z6nlpbiJYWfbKojTahvScdM6 ufSQ== X-Gm-Message-State: APjAAAXmL+t46rXi30qCYDuGweeY/jCJNWkFwpwgwPvXuxGgTJ1xQUpn NJuVTbUDAZo6Mblvkxpbkbs= X-Received: by 2002:a63:fd49:: with SMTP id m9mr49394582pgj.16.1555013521607; Thu, 11 Apr 2019 13:12:01 -0700 (PDT) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id r11sm78255231pga.87.2019.04.11.13.12.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Apr 2019 13:12:01 -0700 (PDT) Date: Thu, 11 Apr 2019 13:11:58 -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 V2 2/2] ASoC: fsl_asrc: Unify the supported input and output rate Message-ID: <20190411201158.GB13170@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, Apr 11, 2019 at 09:39:09AM +0000, S.j. Wang wrote: > Unify the supported input and output rate, add the We previously didn't support 5KHz->5KHz, but now we do? That'd be great if so. > static int fsl_asrc_dai_hw_params(struct snd_pcm_substream *substream, > @@ -626,14 +629,18 @@ static int fsl_asrc_dai_probe(struct snd_soc_dai *dai) > .stream_name = "ASRC-Playback", > .channels_min = 1, > .channels_max = 10, > - .rates = FSL_ASRC_RATES, > + .rate_min = 5512, > + .rate_max = 192000, > + .rates = SNDRV_PCM_RATE_KNOT, > .formats = FSL_ASRC_FORMATS, > }, > .capture = { > .stream_name = "ASRC-Capture", > .channels_min = 1, > .channels_max = 10, > - .rates = FSL_ASRC_RATES, Probably could remove FSL_ASRC_RATES define since it's not used. Thanks