Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5979743ybe; Tue, 10 Sep 2019 11:39:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmGdzKymM16uvanDBVC7QFdnrPbb6fbw323byMPYQl+SmRLzNxVGrLVQ45a9uuMtU3LeOr X-Received: by 2002:aa7:da51:: with SMTP id w17mr315778eds.70.1568140797660; Tue, 10 Sep 2019 11:39:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568140797; cv=none; d=google.com; s=arc-20160816; b=boCYhvsStzRu61y3kosUi554+FqD3zZ8aSh9Ajj2EtpDx/OuiVmUXOA9UBo1AzGWJW xM1xdmXxGmPcY0Pw0VTCokIPslGRy1yjNdK/FaNppd0DBajCFFWbUm0lSRAhyazBQti8 TcE5jQeLOYjfjoOs1G1UiIN6syQH8+XXBhflzMR+t6I3OvtLMFZQwAW4Qu7IP3LcpSCo T9CEfppSstfIl8508zKQehXQmLCdTcmY0Frr48Ef9zqWJeBXqq208RHYNsP5Q7gzhw48 anH8Sik1Lqjw8MrIC5DiBRKvlm3XFZbQ4pL4Kwsd64NE+Dwp9licFRNayCZNner8jET0 kXOg== 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=f8kcD/av2IHtuxWBUd9aJrd7r9hFL0IzQqelqnKxuvQ=; b=THAga49Okyk87Mr9V5ZnzGpI/I7CrF3sjZmuQlRq1R/3AlObW/bJR/iKDyDx/qt+qf JX65FFr+DQkGS9t0KUArGj8EyJUM+m/XJ6SyGzcEM8QNesTH19kAaY32SD5a9YkY7cRW TE5sSWDSj/UhuZur5EfDZCOX7b/zYJqFlbBA/Xg0gqI9kOCBHD70RQSUr191CmevQX3V tm+hxcEWDOxLPQpBSETxaTc0WbsQxuaSsFSoR3MKuEwwCjIf5oZZN9pyZLYxvOjRh7ld P8FpB0nFjOa+/aXIN1ge4rdx8k1F2Nfg0EzgLIL6OIb3j7YY9jraKL0SrAjSO0gqWiOl u2yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Hv0mLxLc; 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 s14si7325027edr.139.2019.09.10.11.39.34; Tue, 10 Sep 2019 11:39:57 -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=Hv0mLxLc; 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 S2405993AbfIIUUM (ORCPT + 99 others); Mon, 9 Sep 2019 16:20:12 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43929 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731185AbfIIUUM (ORCPT ); Mon, 9 Sep 2019 16:20:12 -0400 Received: by mail-pf1-f194.google.com with SMTP id d15so9975359pfo.10 for ; Mon, 09 Sep 2019 13:20:10 -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=f8kcD/av2IHtuxWBUd9aJrd7r9hFL0IzQqelqnKxuvQ=; b=Hv0mLxLcScQ94ymOj99jHE5Kt1cXtpZWue2SaJ5v6OKjJ7L7Ao4eWhXannThE12GW7 Wmci9TLL/AR6PRHyLB0Vzog+19uWg4E1/Wh4sroDjJQQtKGvmyOj1OK7+pxbQv4DPC55 SiExlpS1JidbNG1Zt22gYsII4PKp7RVNf7dPjpcaahb/ZV3ZF/nvnrvfuOLdP9kkwjZ1 C3zLNhMfI+gSlZAByou/WFjhDKrnZxdjifSD8dlozMMvgWBVEpcdy9VtDy4UCkoXWpIl n1jg2pl9cWP3Bdf53t4EUovTYOauq8gC109oHaF7/HBraLt4RfNnL/DVqPZEjwWy2aFm LzUA== 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=f8kcD/av2IHtuxWBUd9aJrd7r9hFL0IzQqelqnKxuvQ=; b=VyaM68HRpnOi6mQBCyyFwuaRKlvzr4LQTElXachFvsZwefvEH3GTKcoIyvXhog9LMB C66+n/gaofjTRbi5a8ov+YgapjX2dixLNtMfIdYq3/sc4g2bHEvMCahkYfWX6WEMycvv da/ELx0ATtZAj3H6rl77IyThtRvuVgW7nrvkJ2l+Beh2hiDPb6UDwl1uMpMbabI2x4mm BcdteY0aRmjbP7YnjoMGPRA8NyV8sxvEhd95974Zg9COLJM7O5h5q4s3FL2pT+SUJEsJ +Ar8JeVvqMQHzbCHEEymDFGxAAgA9LhlwljSEC9WQRxFPxledTo+vp5J//FBUNPrGIp5 csQw== X-Gm-Message-State: APjAAAUgzzOU4ylIE1Wxk0HNSbPj/gfiHur+QdObg1rX3bTl6kGlkRTC E5XYOtOVsmu2zXggBP9Gi6E= X-Received: by 2002:a63:3046:: with SMTP id w67mr24304918pgw.37.1568060409962; Mon, 09 Sep 2019 13:20:09 -0700 (PDT) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id r30sm32034684pfl.42.2019.09.09.13.20.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Sep 2019 13:20:09 -0700 (PDT) Date: Mon, 9 Sep 2019 13:19:45 -0700 From: Nicolin Chen To: Shengjiu Wang Cc: timur@kernel.org, Xiubo.Lee@gmail.com, festevam@gmail.com, lgirdwood@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 2/3] ASoC: fsl_asrc: update supported sample format Message-ID: <20190909201945.GC10344@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 Mon, Sep 09, 2019 at 06:33:20PM -0400, Shengjiu Wang wrote: > The ASRC support 24bit/16bit/8bit input width, so S20_3LE format > should not be supported, it is word width is 20bit. I thought 3LE used 24-bit physical width. And the driver assigns ASRC_WIDTH_24_BIT to "width" for all non-16bit cases, so 20-bit would go for that 24-bit slot also. I don't clearly recall if I had explicitly tested S20_3LE, but I feel it should work since I put there... Thanks Nicolin > So replace S20_3LE with S24_3LE in supported list and add S8 > format in TX supported list > > Signed-off-by: Shengjiu Wang > --- > sound/soc/fsl/fsl_asrc.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c > index 4d3804a1ea55..584badf956d2 100644 > --- a/sound/soc/fsl/fsl_asrc.c > +++ b/sound/soc/fsl/fsl_asrc.c > @@ -624,7 +624,7 @@ static int fsl_asrc_dai_probe(struct snd_soc_dai *dai) > > #define FSL_ASRC_FORMATS (SNDRV_PCM_FMTBIT_S24_LE | \ > SNDRV_PCM_FMTBIT_S16_LE | \ > - SNDRV_PCM_FMTBIT_S20_3LE) > + SNDRV_PCM_FMTBIT_S24_3LE) > > static struct snd_soc_dai_driver fsl_asrc_dai = { > .probe = fsl_asrc_dai_probe, > @@ -635,7 +635,8 @@ static struct snd_soc_dai_driver fsl_asrc_dai = { > .rate_min = 5512, > .rate_max = 192000, > .rates = SNDRV_PCM_RATE_KNOT, > - .formats = FSL_ASRC_FORMATS, > + .formats = FSL_ASRC_FORMATS | > + SNDRV_PCM_FMTBIT_S8, > }, > .capture = { > .stream_name = "ASRC-Capture", > -- > 2.21.0 >